-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Refactor] Refactor Lagent #97
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update main
* redesign BaseModel * update docstring * update baseModel
* [Fix]: fix turbomind (#81) fix turbomind * add parsers * skip ActionReturn in postprocessing * check existence of API name * add exception catch in action executing * validate input arguments * modify returned structure of `get_actions_info` * adapt tools to the new protocol * remove `LLMQA` action --------- Co-authored-by: RangiLyu <[email protected]> Co-authored-by: wangzy <[email protected]>
* add new tools * update PPT * chores * update action module init --------- Co-authored-by: wangzy <[email protected]>
* implement `chat` * update agent interfaces * redundancy reduction --------- Co-authored-by: wangzy <[email protected]>
* [Fix]: fix turbomind (#81) fix turbomind * Feature: lmdeploy_wrapper implemented BaseMode * remove comments of 'llms.__init__' * update of 'llms.__init__' * update lmdepoly_wrapper with 'gen_params' * add property 'state_map' in __init_ and use APIClient to stream infer_ * func 'generate' in LMDeployClient with 'APIClient' * fix bug of TritonClient * add docstr for LMDeployPipeline & LMDeployServer * class LMDeployClient inherits class LMDeployServer * LMDeployClient with BaseModel.__init__ and use field 'max_tokens' control model output * add TODO * move 'import mmengine' to func '_update_gen_params' --------- Co-authored-by: RangiLyu <[email protected]>
fix APITemplateParser object is not callable Co-authored-by: wangzy <[email protected]>
* [Feat] support StreamAgent * update `StreamAgent` * truncate inner history --------- Co-authored-by: wangzy <[email protected]>
* Feature: huggingface implemented BaseMode * hf llm implemented BaseMode * fix bug of hf llm * inject attention_mask during inference * remove unnecessary
* redundancy reduction * add `tool_api` to annotate a tool method * improve json parsing * enhance parsers * update README.md --------- Co-authored-by: wangzy <[email protected]>
improve `tool_api` Co-authored-by: wangzy <[email protected]>
init the docs Co-authored-by: wangzy <[email protected]>
* modify the struction of action results * fix docstrings --------- Co-authored-by: wangzy <[email protected]>
fix rtd config Co-authored-by: wangzy <[email protected]>
* add ipython interpreter * update requirements * remove `return_list` argument --------- Co-authored-by: wangzy <[email protected]>
fix the fallback value Co-authored-by: wangzy <[email protected]>
* update cfg & fix bug of StreamAgent * fix bug of func 'stream_chat' * streamlit demo with full response * enchance stream chat * fix bug of stream chat * fix and file rename * add exception catch for func 'chat' --------- Co-authored-by: liujiangning <[email protected]>
* add `get_started` chapter * fix docstrings * add action.md * add zh docs --------- Co-authored-by: wangzy <[email protected]>
fix `BaseAPIModel` chat returns Co-authored-by: wangzy <[email protected]>
* add warn for func 'generate_from_template' * clearer alerts for deprecation * clearer alerts for deprecation
braisedpork1964
approved these changes
Jan 30, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
generate
,chat
,stream_generate
,tokenize
.