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

Add trust_remote_code=True to a few BHASA scenarios #2913

Merged
merged 3 commits into from
Aug 9, 2024

Conversation

yifanmai
Copy link
Collaborator

@yifanmai yifanmai commented Aug 9, 2024

  • The Hugging Face datasets for facebook/flores, ai4bharat/IndicQA, ai4bharat/IndicSentiment and tmu-nlp/thai_toxicity_tweet contain custom data loaders. In future versions of datasets, trust_remote_code=True will be required to run these custom data loaders. We add trust_remote_code=True for these datasets for future-proofing.
  • We pin the revision for these datasets to prevent code injection attacks.
  • The dataset thai_toxicity_tweet redirects to tmu-nlp/thai_toxicity_tweet, so we change the name to the canonical name. In general, top level Hugging Face object URLs are being deprecated.

@yifanmai
Copy link
Collaborator Author

yifanmai commented Aug 9, 2024

cc @raileymontalan @weiqipedia

@yifanmai yifanmai merged commit 9f425cb into main Aug 9, 2024
6 checks passed
@yifanmai yifanmai deleted the yifanmai/fix-bhasa-trust-remote-code branch August 9, 2024 23:42
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.

1 participant