Text Generation
Transformers
Safetensors
PEFT
Burmese
m2m_100
text2text-generation
burmese
myanmar
myanmar-language
burmese-nlp
style-transfer
text-rewriting
formal-to-informal
written-to-spoken
seq2seq
nllb
lora
low-resource-language
Eval Results (legacy)
Instructions to use DatarrX/myX-TransStyle-W2S with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DatarrX/myX-TransStyle-W2S with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DatarrX/myX-TransStyle-W2S")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("DatarrX/myX-TransStyle-W2S") model = AutoModelForMultimodalLM.from_pretrained("DatarrX/myX-TransStyle-W2S") - PEFT
How to use DatarrX/myX-TransStyle-W2S with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use DatarrX/myX-TransStyle-W2S with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DatarrX/myX-TransStyle-W2S" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DatarrX/myX-TransStyle-W2S", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/DatarrX/myX-TransStyle-W2S
- SGLang
How to use DatarrX/myX-TransStyle-W2S with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "DatarrX/myX-TransStyle-W2S" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DatarrX/myX-TransStyle-W2S", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "DatarrX/myX-TransStyle-W2S" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DatarrX/myX-TransStyle-W2S", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use DatarrX/myX-TransStyle-W2S with Docker Model Runner:
docker model run hf.co/DatarrX/myX-TransStyle-W2S
Upload model files to root
Browse files- .gitattributes +1 -0
- config.json +34 -0
- generation_config.json +9 -0
- model.safetensors +3 -0
- tokenizer.json +3 -0
- tokenizer_config.json +17 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
config.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"activation_dropout": 0.0,
|
| 3 |
+
"activation_function": "relu",
|
| 4 |
+
"architectures": [
|
| 5 |
+
"M2M100ForConditionalGeneration"
|
| 6 |
+
],
|
| 7 |
+
"attention_dropout": 0.1,
|
| 8 |
+
"bos_token_id": 0,
|
| 9 |
+
"d_model": 1024,
|
| 10 |
+
"decoder_attention_heads": 16,
|
| 11 |
+
"decoder_ffn_dim": 4096,
|
| 12 |
+
"decoder_layerdrop": 0,
|
| 13 |
+
"decoder_layers": 12,
|
| 14 |
+
"decoder_start_token_id": 2,
|
| 15 |
+
"dropout": 0.1,
|
| 16 |
+
"dtype": "float16",
|
| 17 |
+
"encoder_attention_heads": 16,
|
| 18 |
+
"encoder_ffn_dim": 4096,
|
| 19 |
+
"encoder_layerdrop": 0,
|
| 20 |
+
"encoder_layers": 12,
|
| 21 |
+
"eos_token_id": 2,
|
| 22 |
+
"init_std": 0.02,
|
| 23 |
+
"is_encoder_decoder": true,
|
| 24 |
+
"max_position_embeddings": 1024,
|
| 25 |
+
"model_type": "m2m_100",
|
| 26 |
+
"num_hidden_layers": 12,
|
| 27 |
+
"pad_token_id": 1,
|
| 28 |
+
"scale_embedding": true,
|
| 29 |
+
"tie_word_embeddings": true,
|
| 30 |
+
"tokenizer_class": "NllbTokenizer",
|
| 31 |
+
"transformers_version": "5.0.0",
|
| 32 |
+
"use_cache": true,
|
| 33 |
+
"vocab_size": 256206
|
| 34 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 0,
|
| 4 |
+
"decoder_start_token_id": 2,
|
| 5 |
+
"eos_token_id": 2,
|
| 6 |
+
"max_length": 200,
|
| 7 |
+
"pad_token_id": 1,
|
| 8 |
+
"transformers_version": "5.0.0"
|
| 9 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2ca269c52c64cbb818c8e37982a92b91ff2a24c631e7c881bd22c09121141a62
|
| 3 |
+
size 2804338168
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c60b0e23cfad07c54356c2f8f4499c61fd175310d5cc7a051f15cc54ea9a6e84
|
| 3 |
+
size 32240116
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"bos_token": "<s>",
|
| 4 |
+
"cls_token": "<s>",
|
| 5 |
+
"eos_token": "</s>",
|
| 6 |
+
"extra_special_tokens": [],
|
| 7 |
+
"is_local": false,
|
| 8 |
+
"mask_token": "<mask>",
|
| 9 |
+
"model_max_length": 1024,
|
| 10 |
+
"pad_token": "<pad>",
|
| 11 |
+
"sep_token": "</s>",
|
| 12 |
+
"sp_model_kwargs": {},
|
| 13 |
+
"src_lang": null,
|
| 14 |
+
"tgt_lang": null,
|
| 15 |
+
"tokenizer_class": "TokenizersBackend",
|
| 16 |
+
"unk_token": "<unk>"
|
| 17 |
+
}
|