CoolFace
Modelpublic

s-batman/Nex-N2-mini-GGUF

sourceHugging Faceapache-2.0updated 4mo agoView on Hugging Face
5likes411downloads
Model Card

s-batman/Nex-N2-mini-GGUF

GGUF quantizations of Nex-N2-mini by Nex AGI — an agentic multimodal model with Agentic Thinking, post-trained on Qwen3.5-35B-A3B-Base. Includes standard integer quants (Q4KS through Q8_0) and an NVFP4 mixed-precision variant optimised for NVIDIA Blackwell GPUs.

Model Creator

Nex AGI

Original Model

nex-agi/Nex-N2-mini

Architecture Details

PropertyValue
ArchitectureQwen3_5MoeForConditionalGeneration
Base modelQwen3.5-35B-A3B-Base
Total parameters~35B
Active parameters~3B per forward pass
Experts256 total, 8 routed + 1 shared per token
Hidden size2048
Layers40 (hybrid: 3× Gated DeltaNet + 1× Full Attention per group)
Context length262,144 tokens
Vocabulary248,320
Vision encoderViT-based, 27 blocks, 1152 hidden dim, patch 16×16
Multi-Token PredictionNot included (no MTP weights in source release)
LicenseApache 2.0

Tensor Architecture Breakdown

CategoryTensorsSize (F16)% of ModelSensitivity
Routed experts (ffn_*_exps)12060.00 GB92.9%🟢 Low — only 8/256 active
Embeddings + output head21.89 GB2.9%🟡 Moderate
Attention QKV601.29 GB2.0%🟡 Moderate
SSM/DeltaNet (ssm_*)1500.48 GB0.7%🔴 Critical — state tracking
Attention gate300.47 GB0.7%🟡 Moderate
Shared expert (ffn_*_shexp)1200.23 GB0.4%🟡 Always active
Attention output100.16 GB0.2%🟡 Moderate
Router (ffn_gate_inp)800.08 GB0.1%🔴 Critical — expert routing
Norms/biases161~0 GB~0%🔴 Critical

Provided Files

Standard Quantizations

QuantFileSizeUse Case
F16Nex-N2-mini-F16.gguf64.6 GBFull precision, maximum quality
Q8_0Nex-N2-mini-Q8_0.gguf34.4 GBNear-lossless, good balance
Q6_KNex-N2-mini-Q6_K.gguf26.6 GBVery high quality
Q5_K_MNex-N2-mini-Q5_K_M.gguf23.0 GBHigh quality, good size
Q5_K_SNex-N2-mini-Q5_K_S.gguf22.3 GBGood quality, smaller
Q5_0Nex-N2-mini-Q5_0.gguf22.3 GBGood quality baseline
Q4_K_MNex-N2-mini-Q4_K_M.gguf19.7 GBBest quality/size tradeoff
Q4_K_SNex-N2-mini-Q4_K_S.gguf18.5 GBSmallest, acceptable quality

Blackwell-Optimised (NVFP4)

QuantFileSizeTensor CompositionUse Case
NVFP4Nex-N2-mini-NVFP4.gguf19.4 GB120× NVFP4 + 312× Q8_0 + 301× F32Fastest on Blackwell GPUs

Vision Projector

FileSizeNotes
mmproj-Nex-N2-mini-F16.gguf0.84 GBRequired for image/vision input
Note: The mmproj file is required for multimodal (vision) capabilities. For text-only use, it is not needed.

NVFP4 Mixed-Precision Details

The NVFP4 variant uses architecture-aware tensor mapping:

Tensor CategoryQuantizationRationale
Routed experts (ffn_down_exps, ffn_gate_exps, ffn_up_exps)NVFP492.9% of model, only 8/256 active per token. Hardware-native FP4 dequant on Blackwell provides best throughput.
Router (ffn_gate_inp, ffn_gate_inp_shexp)F320.1% of model. Critical for expert routing decisions — bad routing = wrong experts = garbage output.
SSM/DeltaNet (ssm_a, ssm_conv1d, ssm_dt, ssm_alpha, ssm_beta, ssm_norm, ssm_out)F320.7% of model. Critical for linear attention state tracking across the sequence.
Shared expert, attention, embeddings, normsQ8_0Moderate sensitivity, always active or frequently accessed.

Base quant type: Q8_0 — ensures router, SSM, shared expert, and attention tensors maintain high quality while only the expert weights use NVFP4.

bash
# Reproduction
cat > nvfp4-tensor-types.txt << 'EOF'
ffn_down_exps=nvfp4
ffn_gate_exps=nvfp4
ffn_up_exps=nvfp4
EOF

