Translation
Transformers
Safetensors
Burmese
English
mytranslation
text2text-generation
Translation
Safetensors
Burmese
English
myanmartranslator
MyanmarLLM
custom_code
myanmar
Instructions to use freococo/MyTranslation_300M_Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use freococo/MyTranslation_300M_Base 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="freococo/MyTranslation_300M_Base", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSeq2SeqLM model = AutoModelForSeq2SeqLM.from_pretrained("freococo/MyTranslation_300M_Base", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 803 Bytes
3bcdbab | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | {
"architectures": [
"MyTranslationForConditionalGeneration"
],
"auto_map": {
"AutoConfig": "configuration_mytranslation.MyTranslationConfig",
"AutoModelForSeq2SeqLM": "modeling_mytranslation.MyTranslationForConditionalGeneration"
},
"model_type": "mytranslation",
"is_encoder_decoder": true,
"tie_word_embeddings": true,
"vocab_size": 65536,
"d_model": 1024,
"n_heads": 16,
"n_kv_heads": 4,
"enc_layers": 12,
"dec_layers": 6,
"ffn_dim": 3072,
"max_seq_len": 2048,
"rope_theta": 50000.0,
"unk_token_id": 0,
"bos_token_id": 1,
"eos_token_id": 2,
"pad_token_id": 3,
"stage1_final_val_nll": 1.4316,
"stage1_final_val_ppl": 4.19,
"val_nll": 1.164,
"val_ppl": 3.2,
"en2my_val_nll": 1.4829,
"my2en_val_nll": 0.8901,
"torch_dtype": "bfloat16"
} |