Text Generation
Transformers
Safetensors
Spanish
mt5
text2text-generation
simplification
Generated from Trainer
Instructions to use Irisba/Mt5-neutralization-es with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Irisba/Mt5-neutralization-es with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Irisba/Mt5-neutralization-es")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Irisba/Mt5-neutralization-es") model = AutoModelForSeq2SeqLM.from_pretrained("Irisba/Mt5-neutralization-es", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Irisba/Mt5-neutralization-es with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Irisba/Mt5-neutralization-es" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Irisba/Mt5-neutralization-es", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Irisba/Mt5-neutralization-es
- SGLang
How to use Irisba/Mt5-neutralization-es 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 "Irisba/Mt5-neutralization-es" \ --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": "Irisba/Mt5-neutralization-es", "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 "Irisba/Mt5-neutralization-es" \ --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": "Irisba/Mt5-neutralization-es", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Irisba/Mt5-neutralization-es with Docker Model Runner:
docker model run hf.co/Irisba/Mt5-neutralization-es
Update README.md
Browse files
README.md
CHANGED
|
@@ -10,6 +10,11 @@ metrics:
|
|
| 10 |
model-index:
|
| 11 |
- name: Mt5-neutralization-es
|
| 12 |
results: []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
---
|
| 14 |
|
| 15 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -23,19 +28,15 @@ It achieves the following results on the evaluation set:
|
|
| 23 |
- Bleu: 81.3122
|
| 24 |
- Gen Len: 17.4896
|
| 25 |
|
| 26 |
-
## Model description
|
| 27 |
-
|
| 28 |
-
More information needed
|
| 29 |
-
|
| 30 |
## Intended uses & limitations
|
| 31 |
|
| 32 |
-
|
|
|
|
|
|
|
| 33 |
|
| 34 |
## Training and evaluation data
|
| 35 |
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
## Training procedure
|
| 39 |
|
| 40 |
### Training hyperparameters
|
| 41 |
|
|
@@ -61,4 +62,4 @@ The following hyperparameters were used during training:
|
|
| 61 |
- Transformers 4.50.1
|
| 62 |
- Pytorch 2.6.0+cu124
|
| 63 |
- Datasets 3.4.1
|
| 64 |
-
- Tokenizers 0.21.1
|
|
|
|
| 10 |
model-index:
|
| 11 |
- name: Mt5-neutralization-es
|
| 12 |
results: []
|
| 13 |
+
datasets:
|
| 14 |
+
- somosnlp-hackathon-2022/neutral-es
|
| 15 |
+
language:
|
| 16 |
+
- es
|
| 17 |
+
pipeline_tag: text2text-generation
|
| 18 |
---
|
| 19 |
|
| 20 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 28 |
- Bleu: 81.3122
|
| 29 |
- Gen Len: 17.4896
|
| 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
## Intended uses & limitations
|
| 32 |
|
| 33 |
+
Translating Spanish sentences and texts into neutral,"inclusive" language
|
| 34 |
+
Los alumnos: el alumnado
|
| 35 |
+
Las enfermeras: el personal sanitario
|
| 36 |
|
| 37 |
## Training and evaluation data
|
| 38 |
|
| 39 |
+
Training and evaluation dataset: Spanish Gender Neutralization dataset
|
|
|
|
|
|
|
| 40 |
|
| 41 |
### Training hyperparameters
|
| 42 |
|
|
|
|
| 62 |
- Transformers 4.50.1
|
| 63 |
- Pytorch 2.6.0+cu124
|
| 64 |
- Datasets 3.4.1
|
| 65 |
+
- Tokenizers 0.21.1
|