Downloads · 30 days
11
29% of all-time downloads
be0k/qwen3.5-9b-4by4-consistency-merged
qwen3.5-9b-4by4-consistency-merged is a machine learning model from be0k. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Qwen/Qwen3.5-9B with our LoRA adapter (r=16, alpha=32, targets q,k,v,o,gate,up,downproj) merged into the base weights (PeftModel.mergeandunload()). This is the backbone for our SNU AI Challenge submission: given four…
Downloads · 30 days
11
29% of all-time downloads
All-time downloads
38
Public
Parameters
9.4B
18.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors18.8 GB · 100%
From the Hugging Face model README
Qwen/Qwen3.5-9B with our LoRA adapter (r=16, alpha=32, targets
q,k,v,o,gate,up,down_proj) merged into the base weights
(PeftModel.merge_and_unload()). This is the backbone for our SNU AI
Challenge submission: given four shuffled video frames and a one-sentence
description, predict their chronological order.
The vision encoder is unmodified from the base model (it was frozen during
training — no LoRA was applied to it, so its weights here are byte-identical
to Qwen/Qwen3.5-9B).
This model was trained with four independent rank-classification heads
read from the last non-padding prompt hidden state (see our GitHub repo for
the full source: code/modeling.py, class FourIndependentRankHeads). Those
heads are not part of the standard AutoModelForImageTextToText weights —
they are a small separate checkpoint bundled in this repo as
direct_head.pt (~200 KB), together with direct_objective.json
(answer-encoding metadata) and ablation_manifest.json /
train_args.json (exact training configuration, ablation preset consistency).
Loading this repo with plain AutoModelForImageTextToText.from_pretrained(...)
gives you a fully functional causal LM + vision backbone, but not an
ordering predictor by itself — you additionally need to load direct_head.pt
onto the last hidden state as documented in our GitHub repo's code/modeling.py
(load_head, four_head_rank_logits) and decode by scoring the 24 valid
permutations in closed form (rank_logits_to_permutation_scores).
Full training/inference code, the LoRA-adapter (unmerged) version, and the paper describing the method: see the linked GitHub repository.
We also publish the un-merged LoRA adapter (58 MB) in our GitHub repo. This
merged copy exists because folding the adapter into the base weights removes
the extra low-rank matmul branch PEFT adds at every one of the 7 adapted
projections in every decoder layer, which matters most at batch size 1 (our
inference setting): with no batching to amortize the extra kernel launches,
that per-layer LoRA branch is a proportionally larger tax than in typical
large-batch benchmarks. Our 24-view test-time augmentation runs the language
model forward once per permutation, so removing that per-call overhead
compounds over the 24 calls. We have not published a controlled side-by-side
latency number for this specific model/hardware pair; treat the merged copy
as an inference-convenience artifact (also: no peft dependency needed to
load it), not as a benchmarked speedup claim.
1..4)consistency; see ablation_manifest.json)eval_metrics.json)Follows the base model's license (Qwen/Qwen3.5-9B).