Instructions to use osidenna/SoftwareReq-DialoGPT-medium with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use osidenna/SoftwareReq-DialoGPT-medium with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="osidenna/SoftwareReq-DialoGPT-medium")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("osidenna/SoftwareReq-DialoGPT-medium") model = AutoModelForCausalLM.from_pretrained("osidenna/SoftwareReq-DialoGPT-medium", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use osidenna/SoftwareReq-DialoGPT-medium with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "osidenna/SoftwareReq-DialoGPT-medium" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "osidenna/SoftwareReq-DialoGPT-medium", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/osidenna/SoftwareReq-DialoGPT-medium
- SGLang
How to use osidenna/SoftwareReq-DialoGPT-medium 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 "osidenna/SoftwareReq-DialoGPT-medium" \ --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": "osidenna/SoftwareReq-DialoGPT-medium", "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 "osidenna/SoftwareReq-DialoGPT-medium" \ --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": "osidenna/SoftwareReq-DialoGPT-medium", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use osidenna/SoftwareReq-DialoGPT-medium with Docker Model Runner:
docker model run hf.co/osidenna/SoftwareReq-DialoGPT-medium
|
Download README.md from osidenna/SoftwareReq-DialoGPT-medium: direct link, hf CLI and curl.
- Browser
- Download file 672 Bytes
-
https://huggingface.co/osidenna/SoftwareReq-DialoGPT-medium/resolve/main/README.md
- Command line
-
hf download hf://osidenna/SoftwareReq-DialoGPT-medium/README.md
-
curl -L -o README.md https://huggingface.co/osidenna/SoftwareReq-DialoGPT-medium/resolve/main/README.md
672 Bytes
metadata
pipeline_tag: conversational
Model Card for DialoGPT-medium Conversational Model
Model Details
- Model name: Fine tuned DialoGPT-medium
- Model type: Transformer-based language model (GPT-2 variant)
- Original model: DialoGPT from Hugging Face model hub
- Fine-tuning details: The model has been fine-tuned on a custom conversational dataset. It includes a variety of dialogues covering multiple topics, aimed at increasing the model's ability to respond accurately and engagingly in conversational tasks.
Intended Use
DialogPT-medium is designed for a wide range of conversational applications. It is suitable for building chatbots.