llama-quantize \
  --allow-requantize \
  --tensor-type-file nvfp4-tensor-types.txt \
  Nex-N2-mini-F16.gguf \
  Nex-N2-mini-NVFP4.gguf \
  Q8_0

Conversion Notes

  • Converted with --no-mtp — the source model does not include Multi-Token Prediction weights despite mtp_num_hidden_layers: 1 in config. Speculative decoding with --spec-type draft-mtp is not supported for this model.
  • All quants produced from F16 GGUF using llama-quantize (standard quantization, no imatrix).
  • The hybrid DeltaNet + Full Attention architecture is fully supported in llama.cpp builds with qwen3_5_moe architecture support.

Usage with llama.cpp

Requirements

  • llama.cpp build with Qwen3_5MoeForConditionalGeneration architecture support
  • For NVFP4: build 8967+ with -DGGML_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=121 (Blackwell)
  • For vision: build with multimodal support (llama-mtmd-cli)

Text-Only Server

bash
llama-server \
  -m Nex-N2-mini-Q4_K_M.gguf \
  --host 0.0.0.0 \
  --port 8080 \
  -c 262144 \
  -ngl 99 \
  -fa on \
  -ctk q8_0 -ctv q8_0 \
  --no-mmap \
  --mlock \
  --cont-batching \
  --temp 0.7 \
  --top-p 0.95 \
  --top-k 40

Multimodal Server (with Vision)

bash
llama-server \
  -m Nex-N2-mini-Q4_K_M.gguf \
  --mmproj mmproj-Nex-N2-mini-F16.gguf \
  --host 0.0.0.0 \
  --port 8080 \
  -c 262144 \
  -ngl 99 \
  -fa on \
  -ctk q8_0 -ctv q8_0 \
  --no-mmap \
  --mlock \
  --cont-batching \
  --temp 0.7 \
  --top-p 0.95 \
  --top-k 40

NVFP4 on DGX Spark / Blackwell

bash
llama-server \
  -m Nex-N2-mini-NVFP4.gguf \
  --mmproj mmproj-Nex-N2-mini-F16.gguf \
  --host 0.0.0.0 \
  --port 8080 \
  -c 262144 \
  -ngl 99 \
  -fa on \
  -ctk f16 -ctv f16 \
  --no-mmap \
  --mlock \
  --cont-batching \
  --ubatch-size 2048 \
  --temp 0.7 \
  --top-p 0.95 \
  --top-k 40

Download with llama.cpp

bash
# Standard quant
llama-cli --hf-repo s-batman/Nex-N2-mini-GGUF --hf-file Nex-N2-mini-Q4_K_M.gguf -p "Hello"

# NVFP4 (Blackwell only)
llama-cli --hf-repo s-batman/Nex-N2-mini-GGUF --hf-file Nex-N2-mini-NVFP4.gguf -p "Hello"

Recommended Sampling Parameters

Per the model creators:

ParameterValue
Temperature0.7
top_p0.95
top_k40

About Nex-N2

Nex-N2 is an agentic model built for real-world productivity scenarios. It unifies reasoning, tool use, and environment execution through an Agentic Thinking framework:

  • Adaptive Thinking — the model decides when to think and how deeply, executing simple actions quickly while reasoning thoroughly on critical decisions
  • Coherent Thinking — one consistent reasoning paradigm across general reasoning and diverse agentic tasks

Nex-N2-mini reaches first-tier performance on agentic coding, deep research, tool calling, and terminal execution benchmarks, with substantial gains over the previous-generation Nex-N1.

Important Notes

  • Unified memory: On DGX Spark and similar unified memory architectures, --no-mmap is recommended to avoid severe slowdowns
  • mmproj required for vision: The mmproj-Nex-N2-mini-F16.gguf file must be loaded with --mmproj for image/vision input
  • NVFP4 is Blackwell-only: The NVFP4 quantization requires NVIDIA Blackwell GPU hardware (RTX 5090, RTX PRO 6000, DGX Spark/GB10, B200, etc.)
  • DeltaNet layers: This model uses hybrid Gated DeltaNet + Full Attention. Ensure your llama.cpp build supports the qwen3_5_moe architecture
  • No MTP: The source model does not include Multi-Token Prediction weights. Do not use --spec-type draft-mtp with this model

Licensing

Apache 2.0 — same as the original nex-agi/Nex-N2-mini model.

Acknowledgments

  • Nex AGI — Nex-N2-mini model
  • Qwen Team (Alibaba Cloud) — Qwen3.5-35B-A3B-Base foundation model
  • ggml-org/llama.cpp — GGUF format, conversion tools, and inference engine