cribl-decision-1.0 (merged full weights)
Standalone (merged) build of the LoRA adapter
cribl-ai/cribl-decision-1.0
folded into its base model Qwen/Qwen3.5-4B-Base
(@ 1001bb4d826a52d1f399e183466143f4da7b741b) with
peft.PeftModel.merge_and_unload(). No PEFT dependency is required to run it.
This is a community merged release, not affiliated with Cribl AI or Qwen.
| Property | Value |
|---|---|
| Base model | Qwen/Qwen3.5-4B-Base @ 1001bb4 |
| Adapter | cribl-ai/cribl-decision-1.0 |
| Merge | merge_and_unload(), dtype bfloat16 |
| Decision types | choice, noul, score |
| Max candidates | 255 per question |
| Readout | Hidden state → lm_head → candidate softmax (no text generation) |
Merging was verified against the base+adapter path: structured-readout probabilities matched with a max absolute difference of ~0.018 (bfloat16 merge rounding).
Loading
import torch
from transformers import AutoTokenizer, Qwen3_5ForConditionalGeneration
MODEL = "nam194/cribl-decision-1.0-merged"
tokenizer = AutoTokenizer.from_pretrained(MODEL)
model = Qwen3_5ForConditionalGeneration.from_pretrained(
MODEL, dtype=torch.bfloat16
).to("cuda").eval()
Important: Use
Qwen3_5ForConditionalGeneration, notAutoModelForCausalLM, which can silently ignore the merged weights for this architecture.
Structured readout
The model does not generate text. Run one forward pass and restrict the
lm_head to the candidate-letter token IDs:
import json, torch
LETTERS = "ABCDEFGHIJ"
base_model = model # no PEFT wrapper needed
language_model = base_model.model.language_model
lm_head = base_model.lm_head
@torch.inference_mode()
def score(prompt, n_options):
ids = tokenizer.encode(prompt, add_special_tokens=False)
input_ids = torch.tensor([ids], dtype=torch.long, device="cuda")
mask = torch.ones_like(input_ids)
hidden = language_model(input_ids=input_ids, attention_mask=mask).last_hidden_state
h = hidden[0, -1] # hidden state at the "(" token
letter_ids = [tokenizer.encode(LETTERS[i], add_special_tokens=False)[0]
for i in range(n_options)]
cand_ids = torch.tensor(letter_ids, dtype=torch.long, device="cuda")
weights = lm_head.weight[cand_ids]
logits = (weights @ h).float()
return torch.softmax(logits, dim=-1).cpu().tolist()
state = {"message": "My card was charged twice for the same purchase."}
question = "Which department should handle this?"
options = ["billing", "technical support", "sales"]
prompt = (
f"Context:\n{json.dumps(state)}\n\n"
f"Question: {question}\n"
f"Options:\n"
+ "\n".join(f"({LETTERS[i]}) {opt}" for i, opt in enumerate(options))
+ "\nAnswer: ("
)
probs = score(prompt, len(options))
for i, (opt, p) in enumerate(zip(options, probs)):
print(f"({LETTERS[i]}) {opt:20s} {p:.4f}")
Prompt format, decision types, label table, and limitations are documented in the original adapter card. Using a different prompt format will degrade accuracy.
Limitations
- Can produce incorrect or overconfident decisions; accuracy varies by domain.
- Sensitive to prompt formatting, candidate wording, and option order.
- Generic text generation is not the intended use.
- bfloat16 merge introduces a small deviation from the base+adapter reference.
License
Apache-2.0, inherited from the base model and adapter.