Update generating_args.py
This commit is contained in:
parent
7ae7ae64f0
commit
f32eefae3d
|
@ -46,6 +46,7 @@ class GeneratingArguments:
|
||||||
default=1.0,
|
default=1.0,
|
||||||
metadata={"help": "Exponential penalty to the length that is used with beam-based generation."},
|
metadata={"help": "Exponential penalty to the length that is used with beam-based generation."},
|
||||||
)
|
)
|
||||||
|
|
||||||
def to_dict(self) -> Dict[str, Any]:
|
def to_dict(self) -> Dict[str, Any]:
|
||||||
args = asdict(self)
|
args = asdict(self)
|
||||||
if args.get("max_new_tokens", -1) > 0:
|
if args.get("max_new_tokens", -1) > 0:
|
||||||
|
|
Loading…
Reference in New Issue