Instructions to use not-lain/PyGPT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use not-lain/PyGPT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="not-lain/PyGPT")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("not-lain/PyGPT") model = AutoModelForCausalLM.from_pretrained("not-lain/PyGPT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use not-lain/PyGPT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "not-lain/PyGPT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "not-lain/PyGPT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/not-lain/PyGPT
- SGLang
How to use not-lain/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 "not-lain/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": "not-lain/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 "not-lain/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": "not-lain/PyGPT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use not-lain/PyGPT with Docker Model Runner:
docker model run hf.co/not-lain/PyGPT
Commit History
-
Update README.md
Verified signature5c49efd -
Update README.md
Verified signatureb232876
-
Create README.md
89fc89a -
Training in progress, step 9000
d3979cf -
Training in progress, step 8500
b6ccae9 -
Training in progress, step 8000
df29b6a -
Training in progress, step 7500
c40ae22 -
Training in progress, step 7000
1837461 -
Training in progress, step 6500
a2761f3 -
Training in progress, step 6000
088e61e -
Training in progress, step 5500
1ae8da6 -
Upload tokenizer
bb0638d -
Training in progress, step 5000
0461418 -
Training in progress, step 4500
fbefd91 -
Training in progress, step 4000
fa0094e -
Training in progress, step 3500
53da02c -
Training in progress, step 3000
3883b70 -
Training in progress, step 2500
74659ce -
Training in progress, step 2000
3e83648 -
Training in progress, step 1500
6e561be -
Training in progress, step 1000
b2b1e0c -
Training in progress, step 500
9577da5
-
initial commit
c20a59d