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 11000
Verified signaturef5134c6 -
Training in progress, step 10500
Verified signaturecac106d -
Training in progress, step 10000
Verified signatured9732be -
Training in progress, step 9500
Verified signature5fc7683 -
Training in progress, step 9000
Verified signature6bbbd9b -
Training in progress, step 8500
Verified signature2f7427e -
Training in progress, step 8000
Verified signaturee5bcb2f -
Training in progress, step 7500
Verified signature0399699 -
Training in progress, step 7000
Verified signature18caef6 -
Training in progress, step 6500
Verified signatureedf191e -
Training in progress, step 6000
Verified signature7f099f9 -
Training in progress, step 5500
Verified signatureb9c5816 -
Training in progress, step 5000
Verified signaturef563d65 -
Training in progress, step 4500
Verified signaturef8287c1 -
Training in progress, step 4000
Verified signaturea758930 -
Training in progress, step 3500
Verified signature23a261c -
Training in progress, step 3000
Verified signature5a7828e -
Training in progress, step 2500
Verified signature69cd357 -
Training in progress, step 2000
Verified signature0685ea7 -
Training in progress, step 1500
Verified signaturea7ca71e -
Training in progress, step 1000
Verified signaturec2a0b78 -
Training in progress, step 500
Verified signaturef34cb1c -
initial commit
Verified signatured231f6e