mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-11-06 10:52:14 +08:00
fix Llama lora merge crash
Former-commit-id: 46f7d8e6b85f73fb0c51c8b08bd9955c3b171d93
This commit is contained in:
parent
1a6f961ab1
commit
e21a822744
@ -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 and (
|
if config.do_sample == False 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