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