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
Download training_args.bin from Hiranmai49/CFDistilGPT: direct link, hf CLI and curl.
- Browser
- Download file 5.3 kB
-
https://huggingface.co/Hiranmai49/CFDistilGPT/resolve/main/training_args.bin
- Command line
-
hf download hf://Hiranmai49/CFDistilGPT/training_args.bin
-
curl -L -o training_args.bin https://huggingface.co/Hiranmai49/CFDistilGPT/resolve/main/training_args.bin
5.3 kB
- Xet hash:
- 5438d6d4c93a5029489ec602d48e2c68dea954335c6e730965ae744f8abeb2e8
- Size of remote file:
- 5.3 kB
- SHA256:
- a13b069d608c3c7a1b25dfb14a5e5a1fa66d4a44f5eb879598f4e22637444714
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.