Text Generation
Transformers
TensorBoard
Safetensors
gpt2
Generated from Trainer
text-generation-inference
Instructions to use Hiranmai49/CFDistilGPT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Hiranmai49/CFDistilGPT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Hiranmai49/CFDistilGPT")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Hiranmai49/CFDistilGPT") model = AutoModelForCausalLM.from_pretrained("Hiranmai49/CFDistilGPT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Hiranmai49/CFDistilGPT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Hiranmai49/CFDistilGPT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Hiranmai49/CFDistilGPT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Hiranmai49/CFDistilGPT
- SGLang
How to use Hiranmai49/CFDistilGPT 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 "Hiranmai49/CFDistilGPT" \ --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": "Hiranmai49/CFDistilGPT", "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 "Hiranmai49/CFDistilGPT" \ --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": "Hiranmai49/CFDistilGPT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Hiranmai49/CFDistilGPT with Docker Model Runner:
docker model run hf.co/Hiranmai49/CFDistilGPT
Commit History
-
Upload tokenizer
Verified signatureafb2e4b -
CFDistilGPT
Verified signature9d22fed -
Training in progress, step 2500
Verified signature4cb61c1 -
Training in progress, step 2000
Verified signaturebdc103c -
Training in progress, step 1500
Verified signaturebe103f2 -
Training in progress, step 1000
Verified signatured0dd8ca -
Training in progress, step 500
Verified signature8520394
-
End of training
Verified signature44759f5 -
Training in progress, step 2500
Verified signature45cd354 -
Training in progress, step 2000
Verified signature3023525 -
Training in progress, step 1500
Verified signaturedc27129 -
Training in progress, step 1000
Verified signaturea07c402 -
Training in progress, step 500
Verified signature52cd258 -
End of training
Verified signatureb83accd -
Training in progress, step 27500
Verified signaturee9d62c0 -
Training in progress, step 27000
Verified signature0fe5410 -
Training in progress, step 26500
Verified signature4469ef7 -
Training in progress, step 25500
Verified signature41b6752 -
Training in progress, step 24000
Verified signature3a5b470 -
Training in progress, step 23500
Verified signature8f659bc -
Training in progress, step 23000
Verified signaturee60265b -
Training in progress, step 22500
Verified signature29c5127 -
Training in progress, step 22000
Verified signaturea7f2e3f -
Training in progress, step 21500
Verified signature4ac9c8b -
Training in progress, step 20500
Verified signature6623a4e -
Training in progress, step 20000
Verified signatured506e3d -
Training in progress, step 19500
Verified signature9a7d2e4 -
Training in progress, step 19000
Verified signature1830074 -
Training in progress, step 18500
Verified signaturef2a13ec -
Training in progress, step 18000
Verified signatureb75dcc0 -
Training in progress, step 17500
Verified signature5aeefa0 -
Training in progress, step 17000
Verified signaturef3b8024 -
Training in progress, step 16500
Verified signature10232be -
Training in progress, step 16000
Verified signaturec609b96 -
Training in progress, step 15500
Verified signature953acb3 -
Training in progress, step 15000
Verified signatureafa806c -
Training in progress, step 14500
Verified signature1343612 -
Training in progress, step 13500
Verified signature5381007 -
Training in progress, step 13000
Verified signature131d0d9 -
Training in progress, step 12500
Verified signature6858131 -
Training in progress, step 11500
Verified signature0c99a7d -
Training in progress, step 11000
Verified signature5c1ec38 -
Training in progress, step 10000
Verified signatured5da8d3 -
Training in progress, step 9500
Verified signature51b15c6 -
Training in progress, step 9000
Verified signature15decac -
Training in progress, step 8500
Verified signature083ed40 -
Training in progress, step 8000
Verified signature60ad2c8 -
Training in progress, step 7500
Verified signaturef4933ae -
Training in progress, step 6500
Verified signature42f149b -
Training in progress, step 6000
Verified signatureb811ed1