Skip to page content
SAVRN
Search Plan a project

Open-weight model · Image and text to text

Qwen3.5-9B-RL-IF-MATH-LOGIC

by Wangfei wflying/Qwen3.5-9B-RL-IF-MATH-LOGIC

Qwen3.5-9B-RL-IF-MATH-LOGIC is an open-weight model for image and text to text from Wangfei, released under Apache License 2.0. It has 9.7B parameters and a 262,144-token context. At 16-bit it needs about 23.2 GB of GPU memory, which fits on 1x MI300X from $1.85 an hour, at the lowest prices in the SAVRN Index.

Qwen3.5-9B-RL-IF-MATH-LOGIC is a post-trained model built on Qwen3.5-9B. It was developed through supervised fine-tuning (SFT) on task-relevant non-thinking data, followed by two sequential stages of reinforcement learning with verifiable rewards (RLVR) using…

Parameters9.7B
Context262,144
Weights19.3 GB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads—

Runs On

What it takes to serve Qwen3.5-9B-RL-IF-MATH-LOGIC (9.7B parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 19.3 GB 23.2 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 9.7 GB 11.6 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 4.8 GB 5.8 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Oct 18, 2026.

Qwen3.5-9B-RL-IF-MATH-LOGIC on every accelerator the SAVRN Index prices, at every precision

Model Card

By Wangfei, published under apache-2.0, revision 2f4c3c4898df.

Qwen3.5-9B-RL-IF-MATH-LOGIC is a post-trained model built on Qwen3.5-9B. It was developed through supervised fine-tuning (SFT) on task-relevant non-thinking data, followed by two sequential stages of reinforcement learning with verifiable rewards (RLVR) using NGRPO: Negative-enhanced Group Relative Policy Optimization. The first RLVR stage focuses on mathematical reasoning with wflying/math-rlvr-15k. The second stage continues from that checkpoint on wflying/rl-if-math-logic-46k, a mixture of instruction following, mathematics, and logical/table reasoning. The released model is the output of the second RLVR stage. Under the reported non-thinking evaluation setup, the model achieves a mean…

Read Wangfei's full model card

Qwen3.5-9B-RL-IF-MATH-LOGIC is a post-trained model built on Qwen3.5-9B. It was developed through supervised fine-tuning (SFT) on task-relevant non-thinking data, followed by two sequential stages of reinforcement learning with verifiable rewards (RLVR) using NGRPO: Negative-enhanced Group Relative Policy Optimization.

The first RLVR stage focuses on mathematical reasoning with wflying/math-rlvr-15k. The second stage continues from that checkpoint on wflying/rl-if-math-logic-46k, a mixture of instruction following, mathematics, and logical/table reasoning. The released model is the output of the second RLVR stage.

Under the reported non-thinking evaluation setup, the model achieves a mean score of 82.45 across eight benchmarks, compared with 64.92 for Qwen3.5-9B and 68.96 for Qwen3.5-35B-A3B.

Model details

  • Base model: Qwen3.5-9B
  • Training method: SFT followed by two stages of NGRPO-based RLVR
  • SFT data: Task-relevant non-thinking examples
  • RLVR stage 1 dataset: wflying/math-rlvr-15k
  • RLVR stage 2 dataset: wflying/rl-if-math-logic-46k
  • Primary tasks: Instruction following, mathematical reasoning, and logical reasoning
  • Architecture: Qwen3.5 dense multimodal conditional-generation model (Qwen3_5ForConditionalGeneration)
  • Evaluation mode: Non-thinking (enable_thinking=False)

Training procedure

Stage Starting checkpoint Data Method
1. Supervised fine-tuning Qwen3.5-9B Task-relevant non-thinking data SFT
2. Mathematics RLVR SFT checkpoint math-rlvr-15k, containing 15,000 mathematical reasoning examples NGRPO
3. Mixed-task RLVR Mathematics RLVR checkpoint rl-if-math-logic-46k, containing 45,980 instruction-following, mathematics, and logical/table reasoning examples NGRPO

Both RLVR stages use NGRPO. The algorithm introduces advantage calibration to obtain learning signals from uniformly incorrect response groups and asymmetric clipping to control policy updates. See the NGRPO paper for the algorithm and its original experiments.

The stages are applied sequentially: the mixed-task stage starts from the mathematics RLVR checkpoint, and the final checkpoint is released as Qwen3.5-9B-RL-IF-MATH-LOGIC.

Evaluation results

Evaluation was conducted with EvalScope on instruction-following, mathematics, logical-reasoning, and knowledge/reasoning benchmarks, using:

  • Temperature: 0.6
  • Top-p: 0.95
  • Thinking mode: Disabled (enable_thinking=False)

The table reproduces the release author's reported comparison results. Mean is the unweighted arithmetic mean of the eight displayed benchmark scores, rounded to two decimal places.

Model Mean IFEval IFBench AIME24 AIME25 HMMT25 ZebralogicBench GPQA-diamond MMLU-redux
Qwen3.5-35B-A3B 68.96 86.1 37.3 63.5 55.6 47.1 86.4 82.8 92.9
Qwen3.5-9B 64.92 84.29 33.58 70.83 51.66 39.37 71.5 78.54 89.6
Qwen3.5-9B-RL-IF-MATH-LOGIC 82.45 91.73 59.33 90.21 85 73.54 93.3 76.52 89.95

Relative to Qwen3.5-9B under this evaluation setup, the released model improves the mean score by 17.53 points. It gains 7.44 points on IFEval, 25.75 on IFBench, 19.38 on AIME24, 33.34 on AIME25, 34.17 on HMMT25, and 21.80 on ZebralogicBench. MMLU-redux increases by 0.35 points, while GPQA-diamond decreases by 2.02 points.

Its mean score is also 13.49 points above the Qwen3.5-35B-A3B baseline in this comparison. These comparisons apply to the reported benchmarks and decoding setup; they do not establish superiority across all tasks or inference settings.

Usage

Load the model directly from Hugging Face using a recent version of transformers with Qwen3.5 support:

pip install -U transformers accelerate torch torchvision

The following example uses non-thinking mode and the reported temperature and top-p values:

import torch
from transformers import AutoProcessor, Qwen3_5ForConditionalGeneration

model_id = "wflying/Qwen3.5-9B-RL-IF-MATH-LOGIC"

model = Qwen3_5ForConditionalGeneration.from_pretrained(
    model_id,
    dtype="auto",
    device_map="auto",
)
processor = AutoProcessor.from_pretrained(model_id)
model.eval()

messages = [
    {
        "role": "user",
        "content": [
            {
                "type": "text",
                "text": "Solve the problem and put the final answer in \\boxed{}: What is the sum of the first 20 positive integers?",
            }
        ],
    }
]

inputs = processor.apply_chat_template(
    messages,
    tokenize=True,
    add_generation_prompt=True,
    enable_thinking=False,
    return_dict=True,
    return_tensors="pt",
).to(model.device)

with torch.inference_mode():
    generated_ids = model.generate(
        **inputs,
        max_new_tokens=512,
        do_sample=True,
        temperature=0.6,
        top_p=0.95,
    )

generated_ids = generated_ids[:, inputs.input_ids.shape[1]:]
print(processor.batch_decode(generated_ids, skip_special_tokens=True)[0])

max_new_tokens=512 is an example generation limit. Reproducing benchmark scores also requires the corresponding benchmark prompts, generation limits, scoring configuration, and evaluation versions.

Intended use

This model is intended for research and development involving:

  • instruction following with verifiable constraints;
  • mathematical and logical reasoning in non-thinking mode;
  • staged RLVR post-training and NGRPO experiments;
  • evaluation of mixed-task reasoning and instruction-following behavior.

Limitations

  • The model may still produce incorrect or unverifiable outputs; reference answers and reward checks can also contain errors.
  • Performance varies by benchmark. The reported improvements are accompanied by a decrease on GPQA-diamond.
  • Scores depend on prompts, benchmark versions, sampling settings, generation limits, and scoring implementations. The table reports the release author's evaluation results.
  • Only the base models and final checkpoint are included in the comparison; it does not isolate the contribution of SFT or either RLVR stage.
  • The training data and reported evaluations focus on text tasks. The results above do not characterize multimodal performance.
  • The SFT dataset identifier, full training hyperparameters, and complete evaluation run configuration are not specified in this card.

License

This repository is licensed under Apache License 2.0, consistent with the base model. Users should also review the terms and attribution requirements of the base model, training datasets, and dependent components.

Citation and references

Please cite the NGRPO paper when referring to the RL algorithm:

@misc{nan2025ngrpo,
  title={NGRPO: Negative-enhanced Group Relative Policy Optimization},
  author={Gongrui Nan and Siye Chen and Jing Huang and Mengyu Lu and Dexun Wang and Chunmei Xie and Weiqi Xiong and Xianzhou Zeng and Qixuan Zhou and Yadong Li and Xingzhong Xu},
  year={2025},
  eprint={2509.18851},
  archivePrefix={arXiv},
  primaryClass={cs.LG},
  url={https://arxiv.org/abs/2509.18851}
}

Also refer to the Qwen3.5-9B base model, math-rlvr-15k, rl-if-math-logic-46k, and EvalScope for their documentation and source attribution.

Configuration

Architecture
Qwen3_5ForConditionalGeneration
Context length (tokens)
262,144
Layers
32
Hidden size
4,096
Feed-forward size
12,288
Attention heads
16
Key/value heads
4
Head dimension
256
Vocabulary size
248,320
Model type
qwen3_5

Identity and Version

Repository
wflying/Qwen3.5-9B-RL-IF-MATH-LOGIC
Publisher
Wangfei
Task
Image and text to text
Modality
Image and text
Library
transformers
Parameters
9.7B parameters
Languages
non-thinking
Revision
2f4c3c4898df8578a87a4b0a956de40757415cf8
First published
2026-10-12
Last updated
2026-10-13

Files and Weights

16 files, 19.3 GB in total. The weights are 4 files totalling 19.3 GB in safetensors.

Weights4 files · 19.3 GB
Configuration5 files · 74.0 KB
Tokenizer4 files · 30.1 MB
Documentation1 file · 8.6 KB
Other1 file · 7.8 KB
Repository1 file · 1.6 KB
Every file
FileTypeSizeSHA-256
model-00000-of-00004.safetensorsWeights5.3 GB 1d3f07fbec96
model-00001-of-00004.safetensorsWeights5.3 GB 0368961758c0
model-00002-of-00004.safetensorsWeights5.3 GB 090a9f8b8fc6
model-00003-of-00004.safetensorsWeights3.5 GB 96513047c95c
config.jsonConfiguration2.9 KB —
configuration.jsonConfiguration51 B —
model.safetensors.index.jsonConfiguration70.4 KB —
preprocessor_config.jsonConfiguration390 B —
video_preprocessor_config.jsonConfiguration385 B —
README.mdDocumentation8.6 KB —
chat_template.jinjaOther7.8 KB —
.gitattributesRepository1.6 KB —
merges.txtTokenizer3.4 MB —
tokenizer.jsonTokenizer20.0 MB 06b9509352d2
tokenizer_config.jsonTokenizer1.1 KB —
vocab.jsonTokenizer6.7 MB —

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
19.3 GB
Download from Wangfei

Released by Wangfei through its official repository on Hugging Face. Read the license.

Built From

  • Derived from Qwen/Qwen3.5-9B
  • Described by arXiv:2509.18851
  • Trained on (disclosed) wflying/math-rlvr-15k
  • Trained on (disclosed) wflying/rl-if-math-logic-46k

Memory Requirements

PrecisionWeights in memory
As published19.3 GB
16-bit19.3 GB
8-bit9.7 GB
4-bit4.8 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About Qwen3.5-9B-RL-IF-MATH-LOGIC

How much GPU memory does Qwen3.5-9B-RL-IF-MATH-LOGIC need?

About 23.2 GB at 16-bit and 5.8 GB at 4-bit: the weights (9.7B parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run Qwen3.5-9B-RL-IF-MATH-LOGIC on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use Qwen3.5-9B-RL-IF-MATH-LOGIC commercially?

Yes. Qwen3.5-9B-RL-IF-MATH-LOGIC is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

What is Qwen3.5-9B-RL-IF-MATH-LOGIC's context length?

262,144 tokens, from the maximum position embeddings in its published configuration.

Similar Models

Model · Image and text to text

Qwen3.5-9B

Qwen

Over recent months, we have intensified our focus on developing foundation models that deliver exceptional utility and performance. Qwen3.5 represents a significant leap forward, integrating breakthroughs in multimodal learning, architectural efficiency, reinforcement learning scale, and global accessibility to empower developers and enterprises with unprecedented capability and efficiency. For more details, please refer to our blog post Qwen3.5. WMT24++: a harder subset of WMT24 after difficulty labeling and rebalancing; we report the averaged scores on 55 languages using XCOMET-XXL. Empty cells (--) indicate scores not yet available or not applicable. Empty cells (--) indicate scores not…

Open weights apache-2.0 9.7B parameters 262,144 tokens transformers

Model · Image and text to text

Qwen3.5-9B-AWQ

QuantTrio

This repo quantizes the model using data-free quantization technique. As of 2026-02-25, make sure your system has cuda12.8 installed. Then, create a fresh Python environment (e.g. python3.12 venv) and run: Over recent months, we have intensified our focus on developing foundation models that deliver exceptional utility and performance. Qwen3.5 represents a significant leap forward, integrating breakthroughs in multimodal learning, architectural efficiency, reinforcement learning scale, and global accessibility to empower developers and enterprises with unprecedented capability and efficiency. For more details, please refer to our blog post Qwen3.5. WMT24++: a harder subset of WMT24 after…

Open weights apache-2.0 9.7B parameters 262,144 tokens transformers

Model · Image and text to text

q35-sr-step24

Rong-Xi Tan

This repository contains the completed training step25 HF export. The repository name retains step24 for compatibility with the requested upload destination. Optimizer and scheduler state are not included.

Open weights 9.7B parameters 262,144 tokens transformers

Full Qwen3.5-9B model from the September 22, 2026 Harvey notes-only training runs. This revision is epoch 2, step 1550 of a two-epoch run, job 1016164. The final checkpoint is on main and final; epoch 1 is on epoch1. Each saved checkpoint is also available by its checkpoint- reference. - 100,000,076 note labels/epoch before causal shift; 99,993,882 scored labels/epoch after shift. - 223,681 notes, packed into 6,200 rows of 16,384 tokens with seed 731. - 199,987,764 scored supervised labels seen through this checkpoint. - No supervised trajectory examples. These are the notes-only controls, separate from notes + trajectory mixture models. - Eight GH200 GPUs, effective batch 8, learning rate…

Open weights apache-2.0 9.7B parameters 262,144 tokens transformers

Model · Image and text to text

qwen35-9b-harvey-v4-notes-ntp-100m

Violet Xiang

Full Qwen3.5-9B model from the September 22, 2026 Harvey notes-only training runs. This revision is epoch 2, step 1550 of a two-epoch run, job 1016041. The final checkpoint is on main and final; epoch 1 is on epoch1. Each saved checkpoint is also available by its checkpoint- reference. - 100,000,076 note labels/epoch before causal shift; 99,993,882 scored labels/epoch after shift. - 223,681 notes, packed into 6,200 rows of 16,384 tokens with seed 731. - 199,987,764 scored supervised labels seen through this checkpoint. - No supervised trajectory examples. These are the notes-only controls, separate from notes + trajectory mixture models. - Eight GH200 GPUs, effective batch 8, learning rate…

Open weights apache-2.0 9.7B parameters 262,144 tokens transformers

Model · Image and text to text

qwen35-9b-harvey-v4-notes-ntp-30m

Violet Xiang

Full Qwen3.5-9B model from the September 22, 2026 Harvey notes-only training runs. This revision is epoch 2, step 466 of a two-epoch run, job 1016040. The final checkpoint is on main and final; epoch 1 is on epoch1. Each saved checkpoint is also available by its checkpoint- reference. - 29,999,869 note labels/epoch before causal shift; 29,998,010 scored labels/epoch after shift. - 68,799 notes, packed into 1,864 rows of 16,384 tokens with seed 731. - 59,996,020 scored supervised labels seen through this checkpoint. - No supervised trajectory examples. These are the notes-only controls, separate from notes + trajectory mixture models. - Eight GH200 GPUs, effective batch 8, learning rate…

Open weights apache-2.0 9.7B parameters 262,144 tokens transformers