Instructions to use banden/DialoGPT-medium-RickBot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use banden/DialoGPT-medium-RickBot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="banden/DialoGPT-medium-RickBot") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("banden/DialoGPT-medium-RickBot") model = AutoModelForCausalLM.from_pretrained("banden/DialoGPT-medium-RickBot") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use banden/DialoGPT-medium-RickBot with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "banden/DialoGPT-medium-RickBot" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "banden/DialoGPT-medium-RickBot", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/banden/DialoGPT-medium-RickBot
- SGLang
How to use banden/DialoGPT-medium-RickBot 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 "banden/DialoGPT-medium-RickBot" \ --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": "banden/DialoGPT-medium-RickBot", "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 "banden/DialoGPT-medium-RickBot" \ --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": "banden/DialoGPT-medium-RickBot", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use banden/DialoGPT-medium-RickBot with Docker Model Runner:
docker model run hf.co/banden/DialoGPT-medium-RickBot
- Xet hash:
- 1285653ea52a84fd42c8efa04de5a9cd61e38f63a36fd835a9bed6d539a414df
- Size of remote file:
- 510 MB
- SHA256:
- 8c1ba6fd54dd343b05a39f7a753b58f911c0987dfa16e2d550d3cc1a245e900c
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.