Instructions to use hachiiiii/marian-finetuned-kde4-en-to-zh_CN with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hachiiiii/marian-finetuned-kde4-en-to-zh_CN 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="hachiiiii/marian-finetuned-kde4-en-to-zh_CN")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("hachiiiii/marian-finetuned-kde4-en-to-zh_CN") model = AutoModelForSeq2SeqLM.from_pretrained("hachiiiii/marian-finetuned-kde4-en-to-zh_CN") - Notebooks
- Google Colab
- Kaggle
| license: apache-2.0 | |
| base_model: Helsinki-NLP/opus-mt-en-zh | |
| tags: | |
| - translation | |
| - generated_from_trainer | |
| datasets: | |
| - kde4 | |
| model-index: | |
| - name: marian-finetuned-kde4-en-to-zh_CN | |
| results: [] | |
| <!-- This model card has been generated automatically according to the information the Trainer had access to. You | |
| should probably proofread and complete it, then remove this comment. --> | |
| # marian-finetuned-kde4-en-to-zh_CN | |
| This model is a fine-tuned version of [Helsinki-NLP/opus-mt-en-zh](https://huggingface.co/Helsinki-NLP/opus-mt-en-zh) on the kde4 dataset. | |
| ## Model description | |
| More information needed | |
| ## Intended uses & limitations | |
| More information needed | |
| ## Training and evaluation data | |
| More information needed | |
| ## Training procedure | |
| ### Training hyperparameters | |
| The following hyperparameters were used during training: | |
| - learning_rate: 2e-05 | |
| - train_batch_size: 32 | |
| - eval_batch_size: 64 | |
| - seed: 42 | |
| - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 | |
| - lr_scheduler_type: linear | |
| - num_epochs: 3 | |
| - mixed_precision_training: Native AMP | |
| ### Training results | |
| ### Framework versions | |
| - Transformers 4.42.4 | |
| - Pytorch 2.3.1+cu121 | |
| - Datasets 2.20.0 | |
| - Tokenizers 0.19.1 | |