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
Download tokenizer_config.json from freococo/MyTranslation_300M_Base: direct link, hf CLI and curl.
- Browser
- Download file 400 Bytes
-
https://huggingface.co/freococo/MyTranslation_300M_Base/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://freococo/MyTranslation_300M_Base/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/freococo/MyTranslation_300M_Base/resolve/main/tokenizer_config.json
400 Bytes
| { | |
| "model_max_length": 1024, | |
| "unk_token": "<unk>", | |
| "bos_token": "<s>", | |
| "eos_token": "</s>", | |
| "pad_token": "<pad>", | |
| "additional_special_tokens": [ | |
| "<2my>", | |
| "<2en>", | |
| "<formal>", | |
| "<spoken>", | |
| "<bt>", | |
| "<denoise>", | |
| "<mask>" | |
| ], | |
| "special_tokens_map": { | |
| "2my": 4, | |
| "2en": 5, | |
| "formal": 6, | |
| "spoken": 7, | |
| "bt": 8, | |
| "denoise": 9, | |
| "mask": 10 | |
| } | |
| } |