Ornith 9B Tapsin
Fine-tuned Ornith 1.5 9B models with extended context windows (64K and 128K tokens), optimized for long-context reasoning, coding, and creative tasks.
📦 Model Variants
| Variant | Context Window | Size | Quantization | Download |
|---|---|---|---|---|
ornith-9b-tapsin:64k | 65,536 tokens | ~5.6 GB | Q4_K_M | GGUF |
ornith-9b-tapsin:128k | 131,072 tokens | ~5.6 GB | Q4_K_M | GGUF |
Both variants share the same base weights and mmproj (multimodal projector), differing only in context window configuration via RoPE scaling.
🚀 Quick Start
With Ollama (Recommended)
# 64K context variant
ollama pull hf.co/tapsin/ornith-9b-tapsin:64k-Q4_K_M
# 128K context variant
ollama pull hf.co/tapsin/ornith-9b-tapsin:128k-Q4_K_M
# Run
ollama run ornith-9b-tapsin:64k
ollama run ornith-9b-tapsin:128k
With llama.cpp
# Download model
wget https://huggingface.co/tapsin/ornith-9b-tapsin/resolve/main/ornith-9b-tapsin-Q4_K_M.gguf
# Run with 128K context (adjust -c for context size)
./llama-cli -m ornith-9b-tapsin-Q4_K_M.gguf -c 131072 -ngl 999 -p "Your prompt here"
With Transformers (Python)
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model = AutoModelForCausalLM.from_pretrained(
"tapsin/ornith-9b-tapsin",
torch_dtype=torch.float16,
device_map="auto",
trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained("tapsin/ornith-9b-tapsin")
# For long context, use rope_scaling config
inputs = tokenizer("Your long prompt...", return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
💻 Usage Examples
Long Document Analysis
ollama run ornith-9b-tapsin:128k "Summarize this 100-page document: <paste long text>"
Code Review & Analysis
ollama run ornith-9b-tapsin:64k "Review this codebase for bugs and improvements: <paste large code files>"
Creative Writing
ollama run ornith-9b-tapsin:128k "Write a novel chapter continuing from: <long story context>"
Multi-turn Conversation with Long History
ollama run ornith-9b-tapsin:128k --keepalive 30m
🔧 Technical Details
Base Model
- Architecture: Llama 3.1 / Ornith 1.5 9B
- Original: Ornith-1.5-9B by kietaskrutas01
- Fine-tuning: Extended context via RoPE scaling (YaRN/PI)
Quantization
- Method: Q4_K_M (4-bit K-means quantized, medium)
- Model Size: ~5.6 GB
- MMProj Size: ~624 MB (for vision tasks)
- Quality: Near-lossless for 9B parameters
Context Extension
| Variant | Scaling Factor | Technique |
|---|---|---|
| 64K | ~2.0x | YaRN + NTK-aware RoPE |
| 128K | ~4.0x | YaRN + Dynamic NTK Alpha |
Hardware Requirements
| Context | VRAM (GPU) | RAM (CPU offload) |
|---|---|---|
| 64K | ~8 GB | ~12 GB |
| 128K | ~12 GB | ~18 GB |
With --ngl 999 (full GPU offload), VRAM scales with context length due to KV cache.
📁 Files in This Repository
tapsin/ornith-9b-tapsin/
├── ornith-9b-tapsin-Q4_K_M.gguf # Main model weights (~5.6 GB)
├── ornith-9b-tapsin-mmproj.gguf # Multimodal projector (~624 MB)
├── Modelfile-64k # Ollama modelfile for 64K context
├── Modelfile-128k # Ollama modelfile for 128K context
├── banner.png # Model card banner
└── README.md # This file
📜 License
MIT License — Free for commercial and personal use.
MIT License
Copyright (c) 2026 tapsin
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
🙏 Support / Donate
If you find these models useful, consider supporting development:
- GitHub Sponsors: https://github.com/sponsors/tapsin
- Ko-fi: https://ko-fi.com/tapsin
- Patreon: https://patreon.com/tapsin
🔗 Links
- GitHub Repo: https://github.com/tapsin/ornith-9b-tapsin
- Base Model (Ornith 1.5 9B): https://huggingface.co/kietaskrutas01/Ornith-1.5-9B-uncensored-GGUF
- Ollama Library: (pending submission)
Built with ❤️ for the open-source AI community