Instructions to use bartowski/G2-9B-Blackout-R1-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bartowski/G2-9B-Blackout-R1-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bartowski/G2-9B-Blackout-R1-GGUF")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("bartowski/G2-9B-Blackout-R1-GGUF", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use bartowski/G2-9B-Blackout-R1-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bartowski/G2-9B-Blackout-R1-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bartowski/G2-9B-Blackout-R1-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/bartowski/G2-9B-Blackout-R1-GGUF
- SGLang
How to use bartowski/G2-9B-Blackout-R1-GGUF 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 "bartowski/G2-9B-Blackout-R1-GGUF" \ --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": "bartowski/G2-9B-Blackout-R1-GGUF", "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 "bartowski/G2-9B-Blackout-R1-GGUF" \ --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": "bartowski/G2-9B-Blackout-R1-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use bartowski/G2-9B-Blackout-R1-GGUF with Docker Model Runner:
docker model run hf.co/bartowski/G2-9B-Blackout-R1-GGUF
Ctrl+K
- 3.16 kB
- 3.43 GB xet
- 4.49 GB xet
- 4.14 GB xet
- 5.18 GB xet
- 3.81 GB xet
- 4.03 GB xet
- 5.13 GB xet
- 4.76 GB xet
- 4.34 GB xet
- 5.35 GB xet
- 5.46 GB xet
- 5.44 GB xet
- 5.44 GB xet
- 5.44 GB xet
- 5.98 GB xet
- 5.76 GB xet
- 5.48 GB xet
- 6.87 GB xet
- 6.65 GB xet
- 6.48 GB xet
- 7.59 GB xet
- 7.81 GB xet
- 9.83 GB xet
- 18.5 GB xet
- 6.12 MB xet
- 9.82 kB