Text Generation
GGUF
English
llama.cpp
qwen3.5
qwen3.6
rys
quantized
canada
sovereign-ai
conversational
Instructions to use GestaltLabs/Ornstein-3.6-27B-RYS-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use GestaltLabs/Ornstein-3.6-27B-RYS-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="GestaltLabs/Ornstein-3.6-27B-RYS-GGUF", filename="ornstein-3.6-27b-rys-q2_k.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use GestaltLabs/Ornstein-3.6-27B-RYS-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf GestaltLabs/Ornstein-3.6-27B-RYS-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf GestaltLabs/Ornstein-3.6-27B-RYS-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf GestaltLabs/Ornstein-3.6-27B-RYS-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf GestaltLabs/Ornstein-3.6-27B-RYS-GGUF: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 GestaltLabs/Ornstein-3.6-27B-RYS-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf GestaltLabs/Ornstein-3.6-27B-RYS-GGUF: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 GestaltLabs/Ornstein-3.6-27B-RYS-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf GestaltLabs/Ornstein-3.6-27B-RYS-GGUF:Q4_K_M
Use Docker
docker model run hf.co/GestaltLabs/Ornstein-3.6-27B-RYS-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use GestaltLabs/Ornstein-3.6-27B-RYS-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "GestaltLabs/Ornstein-3.6-27B-RYS-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "GestaltLabs/Ornstein-3.6-27B-RYS-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/GestaltLabs/Ornstein-3.6-27B-RYS-GGUF:Q4_K_M
- Ollama
How to use GestaltLabs/Ornstein-3.6-27B-RYS-GGUF with Ollama:
ollama run hf.co/GestaltLabs/Ornstein-3.6-27B-RYS-GGUF:Q4_K_M
- Unsloth Studio new
How to use GestaltLabs/Ornstein-3.6-27B-RYS-GGUF 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 GestaltLabs/Ornstein-3.6-27B-RYS-GGUF 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 GestaltLabs/Ornstein-3.6-27B-RYS-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for GestaltLabs/Ornstein-3.6-27B-RYS-GGUF to start chatting
- Pi new
How to use GestaltLabs/Ornstein-3.6-27B-RYS-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf GestaltLabs/Ornstein-3.6-27B-RYS-GGUF: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": "GestaltLabs/Ornstein-3.6-27B-RYS-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use GestaltLabs/Ornstein-3.6-27B-RYS-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf GestaltLabs/Ornstein-3.6-27B-RYS-GGUF: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 GestaltLabs/Ornstein-3.6-27B-RYS-GGUF:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use GestaltLabs/Ornstein-3.6-27B-RYS-GGUF with Docker Model Runner:
docker model run hf.co/GestaltLabs/Ornstein-3.6-27B-RYS-GGUF:Q4_K_M
- Lemonade
How to use GestaltLabs/Ornstein-3.6-27B-RYS-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull GestaltLabs/Ornstein-3.6-27B-RYS-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Ornstein-3.6-27B-RYS-GGUF-Q4_K_M
List all available models
lemonade list
Update model card: add Canadian lab mission, Ko-fi, patched llama.cpp fork, quant table
Browse files
README.md
CHANGED
|
@@ -1,132 +1,74 @@
|
|
| 1 |
-
---
|
| 2 |
-
base_model: GestaltLabs/Ornstein-3.6-27B-RYS
|
| 3 |
-
base_model_relation: quantized
|
| 4 |
-
tags:
|
| 5 |
-
- gguf
|
| 6 |
-
- llama.cpp
|
| 7 |
-
- qwen3_5
|
| 8 |
-
- qwen3.6
|
| 9 |
-
- multimodal
|
| 10 |
-
- rys
|
| 11 |
-
- quantized
|
| 12 |
-
- 8-bit
|
| 13 |
-
- 6-bit
|
| 14 |
-
- 4-bit
|
| 15 |
-
- 3-bit
|
| 16 |
-
- 2-bit
|
| 17 |
-
license: apache-2.0
|
| 18 |
-
language:
|
| 19 |
-
- en
|
| 20 |
-
---
|
| 21 |
-
|
| 22 |
-
.png)
|
| 23 |
-
|
| 24 |
# Ornstein-3.6-27B-RYS-GGUF
|
| 25 |
|
| 26 |
-
GGUF quantizations
|
| 27 |
-
|
| 28 |
-
See the base model repo for full details: **[GestaltLabs/Ornstein-3.6-27B-RYS](https://huggingface.co/GestaltLabs/Ornstein-3.6-27B-RYS)**
|
| 29 |
-
|
| 30 |
-
---
|
| 31 |
|
| 32 |
-
##
|
| 33 |
|
| 34 |
-
**
|
| 35 |
|
| 36 |
-
|
| 37 |
-
```
|
| 38 |
-
new_layer_order = [0..23, 22, 23, 24..63] → 66 layers total
|
| 39 |
-
```
|
| 40 |
|
| 41 |
-
|
| 42 |
|
| 43 |
-
-
|
| 44 |
|
| 45 |
-
|
| 46 |
|
| 47 |
-
|
| 48 |
-
|-------|------|-----|---------------|----------|
|
| 49 |
-
| **Q8_0** | ~27.4 GB | 8.0 | ~32 GB | Maximum quality, near-lossless |
|
| 50 |
-
| **Q6_K** | ~21.1 GB | 6.0 | ~26 GB | Strong quality, large context |
|
| 51 |
-
| **Q4_K_M** | ~15.8 GB | 4.0 | ~20 GB | **Balanced default**, 24 GB cards |
|
| 52 |
-
| **Q3_K_M** | ~13.0 GB | 3.0 | ~17 GB | Budget 24 GB VRAM |
|
| 53 |
-
| **Q2_K** | ~10.7 GB | 2.0 | ~15 GB | Extreme budget, CPU offload |
|
| 54 |
|
| 55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
-
|
| 58 |
|
| 59 |
-
##
|
| 60 |
-
|
| 61 |
-
```bash
|
| 62 |
-
# Download a quant
|
| 63 |
-
wget https://huggingface.co/GestaltLabs/Ornstein-3.6-27B-RYS-GGUF/resolve/main/Ornstein-3.6-27B-RYS-Q4_K_M.gguf
|
| 64 |
-
|
| 65 |
-
# Run inference
|
| 66 |
-
./llama-cli -m Ornstein-3.6-27B-RYS-Q4_K_M.gguf \
|
| 67 |
-
-p "Explain RYS layer duplication in one sentence." \
|
| 68 |
-
-n 512 --temp 0.6
|
| 69 |
-
```
|
| 70 |
|
| 71 |
-
###
|
| 72 |
|
| 73 |
```bash
|
| 74 |
-
./llama
|
| 75 |
-
|
| 76 |
-
|
|
|
|
|
|
|
| 77 |
```
|
| 78 |
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
| Quant | Context | Flash Attention | Offload layers |
|
| 82 |
-
|-------|---------|-----------------|----------------|
|
| 83 |
-
| Q8_0 | 4096+ | Yes | Full GPU |
|
| 84 |
-
| Q6_K | 8192+ | Yes | Full GPU |
|
| 85 |
-
| Q4_K_M | 16384+ | Yes | Full GPU |
|
| 86 |
-
| Q3_K_M | 8192 | Yes | CPU offload if needed |
|
| 87 |
-
| Q2_K | 4096 | Recommended | CPU + GPU mix |
|
| 88 |
-
|
| 89 |
-
---
|
| 90 |
|
| 91 |
-
##
|
| 92 |
|
| 93 |
-
|
| 94 |
-
- **Layers**: 66 (64 original + 2 duplicated)
|
| 95 |
-
- **Hidden size**: 5120
|
| 96 |
-
- **Attention**: Gated Delta Net (linear) + full SDPA, full every 4 layers
|
| 97 |
-
- **Heads**: 24 full / 4 KV / head_dim 256
|
| 98 |
-
- **Context**: 262,144 tokens
|
| 99 |
-
- **Vocab**: 248,320 tokens
|
| 100 |
-
- **License**: Apache 2.0
|
| 101 |
|
| 102 |
-
-
|
| 103 |
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
url = {https://dnhkng.github.io/posts/rys/}
|
| 112 |
-
}
|
| 113 |
```
|
| 114 |
|
| 115 |
-
|
| 116 |
-
|
|
|
|
|
|
|
|
|
|
| 117 |
|
| 118 |
-
---
|
| 119 |
|
| 120 |
## Support This Work
|
| 121 |
|
| 122 |
-
|
| 123 |
|
| 124 |
**[Support on Ko-fi](https://ko-fi.com/djlougen)**
|
| 125 |
|
| 126 |
-
---
|
| 127 |
-
|
| 128 |
## License
|
| 129 |
|
| 130 |
-
Apache 2.0
|
| 131 |
-
|
| 132 |
-
[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Ornstein-3.6-27B-RYS-GGUF
|
| 2 |
|
| 3 |
+
GGUF quantizations of [GestaltLabs/Ornstein-3.6-27B-RYS](https://huggingface.co/GestaltLabs/Ornstein-3.6-27B-RYS) — the RYS-enhanced dense Ornstein model.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
+
## About GestaltLabs
|
| 6 |
|
| 7 |
+
We are a proudly Canadian research collective working to advance **sovereign Canadian AI** — open-weight models that Canadians (and everyone else) can run locally, study, and build on without dependence on closed foreign APIs. All training, fine-tuning, and quantization is done on local and self-funded compute. By supporting this work, you help keep frontier model development accessible, transparent, and under Canadian stewardship.
|
| 8 |
|
| 9 |
+
## ⚠️ Requires Patched llama.cpp
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
+
RYS duplicates layer 33, which breaks the hardcoded attention-interval logic in stock llama.cpp. **Stock llama.cpp, Ollama, LM Studio, and similar tools will fail to load these GGUFs.**
|
| 12 |
|
| 13 |
+
**Use this patched fork:** https://github.com/DJLougen/llama.cpp/tree/rys-qwen35
|
| 14 |
|
| 15 |
+
The fork is fully backward-compatible with non-RYS Qwen3.5 models. It now also includes an **SSM tensor probing fallback**, so even legacy GGUFs load correctly without per-layer metadata.
|
| 16 |
|
| 17 |
+
## Available Quantizations
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
+
| File | Quant | Size | Notes |
|
| 20 |
+
|------|-------|------|-------|
|
| 21 |
+
| `ornstein-3.6-27b-rys-q8_0.gguf` | Q8_0 | ~27 GB | Near-lossless |
|
| 22 |
+
| `ornstein-3.6-27b-rys-q6_k.gguf` | Q6_K | ~21 GB | Very high quality |
|
| 23 |
+
| `ornstein-3.6-27b-rys-q5_k_m.gguf` | Q5_K_M | ~18 GB | Strong balance |
|
| 24 |
+
| `ornstein-3.6-27b-rys-q4_k_m.gguf` | Q4_K_M | ~16 GB | Recommended default |
|
| 25 |
+
| `ornstein-3.6-27b-rys-q3_k_m.gguf` | Q3_K_M | ~12 GB | Low-memory option |
|
| 26 |
|
| 27 |
+
Sizes are approximate (exact depends on tokenizer overhead).
|
| 28 |
|
| 29 |
+
## Quick Start
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
+
### 1. Build the patched llama.cpp
|
| 32 |
|
| 33 |
```bash
|
| 34 |
+
git clone https://github.com/DJLougen/llama.cpp.git
|
| 35 |
+
cd llama.cpp
|
| 36 |
+
git checkout rys-qwen35
|
| 37 |
+
cmake -B build -DGGML_CUDA=ON -DCMAKE_BUILD_TYPE=Release
|
| 38 |
+
cmake --build build -j
|
| 39 |
```
|
| 40 |
|
| 41 |
+
Drop `-DGGML_CUDA=ON` for CPU-only.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
+
### 2. Download a GGUF
|
| 44 |
|
| 45 |
+
Grab your preferred quant from the **Files** tab.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
+
### 3. Launch llama-server
|
| 48 |
|
| 49 |
+
```bash
|
| 50 |
+
./build/bin/llama-server \
|
| 51 |
+
-m ornstein-3.6-27b-rys-q4_k_m.gguf \
|
| 52 |
+
--host 0.0.0.0 --port 8080 \
|
| 53 |
+
--n-gpu-layers 99 --ctx-size 131072 \
|
| 54 |
+
--flash-attn on --jinja \
|
| 55 |
+
-ctk q4_0 -ctv q4_0
|
|
|
|
|
|
|
| 56 |
```
|
| 57 |
|
| 58 |
+
* `--jinja` enables the Qwen3 thinking chat template.
|
| 59 |
+
* `--flash-attn on` is recommended for long contexts.
|
| 60 |
+
* `-ctk q4_0 -ctv q4_0` quantizes KV cache to 4-bit.
|
| 61 |
+
|
| 62 |
+
## Note: Thinking Model
|
| 63 |
|
| 64 |
+
This is a Qwen3-Thinking derivative. If you see raw `<think>...</think>` blocks appearing inline in responses, ensure `--jinja` is enabled. Recent llama.cpp builds default `--reasoning-format deepseek`, which splits reasoning into a separate `reasoning_content` field.
|
| 65 |
|
| 66 |
## Support This Work
|
| 67 |
|
| 68 |
+
Our training compute is entirely self-funded. If this model is useful to you, consider supporting the lab:
|
| 69 |
|
| 70 |
**[Support on Ko-fi](https://ko-fi.com/djlougen)**
|
| 71 |
|
|
|
|
|
|
|
| 72 |
## License
|
| 73 |
|
| 74 |
+
Apache 2.0
|
|
|
|
|
|