Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove warning #1945

Merged
merged 1 commit into from
Jul 8, 2024
Merged

Remove warning #1945

merged 1 commit into from
Jul 8, 2024

Conversation

echarlaix
Copy link
Collaborator

No description provided.

@@ -415,13 +415,6 @@ def from_pretrained(
trust_remote_code=trust_remote_code,
)

if not export and trust_remote_code:
logger.warning(
"The argument `trust_remote_code` is to be used along with export=True. It will be ignored."
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

trust_remote_code will be used to load the configuration even when export=False

logger.warning(
"The argument `trust_remote_code` is to be used along with export=True. It will be ignored."
)
elif export and trust_remote_code is None:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

trust_remote_code default value is False so not sure why this is needed

@echarlaix echarlaix requested a review from fxmarty July 5, 2024 12:44
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@echarlaix echarlaix merged commit 171020c into main Jul 8, 2024
42 of 48 checks passed
@echarlaix echarlaix deleted the rm-warning branch July 8, 2024 12:05
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