Text Generation
Transformers
PyTorch
TensorBoard
Safetensors
Russian
t5
text2text-generation
Generated from Trainer
text-generation-inference
Instructions to use alexue4/text-normalization-ru-new with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use alexue4/text-normalization-ru-new with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="alexue4/text-normalization-ru-new")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("alexue4/text-normalization-ru-new") model = AutoModelForSeq2SeqLM.from_pretrained("alexue4/text-normalization-ru-new", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use alexue4/text-normalization-ru-new with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "alexue4/text-normalization-ru-new" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "alexue4/text-normalization-ru-new", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/alexue4/text-normalization-ru-new
- SGLang
How to use alexue4/text-normalization-ru-new 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 "alexue4/text-normalization-ru-new" \ --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": "alexue4/text-normalization-ru-new", "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 "alexue4/text-normalization-ru-new" \ --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": "alexue4/text-normalization-ru-new", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use alexue4/text-normalization-ru-new with Docker Model Runner:
docker model run hf.co/alexue4/text-normalization-ru-new
Commit History
-
Update README.md
Verified signature5d0453c
-
End of training
Verified signature4148ae4
-
End of training
Verified signaturea917f64
-
End of training
Verified signature2678be8
-
End of training
4a2e4f9
-
End of training
c4638c2
-
End of training
f59add2
-
End of training
dba5c19 -
End of training
e97ec75 -
End of training
359fc6b
-
End of training
6d4fe45 -
End of training
8168262
-
End of training
4312d76
-
End of training
a310d9d
-
End of training
97bfaaf
-
End of training
0031b42
-
End of training
60aaa0e
-
End of training
1306317 -
End of training
19d314f
-
End of training
81e89b6
-
End of training
11562f2
-
Update README.md
25a79b1 -
End of training
407d7de
-
End of training
1ce4365
-
End of training
627343b
-
End of training
e06c4d5 -
initial commit
d29ade6