Instructions to use stefaniftime/dialoGPT-finetuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use stefaniftime/dialoGPT-finetuned with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="stefaniftime/dialoGPT-finetuned")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("stefaniftime/dialoGPT-finetuned") model = AutoModelForCausalLM.from_pretrained("stefaniftime/dialoGPT-finetuned") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use stefaniftime/dialoGPT-finetuned with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "stefaniftime/dialoGPT-finetuned" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "stefaniftime/dialoGPT-finetuned", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/stefaniftime/dialoGPT-finetuned
- SGLang
How to use stefaniftime/dialoGPT-finetuned 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 "stefaniftime/dialoGPT-finetuned" \ --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": "stefaniftime/dialoGPT-finetuned", "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 "stefaniftime/dialoGPT-finetuned" \ --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": "stefaniftime/dialoGPT-finetuned", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use stefaniftime/dialoGPT-finetuned with Docker Model Runner:
docker model run hf.co/stefaniftime/dialoGPT-finetuned
Update README.md
#2
by sebastiantrbl - opened
README.md
CHANGED
|
@@ -8,6 +8,7 @@ datasets:
|
|
| 8 |
model-index:
|
| 9 |
- name: dialoGPT-finetuned
|
| 10 |
results: []
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -52,4 +53,4 @@ The following hyperparameters were used during training:
|
|
| 52 |
- Transformers 4.33.1
|
| 53 |
- Pytorch 2.0.1+cu118
|
| 54 |
- Datasets 2.14.5
|
| 55 |
-
- Tokenizers 0.13.3
|
|
|
|
| 8 |
model-index:
|
| 9 |
- name: dialoGPT-finetuned
|
| 10 |
results: []
|
| 11 |
+
pipeline_tag: conversational
|
| 12 |
---
|
| 13 |
|
| 14 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 53 |
- Transformers 4.33.1
|
| 54 |
- Pytorch 2.0.1+cu118
|
| 55 |
- Datasets 2.14.5
|
| 56 |
+
- Tokenizers 0.13.3
|