Closed riedgar-ms closed 3 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 58.98%. Comparing base (
567174a
) to head (0bcab89
).
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
LGTM :) Thanks for investigating and finding the common kwargs Richard!
Looks good to me too :)
This is a fix for #909 . It ensures that any argument common to both
AutoModelForCausalLM.from_pretrained()
andAutoTokenizer.from_pretrained()
will be passed from the former to the latter when aTransformersModel
is created. The original issue was only abouttrust_remote_code
but there are a few other arguments related to accessing Hugging Face which probably ought to be forwarded as well.If there are LLM specific arguments which need to be shared, then users should instantiate the tokeniser separately, and pass it in.