Text Generation
Transformers
PyTorch
Safetensors
English
gpt2
gpt-2
conversational
text-generation-inference
Instructions to use kingabzpro/DialoGPT-small-Rick-Bot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kingabzpro/DialoGPT-small-Rick-Bot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kingabzpro/DialoGPT-small-Rick-Bot") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("kingabzpro/DialoGPT-small-Rick-Bot") model = AutoModelForCausalLM.from_pretrained("kingabzpro/DialoGPT-small-Rick-Bot") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use kingabzpro/DialoGPT-small-Rick-Bot with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kingabzpro/DialoGPT-small-Rick-Bot" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kingabzpro/DialoGPT-small-Rick-Bot", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/kingabzpro/DialoGPT-small-Rick-Bot
- SGLang
How to use kingabzpro/DialoGPT-small-Rick-Bot 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 "kingabzpro/DialoGPT-small-Rick-Bot" \ --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": "kingabzpro/DialoGPT-small-Rick-Bot", "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 "kingabzpro/DialoGPT-small-Rick-Bot" \ --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": "kingabzpro/DialoGPT-small-Rick-Bot", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use kingabzpro/DialoGPT-small-Rick-Bot with Docker Model Runner:
docker model run hf.co/kingabzpro/DialoGPT-small-Rick-Bot
Upload README.md with huggingface_hub
#1
by lbourdois - opened
README.md
CHANGED
|
@@ -1,16 +1,16 @@
|
|
| 1 |
---
|
| 2 |
-
language:
|
| 3 |
-
|
| 4 |
-
- Andrada Olteanu Rickmorty-Scripts
|
| 5 |
tags:
|
| 6 |
- conversational
|
| 7 |
- Transformers
|
| 8 |
- gpt2
|
| 9 |
- Chatbot
|
| 10 |
- Rick&Morty
|
| 11 |
-
|
|
|
|
| 12 |
metrics:
|
| 13 |
-
- Perplexity
|
| 14 |
---
|
| 15 |
# Source Code
|
| 16 |
[<img src="https://api.flatworld.co/wp-content/uploads/2020/10/DAGsHub-Logo.png" alt="dagshub" width="150"/>](https://dagshub.com/kingabzpro/DailoGPT-RickBot)
|
|
|
|
| 1 |
---
|
| 2 |
+
language: en
|
| 3 |
+
license: apache-2.0
|
|
|
|
| 4 |
tags:
|
| 5 |
- conversational
|
| 6 |
- Transformers
|
| 7 |
- gpt2
|
| 8 |
- Chatbot
|
| 9 |
- Rick&Morty
|
| 10 |
+
datasets:
|
| 11 |
+
- Andrada Olteanu Rickmorty-Scripts
|
| 12 |
metrics:
|
| 13 |
+
- Perplexity
|
| 14 |
---
|
| 15 |
# Source Code
|
| 16 |
[<img src="https://api.flatworld.co/wp-content/uploads/2020/10/DAGsHub-Logo.png" alt="dagshub" width="150"/>](https://dagshub.com/kingabzpro/DailoGPT-RickBot)
|