Instructions to use mohd43/PyGPT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mohd43/PyGPT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mohd43/PyGPT")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("mohd43/PyGPT") model = AutoModelForCausalLM.from_pretrained("mohd43/PyGPT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use mohd43/PyGPT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mohd43/PyGPT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mohd43/PyGPT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/mohd43/PyGPT
- SGLang
How to use mohd43/PyGPT 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 "mohd43/PyGPT" \ --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": "mohd43/PyGPT", "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 "mohd43/PyGPT" \ --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": "mohd43/PyGPT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use mohd43/PyGPT with Docker Model Runner:
docker model run hf.co/mohd43/PyGPT
Commit History
-
Training in progress, step 18000
Verified signature6cf55b8 -
Training in progress, step 17500
Verified signature42c6856 -
Training in progress, step 17000
Verified signature75f5001 -
Training in progress, step 16500
Verified signature0dd07a2 -
Training in progress, step 16000
Verified signature6376657 -
Training in progress, step 15500
Verified signature9834be3 -
Training in progress, step 15000
Verified signature58f5aa7 -
Training in progress, step 14500
Verified signaturee3ea695 -
Training in progress, step 14000
Verified signaturee9f882e -
Training in progress, step 13500
Verified signature832dcb9 -
Training in progress, step 13000
Verified signaturecb4d4d9 -
Training in progress, step 12500
Verified signature9d7ed57 -
Training in progress, step 12000
Verified signaturebe80435 -
Training in progress, step 11500
Verified signature3e01f53 -
Training in progress, step 11000
Verified signaturebae8730 -
Training in progress, step 10500
Verified signature3bc2fac -
Training in progress, step 10000
Verified signature46be3a1 -
Training in progress, step 9500
Verified signature455854f -
Training in progress, step 9000
Verified signaturead39a60 -
Training in progress, step 8500
Verified signature0083c91 -
Training in progress, step 8000
Verified signature2016a2a -
Training in progress, step 7500
Verified signature5a2317a -
Training in progress, step 7000
Verified signature3fbeef8 -
Training in progress, step 6500
Verified signature2c31445 -
Training in progress, step 6000
Verified signature11ff743 -
Training in progress, step 5500
Verified signature679e9e3 -
Training in progress, step 5000
Verified signaturea878260 -
Training in progress, step 4500
Verified signaturef20dab2 -
Training in progress, step 4000
Verified signaturebe4f0a7 -
Training in progress, step 3500
Verified signatured321c1b -
Training in progress, step 3000
Verified signature2093980 -
Training in progress, step 2500
Verified signature1bf151c -
Training in progress, step 2000
Verified signature1075401 -
Training in progress, step 1500
Verified signaturee868cdc -
Training in progress, step 1000
Verified signature350836f -
Training in progress, step 500
Verified signatureceb67b3 -
Training in progress, step 18000
Verified signature0209b6d -
Training in progress, step 17500
Verified signature3201bb8 -
Training in progress, step 17000
Verified signature904a3ee -
Training in progress, step 16500
Verified signaturebc62e93 -
Training in progress, step 16000
Verified signature81e79c4 -
Training in progress, step 15500
Verified signature48cdffb -
Training in progress, step 15000
Verified signature9157a7d -
Training in progress, step 14500
Verified signaturea916c9f -
Training in progress, step 14000
Verified signature7038273 -
Training in progress, step 13500
Verified signaturef80e2d9 -
Training in progress, step 13000
Verified signature2cba50b -
Training in progress, step 12500
Verified signature88650f6 -
Training in progress, step 12000
Verified signaturee6e2629 -
Training in progress, step 11500
Verified signature33ace21