Intended Use Cases:
Intended for commercial and research use. Similarly to the base model, this quantized version is intended for assistant-like chat and multilingual text generation across 100+ languages.
Out-of-scope:
Use in any manner that violates applicable laws or regulations (including trade compliance laws).
Version:
1.0
Model Developers:
RedHat (Neural Magic)
Model Optimizations
This model was obtained by quantizing activations and weights of
Qwen/Qwen3-8B
to FP8 data type.
This optimization reduces the number of bits used to represent weights and activations from 16 to 8, reducing GPU memory requirements (by approximately 50%) and increasing matrix-multiply compute throughput (by approximately 2x).
Weight quantization also reduces disk size requirements by approximately 50%.
Only weights and activations of the linear operators within transformers blocks are quantized.
Weights are quantized with a symmetric static per-channel scheme, whereas activations are quantized with a symmetric dynamic per-token scheme.
The
llm-compressor
library is used for quantization.
Deployment
This model can be deployed efficiently using the
vLLM
backend, as shown in the example below.
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
model_id = "inference-optimization/Qwen3-8B-FP8-Dynamic"
number_gpus = 1
sampling_params = SamplingParams(temperature=0.6, top_p=0.95, top_k=20, min_p=0, max_tokens=256)
tokenizer = AutoTokenizer.from_pretrained(model_id)
messages = [{"role": "user", "content": "Give me a short introduction to large language model."}]
prompts = tokenizer.apply_chat_template(messages, add_generation_prompt=True, tokenize=False)
llm = LLM(model=model_id, tensor_parallel_size=number_gpus)
outputs = llm.generate(prompts, sampling_params)
generated_text = outputs[0].outputs[0].text
print(generated_text)
Creation
Creation details
This model was created with
llm-compressor
by running the code snippet below.
from compressed_tensors.offload import dispatch_model
from transformers import AutoModelForCausalLM, AutoTokenizer
from llmcompressor import oneshot
from llmcompressor.modifiers.quantization import QuantizationModifier
MODEL_ID = "Qwen/Qwen3-8B"# Load model.
model = AutoModelForCausalLM.from_pretrained(
MODEL_ID,
low_cpu_mem_usage=True,
)
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
recipe = QuantizationModifier(
targets=["Linear"],
scheme="FP8_DYNAMIC",
ignore=["lm_head"],
)
# Apply quantization.
oneshot(model=model, recipe=recipe)
print("========== SAMPLE GENERATION ==============")
dispatch_model(model)
input_ids = tokenizer("Hello my name is", return_tensors="pt").input_ids.to(model.device)
output = model.generate(input_ids, max_new_tokens=20)
print(tokenizer.decode(output[0]))
print("==========================================")
SAVE_DIR = MODEL_ID.rstrip("/").split("/")[-1] + "-FP8-Dynamic"
model.save_pretrained(SAVE_DIR)
tokenizer.save_pretrained(SAVE_DIR)
Runs of inference-optimization Qwen3-8B-FP8-Dynamic on huggingface.co
31
Total runs
1
24-hour runs
1
3-day runs
7
7-day runs
28
30-day runs
More Information About Qwen3-8B-FP8-Dynamic huggingface.co Model
Qwen3-8B-FP8-Dynamic huggingface.co is an AI model on huggingface.co that provides Qwen3-8B-FP8-Dynamic's model effect (), which can be used instantly with this inference-optimization Qwen3-8B-FP8-Dynamic model. huggingface.co supports a free trial of the Qwen3-8B-FP8-Dynamic model, and also provides paid use of the Qwen3-8B-FP8-Dynamic. Support call Qwen3-8B-FP8-Dynamic model through api, including Node.js, Python, http.
Qwen3-8B-FP8-Dynamic huggingface.co is an online trial and call api platform, which integrates Qwen3-8B-FP8-Dynamic's modeling effects, including api services, and provides a free online trial of Qwen3-8B-FP8-Dynamic, you can try Qwen3-8B-FP8-Dynamic online for free by clicking the link below.
inference-optimization Qwen3-8B-FP8-Dynamic online free url in huggingface.co:
Qwen3-8B-FP8-Dynamic is an open source model from GitHub that offers a free installation service, and any user can find Qwen3-8B-FP8-Dynamic on GitHub to install. At the same time, huggingface.co provides the effect of Qwen3-8B-FP8-Dynamic install, users can directly use Qwen3-8B-FP8-Dynamic installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Qwen3-8B-FP8-Dynamic install url in huggingface.co: