Text Generation
Transformers
PyTorch
TensorBoard
English
French
t5
text2text-generation
translation
NLP
text-generation-inference
Instructions to use EstherT/en-fr_translator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EstherT/en-fr_translator with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EstherT/en-fr_translator")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("EstherT/en-fr_translator") model = AutoModelForSeq2SeqLM.from_pretrained("EstherT/en-fr_translator", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use EstherT/en-fr_translator with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EstherT/en-fr_translator" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EstherT/en-fr_translator", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/EstherT/en-fr_translator
- SGLang
How to use EstherT/en-fr_translator 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 "EstherT/en-fr_translator" \ --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": "EstherT/en-fr_translator", "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 "EstherT/en-fr_translator" \ --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": "EstherT/en-fr_translator", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use EstherT/en-fr_translator with Docker Model Runner:
docker model run hf.co/EstherT/en-fr_translator
Commit History
-
Training in progress, step 2500
446b4d8 -
Training in progress, step 2000
9e1b11f -
Training in progress, step 1500
6e97e6b -
Training in progress, step 1000
39fd19a -
Training in progress, step 500
cb9945e
-
Training in progress, step 2500
7c0ad6d -
Training in progress, step 2000
c0810ee -
Training in progress, step 1500
5c1000f -
Training in progress, step 1000
9474f25 -
Training in progress, step 500
7cfc257 -
Training in progress, step 9500
c481160 -
Training in progress, step 9000
75d6435 -
Training in progress, step 8500
e359bda -
Training in progress, step 8000
16a643b -
Training in progress, step 7500
9594c78 -
Training in progress, step 7000
52b9bb6 -
Training in progress, step 6500
60fd825 -
Training in progress, step 6000
2d3fecb -
Training in progress, step 5500
a2cc2cf -
Training in progress, step 5000
6aa344e -
Training in progress, step 4500
4d7c8ef -
Training in progress, step 4000
51c8341 -
Training in progress, step 3500
a2d98ed -
Training in progress, step 3000
eef5693 -
Training in progress, step 2500
0588bc1 -
Training in progress, step 2000
2812df1 -
Training in progress, step 1000
ec04fbe -
Training in progress, step 500
fac3c28