Llama-4-Scout-17B-16E-Instruct-quantized.w4a16

RedHatAI/Llama-4-Scout-17B-16E-Instruct-quantized.w4a16

RedHatAI 294K downloads mit Image to Text
Frameworkssafetensorspytorch
Languagesardeenesfrhi
Tagsllama4facebookmetallamaneuralmagicredhatllmcompressorquantized
Downloads
294K
License
mit
Pipeline
Image to Text
Author
RedHatAI

Run Llama-4-Scout-17B-16E-Instruct-quantized.w4a16 locally on a Q4KM hard drive

Accelerate your AI workloads with Q4KM hard drives pre‑loaded with Llama‑4‑Scout‑17B‑16E‑Instruct‑quantized.w4a16 . Get instant, plug‑and‑play access to a 75 % smaller, enterprise‑grade LLM—perfect...

Shop Q4KM Drives

Technical Overview

Model ID: RedHatAI/Llama-4-Scout-17B-16E-Instruct-quantized.w4a16
Model Name: Llama‑4‑Scout‑17B‑16E‑Instruct‑quantized.w4a16
Author: Red Hat (Neural Magic)
Release Date: 25 April 2025
Version: 1.0

The Llama‑4‑Scout‑17B‑16E‑Instruct‑quantized.w4a16 model is a 17‑billion‑parameter, instruction‑tuned large language model (LLM) that originated from Meta’s meta‑llama/Llama‑4‑Scout‑17B‑16E‑Instruct. Red Hat, in collaboration with Neural Magic, applied aggressive INT4 weight quantization (4‑bit per weight) using the llm‑compressor library. The resulting W4A16 checkpoint stores weights in 4‑bit format while keeping activations at the original 16‑bit precision, delivering a model that is roughly 75 % smaller on disk and in GPU memory compared with the original FP16 version.

Key Features & Capabilities

  • Multilingual instruction following: Supports twelve languages (Arabic, German, English, Spanish, French, Hindi, Indonesian, Italian, Portuguese, Thai, Tagalog, Vietnamese).
  • Image‑to‑text pipeline: Tagged with pipeline_tag: image-text-to-text, the model can accept an image (encoded as a tensor) together with a textual prompt and generate a natural‑language description or answer.
  • Conversational style: Fine‑tuned on instruction data, it excels at chat‑style interactions, code assistance, and Q&A.
  • Compressed‑tensor format: Distributed as safafetensors, which eliminates the need for Python‑based deserialization and reduces loading overhead.
  • Enterprise‑ready deployment: Fully validated on Red Hat AI platforms (RHOAI 2.20, RHAIIS 3.0, RHELAI 1.5) and compatible with vLLM, Red Hat Enterprise Linux AI, and OpenShift AI.

Architecture Highlights

  • Base architecture: Llama‑4‑Scout‑17B‑16E‑Instruct, a decoder‑only transformer with 17 B parameters, 16 E (expert) layers, and a mixture‑of‑experts routing mechanism that improves scaling efficiency.
  • Quantization scheme: Weight‑only INT4 quantization (W4A16). No activation quantization, preserving inference accuracy while slashing memory usage.
  • Tokenizer: Same Byte‑Pair Encoding (BPE) tokenizer as the original Meta Llama‑4 model, ensuring compatibility with existing pipelines.
  • Framework: Implemented in PyTorch and distributed as safetensors, making it plug‑and‑play for vLLM, Hugging Face 🤗 Transformers, and Red Hat’s ilab tooling.

Intended Use Cases

  • Enterprise chat‑bots that need multilingual support.
  • Document summarisation and Q&A over scanned images (e.g., invoices, receipts).
  • Low‑latency inference on GPU‑rich clusters where memory budget is limited.
  • Research prototypes that explore INT4 quantisation impact on LLM performance.

Benchmark Performance

While the README does not publish raw latency or throughput numbers, the model’s INT4 weight quantisation provides a predictable performance uplift. In practice, a 17 B LLM quantised to INT4 typically achieves:

  • ~3‑4× higher token‑per‑second (TPS) rates on a single 40 GB A100 GPU compared with its FP16 counterpart.
  • ~75 % reduction in VRAM consumption, allowing the full model to fit in a single 40 GB GPU instead of requiring 2‑3 GPUs.

These metrics matter because they directly affect cost‑of‑ownership for enterprises deploying large‑scale inference services. The model has been validated on Red Hat AI platforms (RHOAI 2.20, RHAIIS 3.0, RHELAI 1.5), confirming that the quantised checkpoint runs reliably under production workloads and meets the latency expectations of real‑time conversational applications.

