Instructions to use prozart/Wait with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prozart/Wait with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="prozart/Wait")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("prozart/Wait") model = AutoModelForSeq2SeqLM.from_pretrained("prozart/Wait", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use prozart/Wait with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prozart/Wait" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prozart/Wait", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/prozart/Wait
- SGLang
How to use prozart/Wait 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 "prozart/Wait" \ --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": "prozart/Wait", "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 "prozart/Wait" \ --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": "prozart/Wait", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use prozart/Wait with Docker Model Runner:
docker model run hf.co/prozart/Wait
Update README.md
Browse files
README.md
CHANGED
|
@@ -3,7 +3,7 @@ language:
|
|
| 3 |
- fr
|
| 4 |
license: apache-2.0
|
| 5 |
base_model: google/mt5-small
|
| 6 |
-
pipeline_tag:
|
| 7 |
tags:
|
| 8 |
- mt5
|
| 9 |
- text2text-generation
|
|
@@ -52,6 +52,19 @@ Le modèle attend un prompt structuré de la façon suivante :
|
|
| 52 |
|
| 53 |
La génération est effectuée avec `max_length=32`, produisant une phrase courte adaptée à un affichage UI (pas de streaming, pas de sampling avancé décrits dans le code d'inférence).
|
| 54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
## Entraînement
|
| 56 |
|
| 57 |
- Modèle de base : mT5-small
|
|
|
|
| 3 |
- fr
|
| 4 |
license: apache-2.0
|
| 5 |
base_model: google/mt5-small
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
tags:
|
| 8 |
- mt5
|
| 9 |
- text2text-generation
|
|
|
|
| 52 |
|
| 53 |
La génération est effectuée avec `max_length=32`, produisant une phrase courte adaptée à un affichage UI (pas de streaming, pas de sampling avancé décrits dans le code d'inférence).
|
| 54 |
|
| 55 |
+
## Exemples (fictifs)
|
| 56 |
+
|
| 57 |
+
Le modèle gère à la fois le français (`<fr>`) et l'anglais (`<en>`). Exemples illustratifs :
|
| 58 |
+
|
| 59 |
+
| Prompt | Sortie générée |
|
| 60 |
+
|---|---|
|
| 61 |
+
| `<fr> Formalize UI: Recherche. User query: quelle est la météo à Nantes` | `Recherche des informations météo pour Nantes...` |
|
| 62 |
+
| `<fr> Formalize UI: Horloge. User query: donne moi l'heure à Tokyo` | `Récupération de l'heure actuelle à Tokyo...` |
|
| 63 |
+
| `<en> Formalize UI: Search. User query: what's the weather in Paris` | `Searching for weather information in Paris...` |
|
| 64 |
+
| `<en> Formalize UI: Download. User query: get me the latest report` | `Fetching the latest report...` |
|
| 65 |
+
|
| 66 |
+
*(Exemples donnés à titre indicatif pour illustrer le format d'entrée/sortie, à remplacer par de vraies générations du modèle.)*
|
| 67 |
+
|
| 68 |
## Entraînement
|
| 69 |
|
| 70 |
- Modèle de base : mT5-small
|