Text Generation
Transformers
Safetensors
Kyrgyz
mt5
text2text-generation
text-normalization
kyrgyz
low-resource
turkic
continual-pretraining
Instructions to use Zarinaaa/mt5-small-kyrgyz-normalization-ptft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Zarinaaa/mt5-small-kyrgyz-normalization-ptft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Zarinaaa/mt5-small-kyrgyz-normalization-ptft")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Zarinaaa/mt5-small-kyrgyz-normalization-ptft") model = AutoModelForSeq2SeqLM.from_pretrained("Zarinaaa/mt5-small-kyrgyz-normalization-ptft") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Zarinaaa/mt5-small-kyrgyz-normalization-ptft with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Zarinaaa/mt5-small-kyrgyz-normalization-ptft" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Zarinaaa/mt5-small-kyrgyz-normalization-ptft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Zarinaaa/mt5-small-kyrgyz-normalization-ptft
- SGLang
How to use Zarinaaa/mt5-small-kyrgyz-normalization-ptft 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 "Zarinaaa/mt5-small-kyrgyz-normalization-ptft" \ --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": "Zarinaaa/mt5-small-kyrgyz-normalization-ptft", "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 "Zarinaaa/mt5-small-kyrgyz-normalization-ptft" \ --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": "Zarinaaa/mt5-small-kyrgyz-normalization-ptft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Zarinaaa/mt5-small-kyrgyz-normalization-ptft with Docker Model Runner:
docker model run hf.co/Zarinaaa/mt5-small-kyrgyz-normalization-ptft
File size: 2,692 Bytes
0f9559a | 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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | {
"backend": "tokenizers",
"eos_token": "</s>",
"extra_ids": 0,
"extra_special_tokens": [
"<pad>",
"</s>",
"β<extra_id_99>",
"β<extra_id_98>",
"β<extra_id_97>",
"β<extra_id_96>",
"β<extra_id_95>",
"β<extra_id_94>",
"β<extra_id_93>",
"β<extra_id_92>",
"β<extra_id_91>",
"β<extra_id_90>",
"β<extra_id_89>",
"β<extra_id_88>",
"β<extra_id_87>",
"β<extra_id_86>",
"β<extra_id_85>",
"β<extra_id_84>",
"β<extra_id_83>",
"β<extra_id_82>",
"β<extra_id_81>",
"β<extra_id_80>",
"β<extra_id_79>",
"β<extra_id_78>",
"β<extra_id_77>",
"β<extra_id_76>",
"β<extra_id_75>",
"β<extra_id_74>",
"β<extra_id_73>",
"β<extra_id_72>",
"β<extra_id_71>",
"β<extra_id_70>",
"β<extra_id_69>",
"β<extra_id_68>",
"β<extra_id_67>",
"β<extra_id_66>",
"β<extra_id_65>",
"β<extra_id_64>",
"β<extra_id_63>",
"β<extra_id_62>",
"β<extra_id_61>",
"β<extra_id_60>",
"β<extra_id_59>",
"β<extra_id_58>",
"β<extra_id_57>",
"β<extra_id_56>",
"β<extra_id_55>",
"β<extra_id_54>",
"β<extra_id_53>",
"β<extra_id_52>",
"β<extra_id_51>",
"β<extra_id_50>",
"β<extra_id_49>",
"β<extra_id_48>",
"β<extra_id_47>",
"β<extra_id_46>",
"β<extra_id_45>",
"β<extra_id_44>",
"β<extra_id_43>",
"β<extra_id_42>",
"β<extra_id_41>",
"β<extra_id_40>",
"β<extra_id_39>",
"β<extra_id_38>",
"β<extra_id_37>",
"β<extra_id_36>",
"β<extra_id_35>",
"β<extra_id_34>",
"β<extra_id_33>",
"β<extra_id_32>",
"β<extra_id_31>",
"β<extra_id_30>",
"β<extra_id_29>",
"β<extra_id_28>",
"β<extra_id_27>",
"β<extra_id_26>",
"β<extra_id_25>",
"β<extra_id_24>",
"β<extra_id_23>",
"β<extra_id_22>",
"β<extra_id_21>",
"β<extra_id_20>",
"β<extra_id_19>",
"β<extra_id_18>",
"β<extra_id_17>",
"β<extra_id_16>",
"β<extra_id_15>",
"β<extra_id_14>",
"β<extra_id_13>",
"β<extra_id_12>",
"β<extra_id_11>",
"β<extra_id_10>",
"β<extra_id_9>",
"β<extra_id_8>",
"β<extra_id_7>",
"β<extra_id_6>",
"β<extra_id_5>",
"β<extra_id_4>",
"β<extra_id_3>",
"β<extra_id_2>",
"β<extra_id_1>",
"β<extra_id_0>"
],
"is_local": true,
"model_max_length": 1000000000000000019884624838656,
"pad_token": "<pad>",
"tokenizer_class": "T5Tokenizer",
"unk_id": 2,
"unk_token": "<unk>"
}
|