KenForever

Results comments of KenForever

感谢,如果直接绑定callback函数就拿不到session,如果采用lambda函数捕获session,然后调用回调函数就可以拿到了。比如: ``` session->setDataCallback( [session, this](brynet::base::BasePacketReader &reader) { dataCallBackFuncWithSession(session, reader); }); ```

> Sorry, the answer is no. > > But you can set `top_k=1` or `temperature=0` instead, which represents the greedy search method in lmdeploy Hello, I want to set top_k=1...

> May try `temperature=0.0` Actually, I want to use Greedy sampling instead of Random_Sample by setting top_k=1. However, setting temperature to 0.0 cannot achieve this goal.

> You can set `topk` in the extra body of payload. [@AllentDan](https://github.com/AllentDan) Could you provide an example? Thanks for your reply. Using the extra_body parameter of OpenAI client may be...

> [@KenForever1](https://github.com/KenForever1) There is `top_k` there > > [lmdeploy/lmdeploy/serve/openai/api_server.py](https://github.com/InternLM/lmdeploy/blob/3f8b079224d109aaa1b512867203a47ea600aa7d/lmdeploy/serve/openai/api_server.py#L393) > > Line 393 in [3f8b079](/InternLM/lmdeploy/commit/3f8b079224d109aaa1b512867203a47ea600aa7d) > > top_k=request.top_k, https://github.com/InternLM/lmdeploy/blob/3f8b079224d109aaa1b512867203a47ea600aa7d/lmdeploy/serve/openai/api_client.py#L97 Hello, The client parameter here does not have top_k, which may...

> Cross-compiling Rust applications to Windows on Linux can be a pain, but that pain can be somewhated alleviated nowadays with [cargo-xwin](https://github.com/rust-cross/cargo-xwin). It doesn't however seem that cargo-bundle supports proxying...

Hello, when I changed the code like you did, I encountered the following problem. Have you encountered it before? How was it resolved? @cavit99 I change code like this: `471...