mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-04 04:32:50 +08:00
pass ruff check
Former-commit-id: c8f0d99704308ac1886b16e437dea601eb20658d
This commit is contained in:
parent
a68101cbbb
commit
1d0e24549f
@ -66,7 +66,7 @@ def export_model(args: Optional[Dict[str, Any]] = None):
|
||||
|
||||
# Configuration check and fix
|
||||
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.top_p is not None and config.top_p != 1.0) or
|
||||
(config.typical_p is not None and config.typical_p != 1.0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user