Views
No views yet
out_qwen_4b_sft_augmented/checkpoint-5000 (25.06% validation accuracy)| Parameter | Value |
|---|---|
| Training data | 2x augmented dataset (16,220 samples) |
| Epochs | 1 |
| Learning rate | 5e-6 (aggressive) |
| Effective batch size | 8 (1 × 1 × 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 |
1import torch
2from transformers import AutoTokenizer
3
4# Load model
5model = torch.load("model.pt", map_location="cpu")
6tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-4B")
7
8# Example CNF
9cnf = """p cnf 5 3
101 -2 3 0
11-1 2 0
122 -5 0"""
13
14# Tokenize
15inputs = tokenizer(cnf, return_tensors="pt", truncation=True, max_length=8192)
16
17# Predict
18with torch.no_grad():
19 outputs = model(**inputs)
20 logits = outputs["logits"]
21 predicted_var = logits[0, 1:].argmax().item() + 1 # Variables are 1-indexed
22
23print(f"Recommended branching variable: {predicted_var}")bash run_grpo_2x.bash