Text Generation
Transformers
Safetensors
English
t5
text2text-generation
grammar-correction
text-generation-inference
Instructions to use elizaveta-dev/T5-REF-CORRUPT-EN with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use elizaveta-dev/T5-REF-CORRUPT-EN with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="elizaveta-dev/T5-REF-CORRUPT-EN")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("elizaveta-dev/T5-REF-CORRUPT-EN") model = AutoModelForSeq2SeqLM.from_pretrained("elizaveta-dev/T5-REF-CORRUPT-EN", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use elizaveta-dev/T5-REF-CORRUPT-EN with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "elizaveta-dev/T5-REF-CORRUPT-EN" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "elizaveta-dev/T5-REF-CORRUPT-EN", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/elizaveta-dev/T5-REF-CORRUPT-EN
- SGLang
How to use elizaveta-dev/T5-REF-CORRUPT-EN 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 "elizaveta-dev/T5-REF-CORRUPT-EN" \ --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": "elizaveta-dev/T5-REF-CORRUPT-EN", "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 "elizaveta-dev/T5-REF-CORRUPT-EN" \ --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": "elizaveta-dev/T5-REF-CORRUPT-EN", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use elizaveta-dev/T5-REF-CORRUPT-EN with Docker Model Runner:
docker model run hf.co/elizaveta-dev/T5-REF-CORRUPT-EN
Commit History
-
Update README.md
Verified signature386d840
-
Upload README.md with huggingface_hub
Verified signature6e7b9be -
Update README.md
Verified signatureb4147ae -
Update README.md
Verified signature833617d -
Upload README.md with huggingface_hub
Verified signature4572c1d -
Upload README.md with huggingface_hub
Verified signature062fa6c -
Upload README.md with huggingface_hub
Verified signature63ec4d6 -
Upload README.md with huggingface_hub
Verified signature093ccc2 -
Upload README.md with huggingface_hub
Verified signature8949aa1 -
Upload README.md with huggingface_hub
Verified signature78fca5d -
Upload README.md with huggingface_hub
Verified signature83cfa29 -
Upload README.md with huggingface_hub
Verified signatureaa5669c -
Upload README.md with huggingface_hub
Verified signature22cd6e6 -
Upload README.md with huggingface_hub
Verified signature393a827 -
Upload README.md with huggingface_hub
Verified signature3e996e8 -
Upload README.md with huggingface_hub
Verified signaturec90aeb6 -
Upload README.md with huggingface_hub
Verified signature8bdf0a5 -
Upload README.md with huggingface_hub
Verified signature4506bc1 -
Upload README.md with huggingface_hub
Verified signature906cb49 -
Upload README.md with huggingface_hub
Verified signatureeded8c0 -
Upload README.md with huggingface_hub
Verified signature56b67c2 -
Upload folder using huggingface_hub
Verified signature7c19c38 -
initial commit
Verified signaturea8aac1b