Instructions to use Htenn/DialoGPT-small-spongebobv2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Htenn/DialoGPT-small-spongebobv2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Htenn/DialoGPT-small-spongebobv2") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Htenn/DialoGPT-small-spongebobv2") model = AutoModelForCausalLM.from_pretrained("Htenn/DialoGPT-small-spongebobv2") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Htenn/DialoGPT-small-spongebobv2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Htenn/DialoGPT-small-spongebobv2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Htenn/DialoGPT-small-spongebobv2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Htenn/DialoGPT-small-spongebobv2
- SGLang
How to use Htenn/DialoGPT-small-spongebobv2 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 "Htenn/DialoGPT-small-spongebobv2" \ --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": "Htenn/DialoGPT-small-spongebobv2", "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 "Htenn/DialoGPT-small-spongebobv2" \ --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": "Htenn/DialoGPT-small-spongebobv2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Htenn/DialoGPT-small-spongebobv2 with Docker Model Runner:
docker model run hf.co/Htenn/DialoGPT-small-spongebobv2
Ctrl+K
- checkpoint-10500
- checkpoint-14000
- checkpoint-17500
- checkpoint-21000
- checkpoint-24500
- checkpoint-28000
- checkpoint-31500
- checkpoint-3500
- checkpoint-35000
- checkpoint-38500
- checkpoint-42000
- checkpoint-45500
- checkpoint-49000
- checkpoint-52500
- checkpoint-56000
- checkpoint-7000
- 1.18 kB
- 58 Bytes
- 903 Bytes
- 28 Bytes
- 456 kB
- 510 MB xet
- 357 Bytes
- 2.11 MB
- 616 Bytes
- 1.33 kB xet
- 798 kB