Instructions to use entity2260/opus_en_zh with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use entity2260/opus_en_zh 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="entity2260/opus_en_zh")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("entity2260/opus_en_zh", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
Ranjith Kumarc0b2bbc -
Upload rust_model.ot.zip with git-lfs
Ranjith KumarUpload rust_model.ot.zipfa26e70 -
Upload tf_model.h5 with git-lfs
Ranjith KumarUpload tf_model.h51035814 -
Upload tokenizer_config.json
Ranjith KumarUpload tokenizer_config.jsonc7aafea -
Upload target.spm
Ranjith KumarUpload target.spm3356c76 -
Upload source.spm
Ranjith KumarUpload source.spmab835d1 -
Upload README.md
Ranjith KumarUpload README.mdfdcdf20 -
Upload pytorch_model.bin with git-lfs
Ranjith KumarUpload pytorch_model.bina8df0ff -
Upload metadata.json
Ranjith KumarUpload metadata.json177adf6 -
Upload gitattributes
Ranjith KumarUpload gitattributesc72a645 -
Upload flax_model.msgpack with git-lfs
Ranjith KumarUpload flax_model.msgpack92ffe32 -
Upload config.json
Ranjith KumarUpload config.json130931d
-
initial commit
023b1ff