Text Generation
Transformers
PyTorch
TensorBoard
t5
text2text-generation
conversational
text-generation-inference
Instructions to use zelalt/Chatbot_T5-Prmtrs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zelalt/Chatbot_T5-Prmtrs with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="zelalt/Chatbot_T5-Prmtrs")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("zelalt/Chatbot_T5-Prmtrs") model = AutoModelForSeq2SeqLM.from_pretrained("zelalt/Chatbot_T5-Prmtrs", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use zelalt/Chatbot_T5-Prmtrs with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "zelalt/Chatbot_T5-Prmtrs" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "zelalt/Chatbot_T5-Prmtrs", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/zelalt/Chatbot_T5-Prmtrs
- SGLang
How to use zelalt/Chatbot_T5-Prmtrs 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 "zelalt/Chatbot_T5-Prmtrs" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "zelalt/Chatbot_T5-Prmtrs", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "zelalt/Chatbot_T5-Prmtrs" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "zelalt/Chatbot_T5-Prmtrs", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use zelalt/Chatbot_T5-Prmtrs with Docker Model Runner:
docker model run hf.co/zelalt/Chatbot_T5-Prmtrs
Training in progress, step 1500
Browse files
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 242071641
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3d2cd42a11e06c7a70b524d13f065c7a975b3b4c470fb395432c72807518ac01
|
| 3 |
size 242071641
|
runs/Jul14_23-42-20_1463995ba710/events.out.tfevents.1689378142.1463995ba710.4862.2
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0bddcaea4a80bcc8163ceefa091bae73bedb2a4193a63f83d887d07e29eac5e2
|
| 3 |
+
size 5443
|