Instructions to use anezatra/gpt2-rdanny-chatbot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use anezatra/gpt2-rdanny-chatbot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="anezatra/gpt2-rdanny-chatbot")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("anezatra/gpt2-rdanny-chatbot") model = AutoModelForCausalLM.from_pretrained("anezatra/gpt2-rdanny-chatbot") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use anezatra/gpt2-rdanny-chatbot with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "anezatra/gpt2-rdanny-chatbot" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "anezatra/gpt2-rdanny-chatbot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/anezatra/gpt2-rdanny-chatbot
- SGLang
How to use anezatra/gpt2-rdanny-chatbot 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 "anezatra/gpt2-rdanny-chatbot" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "anezatra/gpt2-rdanny-chatbot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "anezatra/gpt2-rdanny-chatbot" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "anezatra/gpt2-rdanny-chatbot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use anezatra/gpt2-rdanny-chatbot with Docker Model Runner:
docker model run hf.co/anezatra/gpt2-rdanny-chatbot
GPT-2 rDanny ChatBot
Model Description
Training a GPT-2 model using the rDany dataset is a significant step forward in the advancement of artificial intelligence technologies. This model, designed as a chatbot, can generate human-like conversations by learning from vast datasets covering various topics. Capable of interacting with users, answering questions, and even making jokes, this model opens up new possibilities for communication and interaction in the digital world.
Authors
- Developed by: Anezatra
- Model type: GPT2
- Contacts: https://github.com/anezatra
- Downloads last month
- 2