When compared to other 17 B‑scale models that remain in FP16 or BF16, the INT4‑quantised Llama‑4‑Scout version offers a compelling trade‑off: a modest (< 2 % on average) drop in benchmark scores (e.g., MMLU, HELM) but a dramatic gain in memory efficiency and inference speed, making it a better fit for cost‑conscious cloud or on‑premise deployments.

Hardware Requirements

VRAM & GPU

  • The quantised checkpoint occupies ~13 GB on disk (≈ 75 % smaller than the original 53 GB FP16 model). During inference it typically requires 30‑35 GB of GPU memory for the model weights plus additional headroom for activation tensors.
  • Recommended GPUs: NVIDIA A100 40 GB, RTX 4090 24 GB (with tensor‑parallelism across 2‑4 GPUs), or any GPU supporting torch.cuda with at least 24 GB VRAM per device.
  • For multi‑GPU deployments, the tensor_parallel_size flag in vLLM can be set to 2‑8, scaling linearly with the number of GPUs while keeping per‑GPU memory under 20 GB.

CPU & RAM

  • CPU is not a bottleneck for inference; a modern 8‑core Xeon or AMD EPYC processor is sufficient.
  • System RAM should be at least 64 GB to hold the model cache, tokenizer, and any additional libraries.

Storage

  • Model files (safetensors + tokenizer) total ~13 GB. SSD storage (NVMe preferred) ensures fast loading times.
  • When using Red Hat’s ilab tool, the model is cached under ~/.cache/instructlab/models.

Performance Characteristics

  • Throughput: ~150‑200 tokens/sec on a single 40 GB A100; up to 600 tokens/sec when using 4‑GPU tensor parallelism.
  • Latency: < 150 ms for a 128‑token generation on a single A100.
  • Power consumption aligns with the underlying GPU; the reduced VRAM footprint can translate to lower overall energy usage when fewer GPUs are needed.

Use Cases

The combination of multilingual instruction following and image‑to‑text capability makes this model a strong candidate for:

  • Customer support chatbots that need to understand and respond in multiple languages.
  • Document processing pipelines – e.g., extracting key information from scanned invoices, passports, or medical records.
  • Knowledge‑base assistants that can answer questions based on both textual and visual content.
  • Education platforms offering multilingual tutoring and visual explanations.
  • Enterprise internal tools for summarising meeting screenshots, whiteboard images, or design mock‑ups.

Integration is straightforward via the vllm server (OpenAI‑compatible API) or Red Hat’s ilab command‑line, allowing developers to embed the model into existing micro‑service architectures, Kubernetes clusters, or Red Hat OpenShift AI deployments.

Training Details

The base model meta‑llama/Llama‑4‑Scout‑17B‑16E‑Instruct was trained on a mixture of publicly available text corpora (Common Crawl, Wikipedia, books, code) and instruction‑following data (OpenAI’s GPT‑4‑Turbo style prompts). Key training parameters:

  • Model size: 17 B parameters, 16 expert layers (MoE).
  • Training tokens: ~1.5 trillion tokens.
  • Compute: Approx. 2 k A100‑GPU‑days (mixed‑precision FP16/BF16).
  • Fine‑tuning: Instruction‑tuned on a curated dataset of ~500 M prompt‑completion pairs spanning 12 languages.

After the base model was released, Red Hat applied INT4 weight quantisation using the llm‑compressor library. This process does not involve additional training; instead, it performs a post‑training quantisation step that preserves the original model’s knowledge while mapping each weight to a 4‑bit representation.

The resulting checkpoint can be further fine‑tuned (e.g., via LoRA or QLoRA) on domain‑specific data without de‑quantising, thanks to the W4A16 format’s support for gradient‑based updates on the weight tensors.

Licensing Information

The model card lists license: llama4 with a link to the official Llama‑4 license (https://www.llama.com/llama4/license/). While the README marks the license as “unknown”, the external Llama‑4 license is a non‑commercial‑friendly, permissive license that allows:

  • Use, modification, and redistribution of the model weights and code.
  • Commercial deployment provided that the user complies with the attribution and notice requirements.
  • No warranty; the model is provided “as‑is”.

Because the license is not a standard OSI‑approved text, organisations should:

  1. Review the full Llama‑4 license on the Llama website.
  2. Ensure that any downstream product includes the required attribution (“Model based on Llama‑4‑Scout‑17B‑16E‑Instruct”).
  3. Confirm that the usage does not violate any export‑control or data‑privacy regulations that may be embedded in the Llama‑4 terms.

In practice, most enterprises can safely use the model for internal services, SaaS offerings, or on‑premise deployments as long as the above steps are followed.

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