Text Generation
Transformers
Safetensors
gpt2
Generated from Trainer
conversational
text-generation-inference
Instructions to use tmd-rahul/tmd-chat-bot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tmd-rahul/tmd-chat-bot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tmd-rahul/tmd-chat-bot") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("tmd-rahul/tmd-chat-bot") model = AutoModelForCausalLM.from_pretrained("tmd-rahul/tmd-chat-bot", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use tmd-rahul/tmd-chat-bot with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tmd-rahul/tmd-chat-bot" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tmd-rahul/tmd-chat-bot", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tmd-rahul/tmd-chat-bot
- SGLang
How to use tmd-rahul/tmd-chat-bot 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 "tmd-rahul/tmd-chat-bot" \ --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": "tmd-rahul/tmd-chat-bot", "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 "tmd-rahul/tmd-chat-bot" \ --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": "tmd-rahul/tmd-chat-bot", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use tmd-rahul/tmd-chat-bot with Docker Model Runner:
docker model run hf.co/tmd-rahul/tmd-chat-bot
Commit History
-
End of training
Verified signature74dd0c5 -
End of training
Verified signature8039bdf -
End of training
Verified signature189c3d3 -
End of training
Verified signatured0ad258
-
Training in progress, epoch 3
Verified signaturec11f211 -
Training in progress, epoch 2
Verified signature9388531 -
Training in progress, epoch 1
Verified signature4e9182f -
End of training
Verified signaturedf251d4 -
Training in progress, epoch 3
Verified signaturec5c8c3f -
Training in progress, epoch 2
Verified signature2cbb833 -
Training in progress, epoch 1
Verified signaturef008391 -
End of training
Verified signatureccc5da2 -
Training in progress, epoch 2
Verified signatured5499ab -
Training in progress, epoch 1
Verified signature0e15e1b -
End of training
Verified signatureb18ad17 -
End of training
Verified signature5242762 -
End of training
Verified signature04a591a -
End of training
Verified signatureb3458dc -
End of training
Verified signature5c77b55 -
End of training
Verified signature307fa78 -
End of training
Verified signature43828f5
-
Upload 4 files
Verified signature24332a3 -
End of training
Verified signaturec114059 -
Training in progress, epoch 2
Verified signaturea4d4223 -
Training in progress, epoch 1
Verified signatureef2b6a5 -
initial commit
Verified signature363763c