How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="vistralis/Qwen3-8B-INT8")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("vistralis/Qwen3-8B-INT8")
model = AutoModelForCausalLM.from_pretrained("vistralis/Qwen3-8B-INT8")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.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=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Qwen3-8B-INT8

INT8 (W8A8) quantized version of Qwen/Qwen3-8B, created using llm-compressor with calibrated quantization.

Overview

Property Value
Base Model Qwen/Qwen3-8B
Parameters 8.19B
Quantization INT8 (W8A8)
Format compressed-tensors
Tool llm-compressor
Disk Size ~9.4 GB (2 shards)

Intended Use

Quantized text encoder for Flux 2 Klein 9B image generation pipelines. Architecturally identical to the Klein 9B text encoder.

Quantization Details

  • Scheme: W8A8 — 8-bit integer weights and activations
  • Targets: All Linear layers (excluding lm_head)
  • Calibration: 256 samples from C4, sequential pipeline with CPU offloading

Hardware Requirements

  • Minimum: Any CUDA GPU with INT8 tensor core support
  • Fallback: Dequantizes to BF16 on unsupported hardware
Downloads last month
5
Safetensors
Model size
8B params
Tensor type
BF16
·
I8
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for vistralis/Qwen3-8B-INT8

Finetuned
Qwen/Qwen3-8B
Quantized
(288)
this model