1default_stage:
2 default_modifiers:
3 QuantizationModifier:
4 targets: [Linear]
5 ignore: [lm_head]
6 scheme: FP8_DYNAMIC
The easiest way to run this model. No setup required - just Docker with NVIDIA runtime.
1# Download docker-compose.yml
2wget https://huggingface.co/Doradus/RnJ-1-Instruct-FP8/raw/main/docker/docker-compose.yml
3
4# Run on single GPU (12GB+ recommended)
5docker compose up
6
7# Or specify GPU
8GPU_ID=0 docker compose up
1# Single GPU (12GB+ VRAM recommended)
2docker run --gpus '"device=0"' -p 8000:8000 \
3 -v hf_cache:/root/.cache/huggingface \
4 --shm-size=4g \
5 vllm/vllm-openai:v0.12.0 \
6 --model Doradus/RnJ-1-Instruct-FP8 \
7 --tensor-parallel-size 1 \
8 --max-model-len 8192 \
9 --gpu-memory-utilization 0.90 \
10 --trust-remote-code
1curl http://localhost:8000/v1/chat/completions \
2 -H "Content-Type: application/json" \
3 -d '{
4 "model": "Doradus/RnJ-1-Instruct-FP8",
5 "messages": [{"role": "user", "content": "Hello!"}],
6 "max_tokens": 100
7 }'
1python -m vllm.entrypoints.openai.api_server \
2 --model Doradus/RnJ-1-Instruct-FP8 \
3 --tensor-parallel-size 1 \
4 --max-model-len 8192 \
5 --trust-remote-code
1python -m sglang.launch_server \
2 --model-path Doradus/RnJ-1-Instruct-FP8 \
3 --host 0.0.0.0 \
4 --port 8000 \
5 --tp 1
1import openai
2
3client = openai.OpenAI(base_url="http://localhost:8000/v1", api_key="dummy")
4
5response = client.chat.completions.create(
6 model="rnj-1-instruct-fp8",
7 messages=[{"role": "user", "content": "Explain quantum computing in simple terms."}],
8 max_tokens=500
9)
10
11print(response.choices[0].message.content)
1#!/usr/bin/env python3
2"""
3Quantize RnJ-1-Instruct to FP8 using llmcompressor (Neural Magic)
4Dynamic quantization - no calibration data needed, fast conversion
5Output is vLLM-compatible FP8
6"""
7
8from llmcompressor import oneshot
9from llmcompressor.modifiers.quantization import QuantizationModifier
10import torch
11
12MODEL_PATH = "DoradusAI/RnJ-1-Instruct"
13OUTPUT_PATH = "./RnJ-1-Instruct-FP8"
14
15recipe = QuantizationModifier(
16 targets="Linear",
17 scheme="FP8_DYNAMIC",
18 ignore=["lm_head"],
19)
20
21oneshot(
22 model=MODEL_PATH,
23 output_dir=OUTPUT_PATH,
24 recipe=recipe,
25 num_calibration_samples=0,
26 save_compressed=True,
27)
This quantization is based on
DoradusAI/RnJ-1-Instruct.
RnJ-1 is DoradusAI's first instruction-tuned model based on Google's Gemma3 architecture. Key features: