transformers
94d1ce87 - Fix docstring argument names that don't match signatures (#48474)

Commit
67 days ago
Fix docstring argument names that don't match signatures (#48474) Three core docstrings document parameters that don't exist on the function, so the rendered docs advertise arguments that raise TypeError: - TrainingArguments.set_training documented 'num_train_epochs'; the parameter is 'num_epochs' (the entry was also missing a space before the type annotation). - check_peft_version documented 'version'; the parameter is 'min_version'. 'version' is separately imported in that module as the packaging version helper, which made the entry doubly misleading. - QuantizationConfigMixin.to_json_file documented 'use_diff', which the method does not accept and does not implement. Docstrings only; no behavior change.
Author
Parents
Loading