Translation
Transformers
Safetensors
PyTorch
Khmer
blenderbot
text2text-generation
transliteration
romanization
romanized-khmer
khmer
character-level
pretrained
Instructions to use samdei/samdei-type-mini-pretrained with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use samdei/samdei-type-mini-pretrained 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="samdei/samdei-type-mini-pretrained")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("samdei/samdei-type-mini-pretrained") model = AutoModelForSeq2SeqLM.from_pretrained("samdei/samdei-type-mini-pretrained", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from samdei/samdei-type-mini-pretrained: direct link, hf CLI and curl.
- Browser
- Download file 5.09 kB
-
https://huggingface.co/samdei/samdei-type-mini-pretrained/resolve/main/config.json
- Command line
-
hf download hf://samdei/samdei-type-mini-pretrained/config.json
-
curl -L -o config.json https://huggingface.co/samdei/samdei-type-mini-pretrained/resolve/main/config.json
5.09 kB
| { | |
| "architectures": [ | |
| "BlenderbotForConditionalGeneration" | |
| ], | |
| "model_type": "blenderbot", | |
| "vocab_size": 443, | |
| "d_model": 256, | |
| "encoder_layers": 6, | |
| "decoder_layers": 2, | |
| "encoder_attention_heads": 4, | |
| "decoder_attention_heads": 4, | |
| "encoder_ffn_dim": 1024, | |
| "decoder_ffn_dim": 1024, | |
| "activation_function": "gelu", | |
| "max_position_embeddings": 256, | |
| "scale_embedding": true, | |
| "dropout": 0.1, | |
| "attention_dropout": 0.1, | |
| "activation_dropout": 0.1, | |
| "encoder_layerdrop": 0.0, | |
| "decoder_layerdrop": 0.0, | |
| "init_std": 0.02, | |
| "pad_token_id": 0, | |
| "bos_token_id": 1, | |
| "eos_token_id": 2, | |
| "decoder_start_token_id": 1, | |
| "forced_eos_token_id": null, | |
| "encoder_no_repeat_ngram_size": 0, | |
| "is_encoder_decoder": true, | |
| "tie_word_embeddings": false, | |
| "use_cache": true, | |
| "torch_dtype": "float32", | |
| "samdei_type": { | |
| "format_version": 2, | |
| "special_tokens": [ | |
| "<pad>", | |
| "<s>", | |
| "</s>", | |
| "<unk>" | |
| ], | |
| "source_special_tokens": [ | |
| "<src_pad>", | |
| "<src_s>", | |
| "</src>", | |
| "<src_unk>" | |
| ], | |
| "source_offset": 228, | |
| "source": [ | |
| " ", | |
| "!", | |
| "\"", | |
| "#", | |
| "$", | |
| "%", | |
| "&", | |
| "'", | |
| "(", | |
| ")", | |
| "*", | |
| "+", | |
| ",", | |
| "-", | |
| ".", | |
| "/", | |
| "0", | |
| "1", | |
| "2", | |
| "3", | |
| "4", | |
| "5", | |
| "6", | |
| "7", | |
| "8", | |
| "9", | |
| ":", | |
| ";", | |
| "<", | |
| "=", | |
| ">", | |
| "?", | |
| "@", | |
| "A", | |
| "B", | |
| "C", | |
| "D", | |
| "E", | |
| "F", | |
| "G", | |
| "H", | |
| "I", | |
| "J", | |
| "K", | |
| "L", | |
| "M", | |
| "N", | |
| "O", | |
| "P", | |
| "Q", | |
| "R", | |
| "S", | |
| "T", | |
| "U", | |
| "V", | |
| "W", | |
| "X", | |
| "Y", | |
| "Z", | |
| "[", | |
| "]", | |
| "^", | |
| "_", | |
| "a", | |
| "b", | |
| "c", | |
| "d", | |
| "e", | |
| "f", | |
| "g", | |
| "h", | |
| "i", | |
| "j", | |
| "k", | |
| "l", | |
| "m", | |
| "n", | |
| "o", | |
| "p", | |
| "q", | |
| "r", | |
| "s", | |
| "t", | |
| "u", | |
| "v", | |
| "w", | |
| "x", | |
| "y", | |
| "z", | |
| "|", | |
| "~", | |
| "¡", | |
| "«", | |
| "®", | |
| "°", | |
| "·", | |
| "»", | |
| "×", | |
| "á", | |
| "ç", | |
| "è", | |
| "é", | |
| "í", | |
| "ǔ", | |
| "ɓ", | |
| "ə", | |
| "ก", | |
| "ท", | |
| "น", | |
| "ภ", | |
| "ย", | |
| "ร", | |
| "ษ", | |
| "า", | |
| "ิ", | |
| "เ", | |
| "ไ", | |
| "๒", | |
| "๕", | |
| "ລ", | |
| "ວ", | |
| "ສ", | |
| "າ", | |
| "ក", | |
| "ខ", | |
| "គ", | |
| "ឃ", | |
| "ង", | |
| "ច", | |
| "ឆ", | |
| "ជ", | |
| "ឈ", | |
| "ញ", | |
| "ដ", | |
| "ឋ", | |
| "ឌ", | |
| "ណ", | |
| "ត", | |
| "ថ", | |
| "ទ", | |
| "ធ", | |
| "ន", | |
| "ប", | |
| "ផ", | |
| "ព", | |
| "ភ", | |
| "ម", | |
| "យ", | |
| "រ", | |
| "ល", | |
| "វ", | |
| "ស", | |
| "ហ", | |
| "ឡ", | |
| "អ", | |
| "ឧ", | |
| "ឫ", | |
| "ឬ", | |
| "ឯ", | |
| "ឲ", | |
| "ា", | |
| "ិ", | |
| "ី", | |
| "ឹ", | |
| "ឺ", | |
| "ុ", | |
| "ូ", | |
| "ួ", | |
| "ើ", | |
| "ឿ", | |
| "ៀ", | |
| "េ", | |
| "ែ", | |
| "ៃ", | |
| "ោ", | |
| "ៅ", | |
| "ំ", | |
| "ះ", | |
| "ៈ", | |
| "៉", | |
| "៊", | |
| "់", | |
| "៌", | |
| "៍", | |
| "៏", | |
| "័", | |
| "្", | |
| "។", | |
| "៕", | |
| "៖", | |
| "ៗ", | |
| "៘", | |
| "៛", | |
| "‑", | |
| "–", | |
| "—", | |
| "‘", | |
| "’", | |
| "“", | |
| "”", | |
| "•", | |
| "…", | |
| "‹", | |
| "›", | |
| "→", | |
| "−", | |
| "●", | |
| "�", | |
| "😀", | |
| "😛", | |
| "🙂" | |
| ], | |
| "target": [ | |
| " ", | |
| "!", | |
| "\"", | |
| "#", | |
| "$", | |
| "%", | |
| "&", | |
| "'", | |
| "(", | |
| ")", | |
| "*", | |
| "+", | |
| ",", | |
| "-", | |
| ".", | |
| "/", | |
| "0", | |
| "1", | |
| "2", | |
| "3", | |
| "4", | |
| "5", | |
| "6", | |
| "7", | |
| "8", | |
| "9", | |
| ":", | |
| ";", | |
| "<", | |
| "=", | |
| ">", | |
| "?", | |
| "@", | |
| "A", | |
| "B", | |
| "C", | |
| "D", | |
| "E", | |
| "F", | |
| "G", | |
| "H", | |
| "I", | |
| "J", | |
| "K", | |
| "L", | |
| "M", | |
| "N", | |
| "O", | |
| "P", | |
| "Q", | |
| "R", | |
| "S", | |
| "T", | |
| "U", | |
| "V", | |
| "W", | |
| "X", | |
| "Y", | |
| "Z", | |
| "[", | |
| "]", | |
| "^", | |
| "_", | |
| "a", | |
| "b", | |
| "c", | |
| "d", | |
| "e", | |
| "f", | |
| "g", | |
| "h", | |
| "i", | |
| "j", | |
| "k", | |
| "l", | |
| "m", | |
| "n", | |
| "o", | |
| "p", | |
| "q", | |
| "r", | |
| "s", | |
| "t", | |
| "u", | |
| "v", | |
| "w", | |
| "x", | |
| "y", | |
| "z", | |
| "|", | |
| "~", | |
| "¡", | |
| "«", | |
| "®", | |
| "°", | |
| "·", | |
| "»", | |
| "×", | |
| "à", | |
| "á", | |
| "ç", | |
| "è", | |
| "é", | |
| "í", | |
| "ǔ", | |
| "ก", | |
| "ท", | |
| "น", | |
| "ภ", | |
| "ย", | |
| "ร", | |
| "ษ", | |
| "า", | |
| "ิ", | |
| "เ", | |
| "ไ", | |
| "๒", | |
| "๕", | |
| "ລ", | |
| "ວ", | |
| "ສ", | |
| "າ", | |
| "ក", | |
| "ខ", | |
| "គ", | |
| "ឃ", | |
| "ង", | |
| "ច", | |
| "ឆ", | |
| "ជ", | |
| "ឈ", | |
| "ញ", | |
| "ដ", | |
| "ឋ", | |
| "ឌ", | |
| "ឍ", | |
| "ណ", | |
| "ត", | |
| "ថ", | |
| "ទ", | |
| "ធ", | |
| "ន", | |
| "ប", | |
| "ផ", | |
| "ព", | |
| "ភ", | |
| "ម", | |
| "យ", | |
| "រ", | |
| "ល", | |
| "វ", | |
| "ឝ", | |
| "ឞ", | |
| "ស", | |
| "ហ", | |
| "ឡ", | |
| "អ", | |
| "ឥ", | |
| "ឦ", | |
| "ឧ", | |
| "ឩ", | |
| "ឪ", | |
| "ឫ", | |
| "ឬ", | |
| "ឭ", | |
| "ឮ", | |
| "ឯ", | |
| "ឰ", | |
| "ឱ", | |
| "ឲ", | |
| "ឳ", | |
| "ា", | |
| "ិ", | |
| "ី", | |
| "ឹ", | |
| "ឺ", | |
| "ុ", | |
| "ូ", | |
| "ួ", | |
| "ើ", | |
| "ឿ", | |
| "ៀ", | |
| "េ", | |
| "ែ", | |
| "ៃ", | |
| "ោ", | |
| "ៅ", | |
| "ំ", | |
| "ះ", | |
| "ៈ", | |
| "៉", | |
| "៊", | |
| "់", | |
| "៌", | |
| "៍", | |
| "៎", | |
| "៏", | |
| "័", | |
| "៑", | |
| "្", | |
| "។", | |
| "៕", | |
| "៖", | |
| "ៗ", | |
| "៘", | |
| "៛", | |
| "‑", | |
| "–", | |
| "—", | |
| "‘", | |
| "’", | |
| "“", | |
| "”", | |
| "•", | |
| "…", | |
| "‹", | |
| "›", | |
| "→", | |
| "−", | |
| "●", | |
| "�", | |
| "😀", | |
| "😛", | |
| "🙂" | |
| ], | |
| "max_input_chars": 249, | |
| "training": { | |
| "step": 35000 | |
| } | |
| } | |
| } | |