CoolFace
Modelpublic

barozp/ZAYA1-8B-BNB

sourceHugging Faceapache-2.0updated 5mo agoView on Hugging Face
7likes
Model Card

ZAYA1-8B — bitsandbytes Quantizations

bitsandbytes quantizations of Zyphra/ZAYA1-8B.

Note: ZAYA1-8B uses a custom sparse MoE architecture (ZayaForCausalLM) that is not yet supported by llama.cpp. GGUF files will be added once support lands (issue #22776). In the meantime, these bitsandbytes quantizations provide a working alternative.

Available Files

FolderFormatBitsSizeDescription
NF4/NF44-bit~5.0 GBNormal Float 4 — best 4-bit quality
NF4-DQ/NF4 + DQ~4-bit~4.7 GBNF4 + double quantization — slightly smaller
INT8/INT88-bit~9.0 GBNear-lossless

About ZAYA1-8B

ZAYA1-8B is a small mixture of experts language model with 760M active parameters and 8.4B total parameters trained end-to-end by Zyphra. It sets a new standard of intelligence efficiency for its parameter count through a combination of novel architecture and innovations in pretraining and post-training.

ZAYA1-8B excels at detailed long-form reasoning, especially for mathematical and coding tasks. Due to its small total parameter count, it can also be deployed on-device for local LLM applications.

  • —Technical report: https://www.zyphra.com/zaya1-8b-technical-report
  • —Blog post: https://www.zyphra.com/post/zaya1-8b
  • —Pretraining base: Zyphra/ZAYA1-reasoning-base

Performance

![Performance chart](https://huggingface.co/Zyphra/ZAYA1-8B)

![Scaling comparison](https://huggingface.co/Zyphra/ZAYA1-8B)

In-class comparison

CategoryBenchmarkZAYA1-8B (0.7B / 8B)Qwen3-4B-ThinkQwen3.5-4BGemma-4-E4B-it
MathAIME'2689.177.584.550.3
MathHMMT Feb.'2671.660.863.632.1
MathIMO-AnswerBench59.350.948.727.3
MathAPEX-shortlist32.216.9--6.1
CodeLiveCodeBench-v665.854.2--54.2
KnowledgeGPQA-Diamond71.066.576.257.4
KnowledgeMMLU-Pro74.274.379.170.2
InstructionIFEval85.5886.889.888.50
InstructionIFBench52.5652.959.242.67
Style & chatEQBench72.9579.679.580.15
AgenticBFCL-v439.2249.745.231.7

Scaling comparison against larger models

ModelActiveTotalAIME'26HMMT'26LCB-v6GPQA-DMMLU-Pro
ZAYA1-8B0.7B8B89.171.663.871.074.2
Arcee-Trinity-Mini3B26B59.636.933.346.870.6
N3-Nano-30B3B30B90.175.564.675.178.9
OLMo-3.1-32B-Think32B32B78.950.658.359.675.8
Qwen3-Next-80B-A3B3B80B90.279.367.876.782.6
Intellect-312B106B86.372.266.874.682.3
Mistral-Small-4-119B6B119B86.470.657.977.281.6

All numbers from the Zyphra evaluation harness. Models ordered by total parameter count.


Download

HuggingFace's inference widget and one-click download are not available for this repo. ZayaForCausalLM requires Zyphra's custom transformers fork — use the commands below.

Download a specific quantization

bash
# NF4 (4-bit) — recommended
huggingface-cli download barozp/ZAYA1-8B-BNB --include "NF4/*" --local-dir ./ZAYA1-8B-NF4

# NF4 with double quantization
huggingface-cli download barozp/ZAYA1-8B-BNB --include "NF4-DQ/*" --local-dir ./ZAYA1-8B-NF4-DQ

# INT8 (8-bit)
huggingface-cli download barozp/ZAYA1-8B-BNB --include "INT8/*" --local-dir ./ZAYA1-8B-INT8

Download everything

bash
huggingface-cli download barozp/ZAYA1-8B-BNB --local-dir ./ZAYA1-8B-BNB

Usage

Zyphra's custom transformers fork is required to load ZayaForCausalLM:

bash
pip install "transformers @ git+https://github.com/Zyphra/transformers.git@zaya1"
pip install bitsandbytes>=0.43.0 accelerate

Load NF4 (4-bit)

python
from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
import torch

bnb_config = BitsAndBytesConfig(
    load_in_4bit=True,
    bnb_4bit_quant_type="nf4",
    bnb_4bit_compute_dtype=torch.bfloat16,
)

tokenizer = AutoTokenizer.from_pretrained("barozp/ZAYA1-8B-BNB", subfolder="NF4",
                                           trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("barozp/ZAYA1-8B-BNB", subfolder="NF4",
                                              quantization_config=bnb_config,
                                              device_map="auto",
                                              trust_remote_code=True)

Load INT8 (8-bit)

python
bnb_config = BitsAndBytesConfig(load_in_8bit=True)

tokenizer = AutoTokenizer.from_pretrained("barozp/ZAYA1-8B-BNB", subfolder="INT8",
                                           trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("barozp/ZAYA1-8B-BNB", subfolder="INT8",
                                              quantization_config=bnb_config,
                                              device_map="auto",
                                              trust_remote_code=True)

Inference

python
messages = [
    {"role": "system", "content": "You are a helpful assistant."},
    {"role": "user",   "content": "What is the sum of the first 100 prime numbers?"},
]

input_ids = tokenizer.apply_chat_template(messages, return_tensors="pt").to(model.device)
output = model.generate(input_ids, max_new_tokens=512)
print(tokenizer.decode(output[0][input_ids.shape[-1]:], skip_special_tokens=True))

Quantization Details


Original Model Prerequisites

bash
# vLLM (recommended for serving)
pip install "vllm @ git+https://github.com/Zyphra/vllm.git@zaya1"

# Transformers
pip install "transformers @ git+https://github.com/Zyphra/transformers.git@zaya1"

License

Apache 2.0 — same as the original model.