How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf tapsin/ornith-9b-tapsin:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf tapsin/ornith-9b-tapsin:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf tapsin/ornith-9b-tapsin:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf tapsin/ornith-9b-tapsin:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-app
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama serve -hf tapsin/ornith-9b-tapsin:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama cli -hf tapsin/ornith-9b-tapsin:Q4_K_M
Use Docker
docker model run hf.co/tapsin/ornith-9b-tapsin:Q4_K_M
Quick Links

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:

๐Ÿ”— Links


Built with โค๏ธ for the open-source AI community

Downloads last month
118
GGUF
Model size
9B params
Architecture
qwen35
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support