Skip to content

feat(perplexity): forward kwargs to from_pretrained - #807

Open
ShamikOfficial wants to merge 1 commit into
huggingface:mainfrom
ShamikOfficial:fix-perplexity-model-kwargs-680
Open

feat(perplexity): forward kwargs to from_pretrained#807
ShamikOfficial wants to merge 1 commit into
huggingface:mainfrom
ShamikOfficial:fix-perplexity-model-kwargs-680

Conversation

@ShamikOfficial

Copy link
Copy Markdown

Fixes #680

Summary

  • Add model_kwargs and tokenizer_kwargs to the perplexity measurement
  • Document how to pass a token for gated checkpoints

Test plan

  • Unit test checks kwargs are forwarded to both from_pretrained calls

Adds model_kwargs and tokenizer_kwargs so gated checkpoints can be loaded with an explicit token or other AutoModel/Tokenizer options.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot access gated repositories in Perplexity measurements module

1 participant