Skip to content

Add the possibility to use an authentication token when loading the calibration dataset#289

Merged
echarlaix merged 2 commits into
huggingface:mainfrom
regisss:add_use_auth_token
Jul 13, 2022
Merged

Add the possibility to use an authentication token when loading the calibration dataset#289
echarlaix merged 2 commits into
huggingface:mainfrom
regisss:add_use_auth_token

Conversation

@regisss
Copy link
Copy Markdown
Contributor

@regisss regisss commented Jul 13, 2022

What does this PR do?

This PR enables to use an authentication token to load the calibration dataset. This is necessary because some datasets (e.g. ImageNet) cannot be downloaded from the Hugging Face Hub without such token.

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

@regisss regisss requested a review from echarlaix July 13, 2022 07:42
@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Copy link
Copy Markdown
Collaborator

@echarlaix echarlaix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this addition @regisss

Comment thread optimum/onnxruntime/quantization.py Outdated
Co-authored-by: Ella Charlaix <80481427+echarlaix@users.noreply.github.com>
@echarlaix echarlaix merged commit 6911cc6 into huggingface:main Jul 13, 2022
JingyaHuang added a commit that referenced this pull request Jul 13, 2022
author JingyaHuang <huang_jingya@outlook.com> 1657578205 +0000
committer JingyaHuang <huang_jingya@outlook.com> 1657721065 +0000

Merge main

Fix docstring

Fix condition

Update glue example

Update ner example

Update qa example

Merge with main

add  to run_qa when loading dataset

Merge with main (#293)

* merge with main

Correct bug in post-processing benchmark/eval (#278)

* correct bug in text processing

* update comment

Co-authored-by: Felix Marty <felix@huggingface.co>

Fix the number of layer to the decoder ones when creating the past key values outputs (#279)

Update index.mdx (#235)

Fix ⭐ to display ⭐ symbol

Remove duplicated key in supported pipeline task (#281)

ORT-OPTIMUM (#229)

* copy language-modeling/run_mlm.py from HF repo

* using ORTTrainer instead of Trainer

* remove some unused arg in function to make it could run with ORTTrainer

Co-authored-by: zhijxu <zhijxu>

Fix documentation for ORTModelForImageClassification (#283)

add preprocessors for benchmark (#284)

Co-authored-by: Felix Marty <felix@huggingface.co>

Add the possibility to use an authentication token when loading the calibration dataset (#289)

* Add the possibility to use an authentication token when loading the calibration dataset

* Remove " in docstring

Co-authored-by: Ella Charlaix <80481427+echarlaix@users.noreply.github.com>

Co-authored-by: Ella Charlaix <80481427+echarlaix@users.noreply.github.com>
@regisss regisss deleted the add_use_auth_token branch September 8, 2022 17:35
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.

3 participants