Downloads · 30 days
24
3% of all-time downloads
LLM-OS-Models/Qwen3.5-9B-Graph-Preflexor-ORPO
Qwen3.5-9B-Graph-Preflexor-ORPO is a text generation model from LLM-OS-Models. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Merged full model from ORPO cold-start stage of the Graph-PRefLexOR reproduction fork gyunggyng/lfm-graph-preflexor (fork of lamm-mit/graph-preflexor-grpo, arXiv 2607.00924v1).
Downloads · 30 days
24
3% of all-time downloads
All-time downloads
759
Public
Parameters
9B
17.9 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors17.9 GB · 100%
From the Hugging Face model README
Merged full model from ORPO cold-start stage of the Graph-PRefLexOR
reproduction fork gyunggyng/lfm-graph-preflexor (fork of
lamm-mit/graph-preflexor-grpo, arXiv 2607.00924v1).
principled-intelligence/Qwen3.5-9B-text-only
(Qwen3_5TextForCausalLM, model_type: qwen3_5_text, hybrid
linear + full attention)checkpoint-250 merged into the base.ORPOTrainer, PEFT LoRA (r=32, alpha=64,
dropout=0.05, targets = q/k/v/o/gate/up/down).lamm-mit/graph_reasoning_10K filtered for graph-reasoning
items with structured <brainstorm>...<synthesis> reasoning targets.torch 2.12.0.dev20260407+cu128,
transformers 5.5.4, bfloat16.concatenated_forward OOMs at 9B + seq 5632).| Metric | Value |
|---|---|
| ORPO loss | 1.413 → 0.98 (step 295, crashed at final eval) |
| ORPO accuracy | 1.0 (from step 55) |
| Eval score (rq,depth,trace,overall, /10) | 5.42 / 6.60 / 6.38 / 6.13 |
| Sentinel hit-rate (100 q) | brainstorm 99, graph 94, graph_json 79, patterns 85, synthesis 84 |
Eval was run with scripts/05c_eval_transformers.py (4-GPU shard-parallel
transformers, eager attention, thinking enabled) because vLLM 0.19 / 0.20
do not register Qwen3_5TextForCausalLM — see "Known limitations" below.
The model emits a structured reasoning trace inside <think>:
<think>
<brainstorm>... free-form exploration ...</brainstorm>
<graph>... concept graph (natural language) ...</graph>
<graph_json>{"nodes": [...], "edges": [...]}</graph_json>
<patterns>... reusable abstractions ...</patterns>
<synthesis>... integrated reasoning ...</synthesis>
</think>
final answer
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"LLM-OS-Models/Qwen3.5-9B-Graph-Preflexor-ORPO",
dtype="bfloat16", device_map="auto", trust_remote_code=True,
)
tok = AutoTokenizer.from_pretrained(
"LLM-OS-Models/Qwen3.5-9B-Graph-Preflexor-ORPO",
trust_remote_code=True,
)
prompt = tok.apply_chat_template(
[{"role": "user", "content": "Your graph-reasoning question here"}],
tokenize=False, add_generation_prompt=True,
)
inputs = tok(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=3500, do_sample=True, temperature=0.2)
print(tok.decode(out[0, inputs.input_ids.shape[1]:], skip_special_tokens=False))
attn_implementation="eager" is required if flash-linear-attention is
not installed; SDPA silently returns empty tokens otherwise.
Qwen3_5TextForCausalLM is not in vLLM's registered
architectures as of vLLM 0.20.2 (only Qwen3_5ForConditionalGeneration
/ Qwen3_5MoeForConditionalGeneration / Qwen3_5MTP are). vLLM's
generic TransformersForCausalLM wrapper also fails because it expects
the multimodal prefix model.language_model.*, while text-only weights
are flat at model.layers.*. Use transformers for inference until vLLM
adds native text-only Qwen3.5 support.ORPOTrainer forces a final evaluate() after
training, which OOMs on 9B + seq 5632 in concatenated_forward.
Checkpoint-250 (saved before the crash) is what's merged here.@article{graphpreflexor2025,
title={Graph-PRefLexOR: Graph-based Preference-based Reasoning via Learning},
doi={10.48550/arXiv.2607.00924}
}