mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-10-16 00:28:10 +08:00
pass ruff check
Former-commit-id: 8534b069a05121eb041371a6becccf0a1a23f268
This commit is contained in:
parent
c555b2cce3
commit
7f99cb1817
@ -66,7 +66,7 @@ def export_model(args: Optional[Dict[str, Any]] = None):
|
|||||||
|
|
||||||
# Configuration check and fix
|
# Configuration check and fix
|
||||||
config = model.generation_config
|
config = model.generation_config
|
||||||
if config.do_sample == False and (
|
if not config.do_sample and (
|
||||||
(config.temperature is not None and config.temperature != 1.0) or
|
(config.temperature is not None and config.temperature != 1.0) or
|
||||||
(config.top_p is not None and config.top_p != 1.0) or
|
(config.top_p is not None and config.top_p != 1.0) or
|
||||||
(config.typical_p is not None and config.typical_p != 1.0)
|
(config.typical_p is not None and config.typical_p != 1.0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user