Instructions to use MrD05/pyg6b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MrD05/pyg6b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MrD05/pyg6b")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("MrD05/pyg6b") model = AutoModelForCausalLM.from_pretrained("MrD05/pyg6b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MrD05/pyg6b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MrD05/pyg6b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MrD05/pyg6b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MrD05/pyg6b
- SGLang
How to use MrD05/pyg6b 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 "MrD05/pyg6b" \ --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": "MrD05/pyg6b", "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 "MrD05/pyg6b" \ --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": "MrD05/pyg6b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MrD05/pyg6b with Docker Model Runner:
docker model run hf.co/MrD05/pyg6b
Commit History
-
Adding `safetensors` variant of this model (#1)
- Adding `safetensors` variant of this model (a83bf87fb0316050cc598cd1a04006c4ea000749)36c2a79
-
Update config.json
5d2ab04
-
Update handler.py
d1ea3f5 -
Update handler.py
f5ea52f -
Update requirements.txt
7572baf -
Update handler.py
6815019 -
Update handler.py
685e40e -
Update handler.py
6f8903a -
Update requirements.txt
f04abd5 -
Update handler.py
89f8d10
-
Update handler.py
17d05c4
-
Update handler.py
0d4fb66 -
Update requirements.txt
b0d02fc
-
Update requirements.txt
39f906a -
Update handler.py
f036f98 -
Update handler.py
33203c4 -
Create requirements.txt
9daf34e
-
Create requirements.txt
922e5ce -
Create handler.py
911f092 -
Update README.md
7007e60
-
Update README.md
426c84f -
Upload 10 files
a841d5f -
initial commit
5033e15