Instructions to use sinatras/gpt-oss-20b-split with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use sinatras/gpt-oss-20b-split with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="sinatras/gpt-oss-20b-split", filename="Q4_K_M/gpt-oss-20b-Q4_K_M-00001-of-00007.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use sinatras/gpt-oss-20b-split with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf sinatras/gpt-oss-20b-split:Q4_K_M # Run inference directly in the terminal: llama-cli -hf sinatras/gpt-oss-20b-split:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf sinatras/gpt-oss-20b-split:Q4_K_M # Run inference directly in the terminal: llama-cli -hf sinatras/gpt-oss-20b-split:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf sinatras/gpt-oss-20b-split:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf sinatras/gpt-oss-20b-split:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf sinatras/gpt-oss-20b-split:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf sinatras/gpt-oss-20b-split:Q4_K_M
Use Docker
docker model run hf.co/sinatras/gpt-oss-20b-split:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use sinatras/gpt-oss-20b-split with Ollama:
ollama run hf.co/sinatras/gpt-oss-20b-split:Q4_K_M
- Unsloth Studio
How to use sinatras/gpt-oss-20b-split with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for sinatras/gpt-oss-20b-split to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for sinatras/gpt-oss-20b-split to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for sinatras/gpt-oss-20b-split to start chatting
- Pi
How to use sinatras/gpt-oss-20b-split with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf sinatras/gpt-oss-20b-split:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "sinatras/gpt-oss-20b-split:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use sinatras/gpt-oss-20b-split with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf sinatras/gpt-oss-20b-split:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default sinatras/gpt-oss-20b-split:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use sinatras/gpt-oss-20b-split with Docker Model Runner:
docker model run hf.co/sinatras/gpt-oss-20b-split:Q4_K_M
- Lemonade
How to use sinatras/gpt-oss-20b-split with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull sinatras/gpt-oss-20b-split:Q4_K_M
Run and chat with the model
lemonade run user.gpt-oss-20b-split-Q4_K_M
List all available models
lemonade list
Add files using upload-large-folder tool
Browse files- .gitattributes +7 -0
- Q4_K_M/gpt-oss-20b-Q4_K_M-00001-of-00007.gguf +3 -0
- Q4_K_M/gpt-oss-20b-Q4_K_M-00002-of-00007.gguf +3 -0
- Q4_K_M/gpt-oss-20b-Q4_K_M-00003-of-00007.gguf +3 -0
- Q4_K_M/gpt-oss-20b-Q4_K_M-00004-of-00007.gguf +3 -0
- Q4_K_M/gpt-oss-20b-Q4_K_M-00005-of-00007.gguf +3 -0
- Q4_K_M/gpt-oss-20b-Q4_K_M-00006-of-00007.gguf +3 -0
- Q4_K_M/gpt-oss-20b-Q4_K_M-00007-of-00007.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,10 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
Q4_K_M/gpt-oss-20b-Q4_K_M-00003-of-00007.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
Q4_K_M/gpt-oss-20b-Q4_K_M-00001-of-00007.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
Q4_K_M/gpt-oss-20b-Q4_K_M-00002-of-00007.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
Q4_K_M/gpt-oss-20b-Q4_K_M-00007-of-00007.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
Q4_K_M/gpt-oss-20b-Q4_K_M-00006-of-00007.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
Q4_K_M/gpt-oss-20b-Q4_K_M-00005-of-00007.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
Q4_K_M/gpt-oss-20b-Q4_K_M-00004-of-00007.gguf filter=lfs diff=lfs merge=lfs -text
|
Q4_K_M/gpt-oss-20b-Q4_K_M-00001-of-00007.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ea7408b861268f57aef41fce913a9f691cf24ce5a042d3611b71e8fe90b29687
|
| 3 |
+
size 1769202976
|
Q4_K_M/gpt-oss-20b-Q4_K_M-00002-of-00007.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a94cfa6b8ed861dfed150d733905e15de2fb34afe3770e9613f3a34378f78034
|
| 3 |
+
size 1766380640
|
Q4_K_M/gpt-oss-20b-Q4_K_M-00003-of-00007.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9df5a8cbe8dec0fb6689d95b00cb7563709bec8bde3d74b83935451989f028e4
|
| 3 |
+
size 1765827680
|
Q4_K_M/gpt-oss-20b-Q4_K_M-00004-of-00007.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c6ecbbb9a3506ad3426a876f5119fba4ac8e14cec501799cfa028b7040ffe38c
|
| 3 |
+
size 1765827744
|
Q4_K_M/gpt-oss-20b-Q4_K_M-00005-of-00007.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:da9168693d37e17974587286582eda6d2c0157fdc39bfcdf15c929ec8eecd914
|
| 3 |
+
size 1766380704
|
Q4_K_M/gpt-oss-20b-Q4_K_M-00006-of-00007.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7fde35367582dca63041ada1d5f3563a2a933bb385fd03dfbf9604c44e03e34c
|
| 3 |
+
size 1766380704
|
Q4_K_M/gpt-oss-20b-Q4_K_M-00007-of-00007.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1a25dde2e27183c8f7e801aca73738198e334ad3765c2ca94ec5e414e25ae2a0
|
| 3 |
+
size 1024759840
|