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")# 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,11 +1,14 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
-
base_model:
|
| 4 |
tags:
|
| 5 |
- generated_from_trainer
|
| 6 |
model-index:
|
| 7 |
- name: text-normalization-ru-new
|
| 8 |
results: []
|
|
|
|
|
|
|
|
|
|
| 9 |
---
|
| 10 |
|
| 11 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -13,7 +16,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 13 |
|
| 14 |
# text-normalization-ru-new
|
| 15 |
|
| 16 |
-
This model is a fine-tuned version of [
|
| 17 |
It achieves the following results on the evaluation set:
|
| 18 |
- Loss: 0.0008
|
| 19 |
- Mean Distance: 0
|
|
@@ -45,30 +48,9 @@ The following hyperparameters were used during training:
|
|
| 45 |
- lr_scheduler_warmup_ratio: 0.1
|
| 46 |
- num_epochs: 15
|
| 47 |
|
| 48 |
-
### Training results
|
| 49 |
-
|
| 50 |
-
| Training Loss | Epoch | Step | Validation Loss | Mean Distance | Max Distance |
|
| 51 |
-
|:-------------:|:-----:|:-----:|:---------------:|:-------------:|:------------:|
|
| 52 |
-
| 0.0004 | 1.0 | 3059 | 0.0022 | 0 | 12 |
|
| 53 |
-
| 0.0003 | 2.0 | 6118 | 0.0011 | 0 | 5 |
|
| 54 |
-
| 0.0003 | 3.0 | 9177 | 0.0010 | 0 | 6 |
|
| 55 |
-
| 0.0003 | 4.0 | 12236 | 0.0012 | 0 | 3 |
|
| 56 |
-
| 0.0003 | 5.0 | 15295 | 0.0008 | 0 | 3 |
|
| 57 |
-
| 0.0002 | 6.0 | 18354 | 0.0009 | 0 | 3 |
|
| 58 |
-
| 0.0002 | 7.0 | 21413 | 0.0008 | 0 | 3 |
|
| 59 |
-
| 0.0002 | 8.0 | 24472 | 0.0008 | 0 | 3 |
|
| 60 |
-
| 0.0002 | 9.0 | 27531 | 0.0007 | 0 | 3 |
|
| 61 |
-
| 0.0002 | 10.0 | 30590 | 0.0008 | 0 | 3 |
|
| 62 |
-
| 0.0002 | 11.0 | 33649 | 0.0008 | 0 | 3 |
|
| 63 |
-
| 0.0002 | 12.0 | 36708 | 0.0008 | 0 | 3 |
|
| 64 |
-
| 0.0002 | 13.0 | 39767 | 0.0008 | 0 | 3 |
|
| 65 |
-
| 0.0002 | 14.0 | 42826 | 0.0008 | 0 | 3 |
|
| 66 |
-
| 0.0002 | 15.0 | 45885 | 0.0008 | 0 | 3 |
|
| 67 |
-
|
| 68 |
-
|
| 69 |
### Framework versions
|
| 70 |
|
| 71 |
- Transformers 4.37.2
|
| 72 |
- Pytorch 2.1.0+cu121
|
| 73 |
- Datasets 2.16.1
|
| 74 |
-
- Tokenizers 0.15.1
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
+
base_model: cointegrated/rut5-small
|
| 4 |
tags:
|
| 5 |
- generated_from_trainer
|
| 6 |
model-index:
|
| 7 |
- name: text-normalization-ru-new
|
| 8 |
results: []
|
| 9 |
+
language:
|
| 10 |
+
- ru
|
| 11 |
+
pipeline_tag: text2text-generation
|
| 12 |
---
|
| 13 |
|
| 14 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 16 |
|
| 17 |
# text-normalization-ru-new
|
| 18 |
|
| 19 |
+
This model is a fine-tuned version of [cointegrated/rut5-small](https://huggingface.co/cointegrated/rut5-small) on the Google Kadle and Custom dataset.
|
| 20 |
It achieves the following results on the evaluation set:
|
| 21 |
- Loss: 0.0008
|
| 22 |
- Mean Distance: 0
|
|
|
|
| 48 |
- lr_scheduler_warmup_ratio: 0.1
|
| 49 |
- num_epochs: 15
|
| 50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
### Framework versions
|
| 52 |
|
| 53 |
- Transformers 4.37.2
|
| 54 |
- Pytorch 2.1.0+cu121
|
| 55 |
- Datasets 2.16.1
|
| 56 |
+
- Tokenizers 0.15.1
|