Text Generation
Transformers
PyTorch
English
t5
text2text-generation
SQL
plSQL
english
text-generation-inference
Instructions to use MRNH/flan-t5-large-PLsql with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MRNH/flan-t5-large-PLsql with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MRNH/flan-t5-large-PLsql")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("MRNH/flan-t5-large-PLsql") model = AutoModelForSeq2SeqLM.from_pretrained("MRNH/flan-t5-large-PLsql", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MRNH/flan-t5-large-PLsql with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MRNH/flan-t5-large-PLsql" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MRNH/flan-t5-large-PLsql", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MRNH/flan-t5-large-PLsql
- SGLang
How to use MRNH/flan-t5-large-PLsql 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 "MRNH/flan-t5-large-PLsql" \ --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": "MRNH/flan-t5-large-PLsql", "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 "MRNH/flan-t5-large-PLsql" \ --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": "MRNH/flan-t5-large-PLsql", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MRNH/flan-t5-large-PLsql with Docker Model Runner:
docker model run hf.co/MRNH/flan-t5-large-PLsql
Commit History
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.43ad9ca
-
Upload tokenizer
2fa470c
-
Upload config.json with huggingface_hub
3bb360a -
Upload generation_config.json with huggingface_hub
2bfa6dc -
Upload pytorch_model.bin with huggingface_hub
d0da6b5
-
Upload tokenizer
c98ac0e -
Upload tokenizer
4d85a82 -
Upload tokenizer
ea1757e -
Upload tokenizer
d2b6298 -
Upload tokenizer
f77f237 -
Upload tokenizer
005e0f0 -
Upload tokenizer
872a44f -
Upload tokenizer
8c1af5d -
Upload tokenizer
23bb741 -
Upload tokenizer
0ec2863 -
Upload tokenizer
9f1e95e -
Upload tokenizer
603c011 -
Upload tokenizer
febf11a -
Upload tokenizer
51a83ae -
Upload tokenizer
b8b9504 -
Upload tokenizer
5e2998e -
Upload config.json with huggingface_hub
d1f3e08 -
Upload generation_config.json with huggingface_hub
9caa3fe -
Upload pytorch_model.bin with huggingface_hub
22ea1b2
-
Upload tokenizer
2565982 -
Upload tokenizer
7ff9f09 -
Upload tokenizer
3bcac0f -
Upload config.json with huggingface_hub
e75abbc -
Upload generation_config.json with huggingface_hub
949e3e3 -
Upload pytorch_model.bin with huggingface_hub
2f8f677 -
Upload tokenizer
cb473ea -
Upload tokenizer
ab01a8d -
Upload tokenizer
07b2c95 -
Upload tokenizer
0de1e64 -
Upload tokenizer
4926422 -
Upload tokenizer
f863547 -
Upload tokenizer
bfb958a -
Upload tokenizer
c911c3f -
Upload tokenizer
c6e8edc -
Upload tokenizer
b25b66f -
Upload tokenizer
986201e -
Upload tokenizer
b9161ea -
Upload tokenizer
e73cab2 -
Upload tokenizer
a963d7b -
Upload tokenizer
868c134 -
Upload tokenizer
4a856ba -
Upload tokenizer
5e77e91 -
Upload config.json with huggingface_hub
5867348 -
Upload generation_config.json with huggingface_hub
0a6c79c -
Upload pytorch_model.bin with huggingface_hub
050b05b