Text Generation
Transformers
PyTorch
TensorFlow
JAX
Safetensors
English
t5
text2text-generation
paraphrase-generation
Conditional Generation
text-generation-inference
Instructions to use Vamsi/T5_Paraphrase_Paws with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Vamsi/T5_Paraphrase_Paws with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Vamsi/T5_Paraphrase_Paws")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Vamsi/T5_Paraphrase_Paws") model = AutoModelForSeq2SeqLM.from_pretrained("Vamsi/T5_Paraphrase_Paws", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Vamsi/T5_Paraphrase_Paws with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Vamsi/T5_Paraphrase_Paws" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Vamsi/T5_Paraphrase_Paws", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Vamsi/T5_Paraphrase_Paws
- SGLang
How to use Vamsi/T5_Paraphrase_Paws 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 "Vamsi/T5_Paraphrase_Paws" \ --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": "Vamsi/T5_Paraphrase_Paws", "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 "Vamsi/T5_Paraphrase_Paws" \ --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": "Vamsi/T5_Paraphrase_Paws", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Vamsi/T5_Paraphrase_Paws with Docker Model Runner:
docker model run hf.co/Vamsi/T5_Paraphrase_Paws
Commit History
-
Update README.md (#4)
- Update README.md (7b6647f69cfe97f07ee217b80457bfe14f29a25e) Co-authored-by: ReactionControl <ReactionControl@users.noreply.huggingface.co>ac7aaff
-
Update README.md (#2)
- Update README.md (46805a927a5cc1843e50f7bf3f620fb554e2b359) Co-authored-by: Gokul Adethya T <FrozenWolf@users.noreply.huggingface.co>f8c3ded -
Adding `safetensors` variant of this model (#3)
- Adding `safetensors` variant of this model (97792952603cddc6de3fc8547d47d0712c6529c3) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>c6a296c
-
upload flax model
3bbf07d -
allow flax
f51f717 -
allow flax
4a39875
-
Migrate model card from transformers-repo
Read announcement at https://discuss.huggingface.co/t/announcement-all-model-cards-will-be-migrated-to-hf-co-model-repos/2755 Original file history: https://github.com/huggingface/transformers/commits/master/model_cards/Vamsi/T5_Paraphrase_Paws/README.md40e7426
-
Update pytorch_model.bin
07c349a -
Update special_tokens_map.json
2e64852 -
Update config.json
58123c4 -
Update tf_model.h5
dfffdd3 -
Update checkpointepoch=0.ckpt
421c6a3 -
Update tokenizer_config.json
e9d3ca2 -
Update spiece.model
bd7998b -
initial commit
0b20908