Text Generation
Transformers
Safetensors
English
Korean
qwen3_5
image-text-to-text
darwin
mfp4
mixed-precision
nvfp4
quantization
blackwell
reasoning
conversational
8-bit precision
modelopt
Run this model with HF Jobs
Run FINAL-Bench/Darwin-9B-MFP4 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/FINAL-Bench/Darwin-9B-MFP4. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/FINAL-Bench/Darwin-9B-MFP4 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/FINAL-Bench/Darwin-9B-MFP4. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use FINAL-Bench/Darwin-9B-MFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FINAL-Bench/Darwin-9B-MFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="FINAL-Bench/Darwin-9B-MFP4") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("FINAL-Bench/Darwin-9B-MFP4") model = AutoModelForMultimodalLM.from_pretrained("FINAL-Bench/Darwin-9B-MFP4", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use FINAL-Bench/Darwin-9B-MFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FINAL-Bench/Darwin-9B-MFP4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FINAL-Bench/Darwin-9B-MFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/FINAL-Bench/Darwin-9B-MFP4
- SGLang
How to use FINAL-Bench/Darwin-9B-MFP4 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 "FINAL-Bench/Darwin-9B-MFP4" \ --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": "FINAL-Bench/Darwin-9B-MFP4", "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 "FINAL-Bench/Darwin-9B-MFP4" \ --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": "FINAL-Bench/Darwin-9B-MFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use FINAL-Bench/Darwin-9B-MFP4 with Docker Model Runner:
docker model run hf.co/FINAL-Bench/Darwin-9B-MFP4
Enhance card: MFP4 technique, Darwin platform integration, hardware rationale
Browse files7 unmodified lines891011121314151617181920212223242526272829303132333435363738394041424344454647484950515217 unmodified lines707172737475767778798081828384858687888990917 unmodified linespipeline_tag: text-generationtags:- darwin- nvfp4- quantizationlibrary_name: transformers---# Darwin-9B-MFP4NVFP4 mixed-precision quantization of [Darwin-9B-Opus](https://huggingface.co/FINAL-Bench/Darwin-9B-Opus).## Model Lineage```Qwen3.5 (Alibaba Qwen team)│▼Darwin-9B-Opus (FINAL-Bench)│ evolutionary merge of Qwen3.5 family│ Architecture: Qwen3_5ForConditionalGeneration (hybrid attention)│▼Darwin-9B-MFP4 ← this modelNVFP4 quantization (NVIDIA ModelOpt)```## Specs| | ||---|---|| Base model | [FINAL-Bench/Darwin-9B-Opus](https://huggingface.co/FINAL-Bench/Darwin-9B-Opus) || Quantization | NVFP4 (NVIDIA Blackwell native FP4 format) || Disk size | ≈ 11 GB (base model: 19 GB) || Architecture | Qwen3.5 hybrid (full + linear attention) || Quantization tool | [NVIDIA ModelOpt](https://github.com/NVIDIA/TensorRT-Model-Optimizer) |## Usage### vLLM```bashvllm serve FINAL-Bench/Darwin-9B-MFP4 \--quantization modelopt_fp4 \--trust-remote-code \17 unmodified lines)```## Hardware| GPU | Status ||---|---|| Blackwell (B200, RTX 5090) | ✅ Native NVFP4 || Hopper (H100/H200) | ✅ FLASHINFER_CUTLASS path || Older Ampere/Volta | ❌ Not supported |Minimum VRAM for inference: ~13 GB.## Credits- Base model: [FINAL-Bench/Darwin-9B-Opus](https://huggingface.co/FINAL-Bench/Darwin-9B-Opus)- Architecture: Qwen3.5 (Alibaba Qwen team)- Quantization framework: NVIDIA ModelOpt + vLLM## LicenseApache 2.0 (inherited from base model).7 unmodified lines8910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811917 unmodified lines1371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801817 unmodified linespipeline_tag: text-generationtags:- darwin- mfp4- mixed-precision- nvfp4- quantization- blackwell- reasoninglibrary_name: transformers---# Darwin-9B-MFP4**Mixed-Precision FP4** quantization of [Darwin-9B-Opus](https://huggingface.co/FINAL-Bench/Darwin-9B-Opus), built on NVIDIA Blackwell-native NVFP4.The first member of the **Darwin Mixed-Precision** family — quantization that respects what each layer actually does, instead of compressing everything uniformly.---## 🧬 Model Lineage```Qwen3.5 (Alibaba Qwen team — hybrid attention architecture)│▼Darwin-9B-Opus (FINAL-Bench)│ evolutionary merge across the Qwen3.5 family│ Architecture: Qwen3_5ForConditionalGeneration│▼Darwin-9B-MFP4 ← this modelMixed-Precision FP4 via NVIDIA ModelOptTargets MLP layers only; preserves attention pathways```---## 💡 What is MFP4?**MFP4 (Mixed FP4)** is a precision-allocation strategy, not a single bit-width. Different functional regions of the network get different precisions, chosen to match their role:| Region | Precision | Why ||---|---|---|| **MLP / FFN layers** | NVFP4 (4-bit) | Per-token compute — tolerant to controlled noise || **Self-attention (Q/K/V/O)** | BF16 | Long-range coordination — sensitive to rounding || **Linear-attention blocks** | BF16 | Stateful recurrent paths — must remain stable || **LM head / Embeddings** | BF16 | Direct I/O surface — no degradation acceptable || **LayerNorms / scales** | BF16 | Tiny, but critical scale factors |The bulk of parameters (the MLPs) move to FP4, while the small but architecturally critical attention/coordination paths stay full-precision.---## 🎯 Why mixed precision mattersUniform quantization treats every weight the same. In practice, transformer layers have very different roles:- **MLPs** are local, parallel, and compute-heavy — they account for the majority of the parameter count and tolerate compression noise gracefully because each forward pass averages over many independent activations.- **Attention** is the model's coordination substrate. Even small perturbations there propagate across long contexts, fragmenting reasoning chains and causing decoding pathologies (looping, repetition, premature termination).A **uniform 4-bit** quantization compresses all of these the same way and pays an attention-quality cost it didn't need to pay. **MFP4** isolates the cost to the layers that can absorb it.This aligns with the Darwin philosophy: *let the architecture's structure dictate the optimization*, rather than imposing a single recipe everywhere.---## 🚀 Why NVFP4 (and not just FP4)?NVFP4 is NVIDIA's microblock 4-bit floating-point format with FP8-scaled groups of 16 elements.- **Native hardware acceleration on Blackwell** (B200, RTX 5090): NVFP4 GEMMs run on dedicated tensor cores at 2nd-generation FP4 throughput, with no software emulation in the hot path.- **Higher numerical accuracy than INT4** at the same bit-width, thanks to the floating-point representation and per-block FP8 scales.- **First-class support** in vLLM (`--quantization modelopt_fp4`), TensorRT-LLM, and the broader NVIDIA inference stack.Combined with MFP4's selective application, the result is FP4-class memory savings on the bulk of the model with BF16-quality attention behavior — and on Blackwell, FP4-class throughput on the dominant cost center (MLP GEMMs).---## 📦 Specs| | ||---|---|| Base model | [FINAL-Bench/Darwin-9B-Opus](https://huggingface.co/FINAL-Bench/Darwin-9B-Opus) || Quantization scheme | MFP4 (MLP → NVFP4, attention → BF16) || Disk size | ≈ 11 GB *(base BF16: 19 GB)* || Architecture | Qwen3.5 hybrid (full + linear attention) || Quantization tool | [NVIDIA ModelOpt](https://github.com/NVIDIA/TensorRT-Model-Optimizer) || Inference runtime | vLLM ≥ 0.19 with `modelopt_fp4` backend |---## ⚙️ Where MFP4 fits in the Darwin platformThe Darwin platform produces base models through evolutionary merging of open-source families. MFP4 is the **first deployment-ready quantization** in that lineage — designed so that the structural decisions made during evolution (which attention type lives where, which MLP carries which capability) are preserved when the model is compressed for serving.In other words: Darwin's value isn't only in *how the weights got there* — it's also in *making sure those weights still work when you halve the memory footprint*. MFP4 is the bridge between research-grade BF16 checkpoints and Blackwell-grade serving infrastructure.Future Darwin releases will share this serving stack: same NVFP4 format, same MLP-only allocation policy, same vLLM path.---## 🚀 Usage### vLLM (recommended)```bashpip install "vllm>=0.19" nvidia-modeloptvllm serve FINAL-Bench/Darwin-9B-MFP4 \--quantization modelopt_fp4 \--trust-remote-code \17 unmodified lines)```---## 🖥️ Hardware| GPU family | Status ||---|---|| Blackwell (B200, RTX 5090) | ✅ Native NVFP4 tensor cores — best path || Hopper (H100/H200) | ✅ FLASHINFER_CUTLASS NVFP4 path || Ada (L40, RTX 6000 Ada) | ⚠️ Partial — depends on driver/runtime || Older Ampere/Volta | ❌ NVFP4 unavailable |**Minimum VRAM for inference**: ~13 GB. Comfortable on a single 24 GB consumer card.---## 📍 When to use this model**Good fit:**- Latency- and memory-constrained serving on Blackwell or Hopper hardware- Reasoning workloads where attention quality matters (multi-step deduction, long contexts)- Workloads currently bottlenecked by 9B-class BF16 memory footprints**Consider the BF16 base instead if:**- You need bit-exact reproducibility against research baselines- Your hardware lacks NVFP4 support- You are doing further training / fine-tuning (quantize after, not before)---## 🙏 Credits- **Base model**: [FINAL-Bench/Darwin-9B-Opus](https://huggingface.co/FINAL-Bench/Darwin-9B-Opus)- **Architecture lineage**: Qwen3.5 (Alibaba Qwen team)- **Quantization framework**: [NVIDIA ModelOpt](https://github.com/NVIDIA/TensorRT-Model-Optimizer)- **Inference runtime**: [vLLM](https://github.com/vllm-project/vllm)- **Hardware target**: NVIDIA Blackwell NVFP4---## 📜 LicenseApache 2.0 (inherited from base model).
README.md+112-22