Instructions to use VietAI/envit5-translation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use VietAI/envit5-translation with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("translation", model="VietAI/envit5-translation")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("VietAI/envit5-translation") model = AutoModelForSeq2SeqLM.from_pretrained("VietAI/envit5-translation", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
License clarification: exact OpenRAIL variant and commercial educational use
Hi VietAI team,
Thank you for releasing EnViT5. We would like to use VietAI/envit5-translation in an
educational product and want to make sure we comply with the license.
The model card metadata says license: openrail, but on the Hugging Face Hub this tag
refers to the OpenRAIL license family rather than one specific text, and the repository
has no LICENSE file. Could you help clarify the following?
Exact license: Which license text applies to this model? Is it the BigScience
Open RAIL-M License (dated August 18, 2022), or another variant? Would you consider
adding a LICENSE file to the repository?Commercial educational use: We plan to use the model in a commercial English-learning
product for primary and lower-secondary students (roughly ages 6–14) [optional: product
name]. Students use it as a small Vietnamese↔English translation helper while
writing. Is this use permitted?How it is run: The model runs entirely in the student's web browser (Transformers.js,
ONNX, 8-bit quantized). The weights are downloaded from the Hugging Face Hub, and
no user text is sent to any server. We currently use the community ONNX conversion
huuquyet/envit5-translation (licensed WTFPL). Our understanding is that this
conversion is a derivative of your model and remains subject to your license. Is
that correct? Would you also be fine with us hosting a pinned copy of the ONNX files
in our own Hugging Face repository, with your license and attribution attached?Training data: The model was trained on MTet and PhoMT. Do the terms of these
datasets add any restrictions on commercial use of the model weights or of their
translations?Attribution: How would you like to be credited in the product, for example by
naming VietAI, linking to the model page, and citing the MTet paper (arXiv:2210.05610)?Updates: Are there plans to update or deprecate this model that we should follow?
Thank you very much for your time and for your work on Vietnamese NLP.