Instructions to use tapsin/ornith-9b-tapsin with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tapsin/ornith-9b-tapsin with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tapsin/ornith-9b-tapsin")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tapsin/ornith-9b-tapsin", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use tapsin/ornith-9b-tapsin with 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
- Llama new
- LM Studio
- Jan
- vLLM
How to use tapsin/ornith-9b-tapsin with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tapsin/ornith-9b-tapsin" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tapsin/ornith-9b-tapsin", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tapsin/ornith-9b-tapsin:Q4_K_M
- SGLang
How to use tapsin/ornith-9b-tapsin 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 "tapsin/ornith-9b-tapsin" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tapsin/ornith-9b-tapsin", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "tapsin/ornith-9b-tapsin" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tapsin/ornith-9b-tapsin", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use tapsin/ornith-9b-tapsin with Ollama:
ollama run hf.co/tapsin/ornith-9b-tapsin:Q4_K_M
- Unsloth Desktop
- Pi
How to use tapsin/ornith-9b-tapsin with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf tapsin/ornith-9b-tapsin:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "tapsin/ornith-9b-tapsin:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use tapsin/ornith-9b-tapsin with Docker Model Runner:
docker model run hf.co/tapsin/ornith-9b-tapsin:Q4_K_M
- Lemonade
How to use tapsin/ornith-9b-tapsin with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tapsin/ornith-9b-tapsin:Q4_K_M
Run and chat with the model
lemonade run user.ornith-9b-tapsin-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use tapsin/ornith-9b-tapsin with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf tapsin/ornith-9b-tapsin: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:9931/v1 hermes config set model.default tapsin/ornith-9b-tapsin:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use tapsin/ornith-9b-tapsin with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf tapsin/ornith-9b-tapsin:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "tapsin/ornith-9b-tapsin:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
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_MBuild 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_MUse Docker
docker model run hf.co/tapsin/ornith-9b-tapsin:Q4_K_MOrnith 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
- Downloads last month
- 118
4-bit
Install (macOS, Linux)
# 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