Qwenputer-2B-SPSQ-RL
language model with integrated RISC-V processor and RL training
2 min readupdated
Qwenputer-2B-SPSQ-RL is a version of the compact Qwen3.5-2B model, fine-tuned using SFT (supervised fine-tuning) and RLVR (reinforcement learning with verifiable rewards). The main feature of the model is a compiled 32-bit RISC-V processor embedded directly in its weights, which is used for precise mathematical computations. The new version completely removes decoding heuristics and allows the model to naturally reason and delegate multi-step calculations to hardware. The model is useful for researchers and developers working on precise computations in LLMs without arithmetic hallucinations.
Key features
- Embedded RISC-V processor: A 32-bit processor with a coprocessor right inside the model weights.
- Native computation delegation: Up to 95.5% of mathematical operations are handed off to the built-in calculation tool.
- Efficient reasoning: Elimination of decoding heuristics and stable completion within the token budget.
- High benchmark accuracy: Significant quality gains on the GSM8K and GSM-Hard datasets compared to the base version.
What you can do
- Solve math problems: Run the model to generate precise answers to complex word problems with multi-step arithmetic.
- Integrate into pipelines: Use the model as an agent for financial or engineering calculations requiring absolute precision.
- Test tool actions: Explore model performance with built-in executable instructions and hardware emulation in weights.
Example
import torch
from transformers import AutoTokenizer
from spsq.modeling_qwenputer_spsq import QwenputerSPSQForCausalLM
model_id = "rvindra/Qwenputer-2B-SPSQ-RL"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = QwenputerSPSQForCausalLM.from_pretrained_spsq(model_id, device="cuda")
Read more
DetailsBenchmarks: GSM8K Full (70.43%), GSM-Hard Full (60.80%), overall word accuracy 65.62%.
Training features: SFT on LoRA adapters with token masking and RLVR (reinforcement learning with verifiable rewards).
Parameters: 2 billion parameters (Qwen3.5-2B base), optimized handling of reasoning tokens.










Comments