mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-22 22:02:51 +08:00
Update generating_args.py
Former-commit-id: f32eefae3d20bb8482704daf2a0c5743452f2ce7
This commit is contained in:
parent
d65b2332cf
commit
4c91104471
@ -46,6 +46,7 @@ class GeneratingArguments:
|
||||
default=1.0,
|
||||
metadata={"help": "Exponential penalty to the length that is used with beam-based generation."},
|
||||
)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
args = asdict(self)
|
||||
if args.get("max_new_tokens", -1) > 0:
|
||||
|
Loading…
x
Reference in New Issue
Block a user