Text Generation
Transformers
Safetensors
qwen3_5_moe_text
compressed-tensors
llm-compressor
vllm
nvfp4
conversational
8-bit precision
Instructions to use RedHatAI/Qwen3.8-2.4T-A95B-NVFP4-REAP-25 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RedHatAI/Qwen3.8-2.4T-A95B-NVFP4-REAP-25 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="RedHatAI/Qwen3.8-2.4T-A95B-NVFP4-REAP-25") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("RedHatAI/Qwen3.8-2.4T-A95B-NVFP4-REAP-25") model = AutoModelForCausalLM.from_pretrained("RedHatAI/Qwen3.8-2.4T-A95B-NVFP4-REAP-25", device_map="auto") 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use RedHatAI/Qwen3.8-2.4T-A95B-NVFP4-REAP-25 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RedHatAI/Qwen3.8-2.4T-A95B-NVFP4-REAP-25" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RedHatAI/Qwen3.8-2.4T-A95B-NVFP4-REAP-25", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/RedHatAI/Qwen3.8-2.4T-A95B-NVFP4-REAP-25
- SGLang
How to use RedHatAI/Qwen3.8-2.4T-A95B-NVFP4-REAP-25 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "RedHatAI/Qwen3.8-2.4T-A95B-NVFP4-REAP-25" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RedHatAI/Qwen3.8-2.4T-A95B-NVFP4-REAP-25", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "RedHatAI/Qwen3.8-2.4T-A95B-NVFP4-REAP-25" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RedHatAI/Qwen3.8-2.4T-A95B-NVFP4-REAP-25", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use RedHatAI/Qwen3.8-2.4T-A95B-NVFP4-REAP-25 with Docker Model Runner:
docker model run hf.co/RedHatAI/Qwen3.8-2.4T-A95B-NVFP4-REAP-25
RedHatAI/Qwen3.8-2.4T-A95B-NVFP4-REAP-25
This is a quantized version of Qwen/Qwen3.8-2.4T-A95B with MoE layers quantized to NVFP4 and 25% uniform expert sparsity. The model was calibrated using 1024 samples from perfectblend.
Usage
This model is intended for deployment with vLLM. You can serve the model using
vllm serve RedHatAI/Qwen3.8-2.4T-A95B-NVFP4-REAP-25 \
--tensor-parallel-size 8 \
--enable-expert-parallel 8 \
--reasoning-parser qwen3
Evaluation
inspect eval hf/Idavidrein/gpqa/diamond \
--model vllm/RedHatAI/Qwen3.8-2.4T-A95B-NVFP4-REAP-25 \
--reasoning-effort xhigh \
--model-base-url http://localhost:8000/v1 \
-M client_timeout=2400 \
--token-limit 100000 \
--retry-on-error=2
from inspect_ai import eval
from inspect_ai.model import set_model_info, ModelInfo
set_model_info(
"vllm/qwen_model", # model names with `-A` are badly sanitized through docker jobs
ModelInfo(
context_length=262144,
reasoning=True,
),
)
eval(
"inspect_harbor/datacurve_deep_swe",
model="vllm/qwen_model",
reasoning_effort="xhigh",
model_base_url="http://localhost:8000/v1",
max_connections=8,
retry_on_error=2,
)
| Benchmark | Qwen/Qwen3.8-2.4T-A95B |
RedHatAI/Qwen3.8-2.4T-A95B-NVFP4-REAP-50 |
RedHatAI/Qwen3.8-2.4T-A95B-NVFP4-REAP-25 |
RedHatAI/Qwen3.8-2.4T-A95B-NVFP4 |
|---|---|---|---|---|
| GPQA Diamond | 92.6 | 90.7 | 91.5 | 92.9 |
| DeepSWE 1.1 | 56.6 | - | 56.6 | 56.6 |
- Downloads last month
- 845
Model tree for RedHatAI/Qwen3.8-2.4T-A95B-NVFP4-REAP-25
Base model
Qwen/Qwen3.8-2.4T-A95B