mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
[Hotfix] lmdeploy temp (#1674)
* fix pip version * fix pip version * hotfix
This commit is contained in:
parent
a0ef2fd3b4
commit
17b5e52f6c
@ -123,7 +123,7 @@ class TurboMindModelwithChatTemplate(BaseModel):
|
||||
|
||||
gen_config = copy.deepcopy(DEFAULT_GEN_CONFIG)
|
||||
gen_config.update(self.gen_config)
|
||||
if do_sample:
|
||||
if do_sample or self.gen_config['do_sample']:
|
||||
gen_config['top_k'] = 40
|
||||
gen_config['temperature'] = temperature
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user