This is an
MXFP4 (Microscaling FP4)
quantized version of
meta-llama/Llama-3.1-8B-Instruct
using the compressed-tensors quantization method.
Base Model
: meta-llama/Llama-3.1-8B-Instruct
Quantization Method
: compressed-tensors
Quantization Type
: MXFP4 W4A4 (4-bit Weight and Activation)
Format
: mxfp4-pack-quantized (MX Microscaling FP4)
Model Size
: ~5.5GB (compared to ~16GB for BF16)
Compression Ratio
: ~2.9x
Quantization Configuration
This model uses
MXFP4 (Microscaling FP4) quantization
with block-scaled quantization (group size 32) for both weights and activations. MXFP4 uses E8M0 (8-bit exponent-only) block scales shared across groups of 32 elements, following the
OCP MX specification
.
Weights
Precision
: FP4 E2M1 (4-bit floating point)
Scale Format
: E8M0 (uint8 exponent)
Strategy
: Group (block-scaled)
Group Size
: 32
Symmetric
: Yes
Dynamic
: No (static quantization with calibration)
Activations
Precision
: FP4 E2M1 (4-bit floating point)
Scale Format
: E8M0 (uint8 exponent)
Strategy
: Group (block-scaled)
Group Size
: 32
Symmetric
: Yes
Dynamic
: Yes (dynamic quantization at inference time)
Other Details
KV Cache
: Not quantized (remains in BF16)
Ignored Layers
: lm_head
Target Layers
: All Linear layers
Calibration
: 512 samples from CNN/DailyMail, max_seq_length=2048
Hardware Requirements
MXFP4 inference requires
NVIDIA Blackwell (SM120+)
GPUs with CUDA 12.8+ for native CUTLASS MXFP4 GEMM support.
Usage with vLLM
from vllm import LLM, SamplingParams
model_id = "JongYeop/Llama-3.1-8B-Instruct-MXFP4-W4A4"
llm = LLM(model=model_id, max_model_len=4096, enforce_eager=True)
outputs = llm.generate(
["The capital of France is"],
SamplingParams(max_tokens=64, temperature=0)
)
for output in outputs:
print(output.outputs[0].text)
Llama-3.1-8B-Instruct-MXFP4-W4A4 huggingface.co is an AI model on huggingface.co that provides Llama-3.1-8B-Instruct-MXFP4-W4A4's model effect (), which can be used instantly with this JongYeop Llama-3.1-8B-Instruct-MXFP4-W4A4 model. huggingface.co supports a free trial of the Llama-3.1-8B-Instruct-MXFP4-W4A4 model, and also provides paid use of the Llama-3.1-8B-Instruct-MXFP4-W4A4. Support call Llama-3.1-8B-Instruct-MXFP4-W4A4 model through api, including Node.js, Python, http.
Llama-3.1-8B-Instruct-MXFP4-W4A4 huggingface.co is an online trial and call api platform, which integrates Llama-3.1-8B-Instruct-MXFP4-W4A4's modeling effects, including api services, and provides a free online trial of Llama-3.1-8B-Instruct-MXFP4-W4A4, you can try Llama-3.1-8B-Instruct-MXFP4-W4A4 online for free by clicking the link below.
JongYeop Llama-3.1-8B-Instruct-MXFP4-W4A4 online free url in huggingface.co:
Llama-3.1-8B-Instruct-MXFP4-W4A4 is an open source model from GitHub that offers a free installation service, and any user can find Llama-3.1-8B-Instruct-MXFP4-W4A4 on GitHub to install. At the same time, huggingface.co provides the effect of Llama-3.1-8B-Instruct-MXFP4-W4A4 install, users can directly use Llama-3.1-8B-Instruct-MXFP4-W4A4 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Llama-3.1-8B-Instruct-MXFP4-W4A4 install url in huggingface.co: