Instructions to use Atchuth/DialoGPT-small-MichaelBot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Atchuth/DialoGPT-small-MichaelBot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Atchuth/DialoGPT-small-MichaelBot")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Atchuth/DialoGPT-small-MichaelBot") model = AutoModelForCausalLM.from_pretrained("Atchuth/DialoGPT-small-MichaelBot", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Atchuth/DialoGPT-small-MichaelBot with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Atchuth/DialoGPT-small-MichaelBot" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Atchuth/DialoGPT-small-MichaelBot", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Atchuth/DialoGPT-small-MichaelBot
- SGLang
How to use Atchuth/DialoGPT-small-MichaelBot 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 "Atchuth/DialoGPT-small-MichaelBot" \ --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": "Atchuth/DialoGPT-small-MichaelBot", "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 "Atchuth/DialoGPT-small-MichaelBot" \ --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": "Atchuth/DialoGPT-small-MichaelBot", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Atchuth/DialoGPT-small-MichaelBot with Docker Model Runner:
docker model run hf.co/Atchuth/DialoGPT-small-MichaelBot
Commit History
-
Adding `safetensors` variant of this model (#1)
Verified signature- Adding `safetensors` variant of this model (e318e8ecad43556e8d240085d768e60b0bc6d2d0) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>ef883c6
-
Upload vocab.json
ddb982e -
Upload vocab.json
694ae88 -
Upload scheduler.pt with git-lfs
6c240bc -
Create README.md
d81c2cc -
Upload vocab.json
c34a2c6 -
Upload training_args.bin with git-lfs
23885cb -
Upload tokenizer_config.json
10e51aa -
Upload tokenizer.json
850af17 -
Upload special_tokens_map.json
66ce460 -
Upload pytorch_model.bin with git-lfs
782b645 -
Upload merges.txt
1cb483a -
Upload eval_results.txt
ad7e29f -
Upload config.json
b218686 -
initial commit
e697667