-
Notifications
You must be signed in to change notification settings - Fork 243
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
check-in ModelConfig #907
check-in ModelConfig #907
Conversation
How |
from lmdeploy import pipeline, GenerationConfig, ModelConfig
from lmdeploy.turbomind import EngineConfig
model_config = ModelConfig(meta_instruction='[fake meta_instructin]')
pipe = lmdeploy.pipeline('internlm/internlm-chat-7b', backend_config=EngineConfig(), model_config = model_config)
gen_config = GenerationConfig(max_new_tokens=100, top_p=0.8, top_k=40, temperature=0.8)
response = pipe(prompts, gen_config, model_config) |
capability: Optional[str] = None | ||
|
||
@property | ||
def model(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting builder method as property is a little bit strange.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not supposed to be called frequently. And the build process is not computationally intensive.
May remove |
No description provided.