Downloads · 30 days
0
Yale-ROSE/Qwen3-4B-SAT-VarSelector-Sym-Aug-GRPO-5x
Qwen3-4B-SAT-VarSelector-Sym-Aug-GRPO-5x is a reinforcement learning model from Yale-ROSE. Use it for the reinforcement learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
A transformer-based model for selecting branching variables in SAT (Boolean Satisfiability) Cube-and-Conquer solving. This model was fine-tuned using GRPO (Group Relative Policy Optimization) on top of an SFT checkpoint.
Downloads · 30 days
0
Access
Public
Updated Jan 26, 2026
Repo size
8.1 GB
Likes
0
Public
Click a slice to open those files.
.pt8 GB · 100%
From the Hugging Face model README
A transformer-based model for selecting branching variables in SAT (Boolean Satisfiability) Cube-and-Conquer solving. This model was fine-tuned using GRPO (Group Relative Policy Optimization) on top of an SFT checkpoint.
This model predicts which variable to branch on given a CNF formula in DIMACS format. It was trained using reinforcement learning with solver-based rewards.
out_qwen_4b_sft_augmented/checkpoint-5000 (25.06% validation accuracy)| Parameter | Value |
|---|---|
| Training data | 5x augmented dataset (40,550 samples) |
| Epochs | 1 |
| Learning rate | 3e-6 (reduced for stability) |
| Effective batch size | 32 (1 × 4 × 8 GPUs) |
| Num samples per CNF | 4 |
| Entropy coefficient | 0.25 (high for diversity) |
| Temperature | 1.8 (high for exploration) |
| Solver timeout | 100ms |
| Max variables | 600 |
| Max sequence length | 8192 |
import torch
from transformers import AutoTokenizer
# Load model
model = torch.load("model.pt", map_location="cpu")
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-4B")
# Example CNF
cnf = """p cnf 5 3
1 -2 3 0
-1 2 0
2 -5 0"""
# Tokenize
inputs = tokenizer(cnf, return_tensors="pt", truncation=True, max_length=8192)
# Predict
with torch.no_grad():
outputs = model(**inputs)
logits = outputs["logits"]
predicted_var = logits[0, 1:].argmax().item() + 1 # Variables are 1-indexed
print(f"Recommended branching variable: {predicted_var}")
This model was trained using:
bash run_grpo_5x.bash
See the full training script in the Transformer-SAT repository.
If you use this model, please cite the Transformer-SAT project.
Apache 2.0