Instructions to use Beling86/Ornith-3.63BPW with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Beling86/Ornith-3.63BPW with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Beling86/Ornith-3.63BPW") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Beling86/Ornith-3.63BPW") model = AutoModelForCausalLM.from_pretrained("Beling86/Ornith-3.63BPW", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Beling86/Ornith-3.63BPW with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Beling86/Ornith-3.63BPW" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Beling86/Ornith-3.63BPW", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Beling86/Ornith-3.63BPW
- SGLang
How to use Beling86/Ornith-3.63BPW 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 "Beling86/Ornith-3.63BPW" \ --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": "Beling86/Ornith-3.63BPW", "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 "Beling86/Ornith-3.63BPW" \ --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": "Beling86/Ornith-3.63BPW", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Beling86/Ornith-3.63BPW with Docker Model Runner:
docker model run hf.co/Beling86/Ornith-3.63BPW
Ornith-3.63BPW
Mixed-precision AutoRound quantization of Ornith (a fine-tune of Qwen3.5-122B-A10B) for vLLM. Text-only (vision tower and MTP layer removed). Checkpoint size 51.68 GiB, 3.63 bits per weight on average (packed weights, scales, zero points and BF16 parts).
Precision layout
| Component | Format |
|---|---|
| Routed experts, layers 0, 1, 2, 46, 47 | W4A16, group 128, symmetric |
| Routed experts, other 43 layers | W3A16, group 128, symmetric |
| Gated-DeltaNet and full-attention projections | W8A16, group 128, symmetric |
Routers, shared experts, DeltaNet decay controls (in_proj_a/b), embeddings, LM head, norms |
BF16 |
AutoRound 0.16.1 (SignRound), 400 iterations/block, 512 x 2048-token
calibration samples (chat/code/reasoning/long-context, the model's own chat template). Format auto_round:auto_gptq.
Fidelity vs. BF16
Teacher-forced full-vocabulary KL(P_bf16 ‖ Q_quant) on a held-out set (24 × 1,024 tokens; sources and splits disjoint from calibration):
| Domain | Positions | Mean KL | Median KL | P99 KL | Top-1 agreement | PPL bf16 → quant |
|---|---|---|---|---|---|---|
| all | 24552 | 0.15684 | 0.00937 | 2.7526 | 89.93% | 3.290 → 3.405 |
| chat | 10230 | 0.07439 | 0.01468 | 1.0472 | 91.16% | 4.635 → 4.642 |
| code | 5115 | 0.17265 | 0.00016 | 3.9759 | 94.35% | 1.512 → 1.616 |
| math | 5115 | 0.18199 | 0.00536 | 3.2926 | 89.95% | 2.524 → 2.564 |
| prose | 4092 | 0.31176 | 0.07074 | 3.1415 | 81.28% | 5.147 → 5.678 |
Overall: mean KL 0.15684 (±0.00363), median 0.00937, top-1 agreement 89.93%, P99.9 KL 6.8592, max 13.642. vLLM load/generation was not validated by the quantization pipeline for this release.
Serving (vLLM)
python vllm-patch.py # run with the python of your vLLM environment
vllm serve Beling86/Ornith-3.63BPW --trust-remote-code --dtype bfloat16
vllm-patch.py (in this repo; idempotent, keeps .orig backups, --check / --revert) fixes a vLLM bug found while
serving a sibling checkpoint with per-expert mixed bit-widths: vLLM's INC parser reads the per-layer bits of a fused MoE
layer only if the class name contains fusedmoe, but the class is now RoutedExperts, so every MoE layer falls back to
the global bits: 4 and the 3-bit experts are allocated with 4-bit containers (CUDA OOM while the model is constructed,
before any weight is read). This checkpoint has the same layout (W3/W4 experts under a global bits: 4). The
The architecture-specific KDA patch in that script does not apply to Ornith and reports "not applicable".
2/3-bit experts run on the Humming kernels, 4/8-bit layers on Marlin.
Validation gates passed
Coverage, packed layout vs. config, zero points vs. sym, fused-group consistency, size ≤ 52.0 GiB,
plan conformance, strict reload (no missing keys) for the KL evaluation.
- Downloads last month
- 102
Model tree for Beling86/Ornith-3.63BPW
Base model
ornith-ai/Ornith-1.5-122B