Instructions to use hou/test-translation-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hou/test-translation-model with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("hou/test-translation-model") model = AutoModelForSeq2SeqLM.from_pretrained("hou/test-translation-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
update model card README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-4.0
|
| 3 |
+
tags:
|
| 4 |
+
- generated_from_trainer
|
| 5 |
+
metrics:
|
| 6 |
+
- bleu
|
| 7 |
+
model-index:
|
| 8 |
+
- name: NNLB-alt-en-bleu-ht
|
| 9 |
+
results: []
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 13 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 14 |
+
|
| 15 |
+
# NNLB-alt-en-bleu-ht
|
| 16 |
+
|
| 17 |
+
This model is a fine-tuned version of [facebook/nllb-200-distilled-600M](https://huggingface.co/facebook/nllb-200-distilled-600M) on an unknown dataset.
|
| 18 |
+
It achieves the following results on the evaluation set:
|
| 19 |
+
- Loss: 2.4011
|
| 20 |
+
- Bleu: 40.828
|
| 21 |
+
- Gen Len: 26.385
|
| 22 |
+
|
| 23 |
+
## Model description
|
| 24 |
+
|
| 25 |
+
More information needed
|
| 26 |
+
|
| 27 |
+
## Intended uses & limitations
|
| 28 |
+
|
| 29 |
+
More information needed
|
| 30 |
+
|
| 31 |
+
## Training and evaluation data
|
| 32 |
+
|
| 33 |
+
More information needed
|
| 34 |
+
|
| 35 |
+
## Training procedure
|
| 36 |
+
|
| 37 |
+
### Training hyperparameters
|
| 38 |
+
|
| 39 |
+
The following hyperparameters were used during training:
|
| 40 |
+
- learning_rate: 0.0001
|
| 41 |
+
- train_batch_size: 14
|
| 42 |
+
- eval_batch_size: 14
|
| 43 |
+
- seed: 42
|
| 44 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 45 |
+
- lr_scheduler_type: linear
|
| 46 |
+
- num_epochs: 30
|
| 47 |
+
- mixed_precision_training: Native AMP
|
| 48 |
+
|
| 49 |
+
### Training results
|
| 50 |
+
|
| 51 |
+
| Training Loss | Epoch | Step | Validation Loss | Bleu | Gen Len |
|
| 52 |
+
|:-------------:|:-----:|:-----:|:---------------:|:-------:|:-------:|
|
| 53 |
+
| 2.0036 | 1.0 | 799 | 1.4377 | 25.1487 | 25.036 |
|
| 54 |
+
| 1.2584 | 2.0 | 1598 | 1.3276 | 29.603 | 25.723 |
|
| 55 |
+
| 1.0147 | 3.0 | 2397 | 1.3204 | 31.3967 | 25.776 |
|
| 56 |
+
| 0.7379 | 4.0 | 3196 | 1.3678 | 32.4951 | 25.266 |
|
| 57 |
+
| 0.6228 | 5.0 | 3995 | 1.4250 | 34.6087 | 26.083 |
|
| 58 |
+
| 0.4327 | 6.0 | 4794 | 1.5342 | 36.6073 | 26.174 |
|
| 59 |
+
| 0.3437 | 7.0 | 5593 | 1.5952 | 37.7791 | 26.265 |
|
| 60 |
+
| 0.2689 | 8.0 | 6392 | 1.6993 | 38.16 | 26.376 |
|
| 61 |
+
| 0.2029 | 9.0 | 7191 | 1.7994 | 39.433 | 26.766 |
|
| 62 |
+
| 0.1711 | 10.0 | 7990 | 1.8893 | 39.2816 | 26.574 |
|
| 63 |
+
| 0.1214 | 11.0 | 8789 | 1.9661 | 39.5599 | 26.687 |
|
| 64 |
+
| 0.1017 | 12.0 | 9588 | 1.9928 | 39.7801 | 26.845 |
|
| 65 |
+
| 0.0855 | 13.0 | 10387 | 2.0508 | 39.8043 | 26.641 |
|
| 66 |
+
| 0.0679 | 14.0 | 11186 | 2.0998 | 40.3389 | 26.526 |
|
| 67 |
+
| 0.06 | 15.0 | 11985 | 2.1350 | 40.0964 | 26.395 |
|
| 68 |
+
| 0.0475 | 16.0 | 12784 | 2.1676 | 40.1536 | 26.614 |
|
| 69 |
+
| 0.0407 | 17.0 | 13583 | 2.2040 | 40.298 | 26.494 |
|
| 70 |
+
| 0.0347 | 18.0 | 14382 | 2.2294 | 40.5207 | 26.612 |
|
| 71 |
+
| 0.0315 | 19.0 | 15181 | 2.2484 | 40.3323 | 26.53 |
|
| 72 |
+
| 0.0286 | 20.0 | 15980 | 2.2828 | 40.3167 | 26.718 |
|
| 73 |
+
| 0.0241 | 21.0 | 16779 | 2.3015 | 40.0766 | 26.306 |
|
| 74 |
+
| 0.0213 | 22.0 | 17578 | 2.3267 | 40.477 | 26.457 |
|
| 75 |
+
| 0.0183 | 23.0 | 18377 | 2.3410 | 40.4013 | 26.406 |
|
| 76 |
+
| 0.0164 | 24.0 | 19176 | 2.3457 | 40.3643 | 26.534 |
|
| 77 |
+
| 0.0157 | 25.0 | 19975 | 2.3533 | 40.3967 | 26.506 |
|
| 78 |
+
| 0.0133 | 26.0 | 20774 | 2.3734 | 40.7786 | 26.38 |
|
| 79 |
+
| 0.0119 | 27.0 | 21573 | 2.3750 | 40.8653 | 26.525 |
|
| 80 |
+
| 0.0106 | 28.0 | 22372 | 2.3896 | 40.8371 | 26.503 |
|
| 81 |
+
| 0.0095 | 29.0 | 23171 | 2.3893 | 40.831 | 26.398 |
|
| 82 |
+
| 0.0094 | 30.0 | 23970 | 2.4011 | 40.828 | 26.385 |
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
### Framework versions
|
| 86 |
+
|
| 87 |
+
- Transformers 4.21.0
|
| 88 |
+
- Pytorch 1.10.0+cu113
|
| 89 |
+
- Datasets 2.4.0
|
| 90 |
+
- Tokenizers 0.12.1
|