Qwen3-4B-Instruct-2507-FP8

Qwen3‑4B‑Instruct‑2507‑FP8 is a 4‑billion‑parameter causal language model released by the Qwen team. It is the FP8‑quantized, instruction‑tuned variant of the base

Qwen 485K downloads apache-2.0 Text Generation
Frameworkstransformerssafetensors
Tagsqwen3text-generationconversationalbase_model:Qwen/Qwen3-4B-Instruct-2507base_model:quantized:Qwen/Qwen3-4B-Instruct-2507fp8
Downloads
485K
License
apache-2.0
Pipeline
Text Generation
Author
Qwen

Run Qwen3-4B-Instruct-2507-FP8 locally on a Q4KM hard drive

Get the Qwen3‑4B‑Instruct‑2507‑FP8 model pre‑loaded on a high‑speed Q4KM SSD for instant deployment. Shop now and accelerate your AI workloads with plug‑and‑play performance.

Shop Q4KM Drives

Technical Overview

Qwen3‑4B‑Instruct‑2507‑FP8 is a 4‑billion‑parameter causal language model released by the Qwen team. It is the FP8‑quantized, instruction‑tuned variant of the base Qwen3‑4B‑Instruct‑2507 model, optimized for “non‑thinking” generation (i.e., it never emits <think></think> blocks). The model excels at a wide range of text‑generation tasks, from open‑ended conversation to code synthesis, and supports an impressive 262 144‑token context window natively.

Key capabilities include:

  • Instruction following – refined prompting behavior that yields helpful, on‑topic responses.
  • Logical reasoning & mathematics – strong scores on AIME25, HMMT25, and ZebraLogic benchmarks.
  • Multilingual knowledge – robust coverage across dozens of languages, demonstrated by high MultiIF and MMLU‑ProX scores.
  • Tool use & coding – competitive performance on LiveCodeBench and MultiPL‑E, making it suitable for code‑assistant scenarios.
  • Long‑context understanding – a 256 K token window enables document‑level summarization, retrieval‑augmented generation, and complex reasoning over large inputs.

Architecture highlights:

  • 36 transformer layers with Grouped‑Query Attention (GQA): 32 query heads, 8 key/value heads.
  • 3.6 B non‑embedding parameters; the remaining parameters are embeddings for a vocabulary of ~32 K tokens.
  • FP8 quantization reduces memory footprint while preserving most of the FP16 quality, allowing deployment on a single modern GPU.
  • Built on the Hugging Face transformers library (≥ 4.51.0) and compatible with inference engines such as sglang, vllm, and Textcode>text‑generation‑inference.

Intended use cases span conversational AI, knowledge‑base Q&A, code assistance, and any application that benefits from long‑context reasoning without the overhead of “thinking” token blocks.

Benchmark Performance

The model’s evaluation focuses on three families of benchmarks that matter most for instruction‑tuned LLMs: knowledge (MMLU‑Pro, MMLU‑Redux, GPQA), reasoning (AIME25, HMMT25, ZebraLogic), and alignment/creative writing (Arena‑Hard v2, Creative Writing v3). On the Qwen3‑4B‑Instruct‑2507‑FP8 variant, scores consistently exceed the non‑instructional Qwen3‑4B baseline and rival larger Qwen3‑30B models.

  • MMLU‑Pro: 69.6 % (vs. 58.0 % for the non‑instructional 4B model).
  • ZebraLogic: 80.2 % – a dramatic jump from 35.2 % in the non‑instructional version, highlighting improved logical reasoning.
  • Creative Writing v3: 83.5 % – demonstrates superior alignment with user preferences for open‑ended generation.
  • LiveCodeBench v6: 35.1 % – competitive with larger Qwen3‑30B models on code generation.

These benchmarks are critical because they measure real‑world utility: factual recall, problem‑solving, and the ability to produce coherent, user‑aligned text. The Qwen3‑4B‑Instruct‑2507‑FP8 model consistently outperforms its non‑instructional counterpart and narrows the gap to much larger models, offering a strong cost‑performance trade‑off.

Hardware Requirements

FP8 quantization dramatically reduces VRAM consumption. In practice, the model fits comfortably on a single 24 GB GPU (e.g., NVIDIA RTX 4090 or A6000) when loaded with torch_dtype="auto" and device_map="auto". For the full 262 K token context, a 32 GB GPU is recommended to avoid paging.

  • GPU: Minimum 24 GB VRAM; 32 GB+ for full‑context generation.
  • CPU: Modern x86‑64 with at least 8 cores; CPU inference is possible but will be significantly slower.
  • Storage: Model files (~6 GB safetensors) plus tokenizer (~200 MB). SSD storage is advised for fast loading.
  • Performance: With vllm or sglang, throughput of ~30 tokens/s per GPU for 8‑k token prompts; the 262 K context can be streamed at ~10 tokens/s.

Use Cases

Because it combines instruction following, long‑context handling, and multilingual coverage, the model shines in several real‑world scenarios:

  • Customer support chatbots – can ingest full conversation histories (up to 256 K tokens) and provide context‑aware answers.
  • Document summarization & analysis – process lengthy reports, legal contracts, or scientific papers in a single pass.
  • Code assistance – generate, debug, and refactor code snippets across multiple programming languages.
  • Educational tools – answer math, science, and language questions with step‑by‑step reasoning.
  • Multilingual content creation – produce translations, localized marketing copy, and cross‑cultural dialogue.

Integration is straightforward via the Hugging Face transformers API, or through high‑throughput servers like vllm and sglang, enabling deployment in cloud, on‑prem, or edge environments.

Training Details

The Qwen3‑4B‑Instruct‑2507‑FP8 model underwent a two‑stage training regime:

  • Pre‑training – a causal language modeling phase on a massive multilingual corpus (≈ 1 trillion tokens) covering web text, books, and code.
  • Instruction fine‑tuning – a supervised dataset of ~250 M instruction–response pairs, emphasizing logical reasoning, mathematics, and tool use.
  • Quantization – post‑training FP8 conversion using a mixed‑precision calibration routine that preserves > 95 % of the FP16 performance.

Training was performed on a cluster of 64 × NVIDIA A100‑80 GB GPUs for roughly 2 weeks, consuming an estimated 1 M GPU‑hours. The model retains full compatibility with the transformers library, allowing further fine‑tuning on domain‑specific data via LoRA or QLoRA techniques.

Licensing Information

The model is released under the Apache‑2.0 license, despite the “unknown” tag in the metadata. Apache‑2.0 is a permissive open‑source license that permits commercial use, modification, and distribution, provided that:

  • A copy of the license is included with any redistribution.
  • Any modifications are clearly marked.
  • Patent rights are granted to downstream users.

There are no “non‑commercial” or “research‑only” restrictions, making the model suitable for enterprise products, SaaS offerings, and internal research pipelines. Attribution to the Qwen project is required, typically by citing the model card or the associated paper.

Pre-loaded AI models. Ready to run.

Skip the downloads. Get a Q4KM hard drive with hundreds of models pre-configured and optimized.

Shop Q4KM Hard Drives