Downloads · 30 days
85
15% of all-time downloads
KokosDev/qwen2p5vl-7b-plt
qwen2p5vl-7b-plt is a feature extraction model from KokosDev. Use it when you need embeddings to search or compare text. It is set up for transformers. The card lists the license as apache-2.0.
High-quality cross-layer transcoders for Qwen2.5-VL-7B-Instruct, trained with 10,000 carefully curated samples and optimized sparsity.
Downloads · 30 days
85
15% of all-time downloads
All-time downloads
554
Public
Repo size
13 GB
Likes
2
Public
Click a slice to open those files.
.safetensors3.2 GB · 100%
From the Hugging Face model README
High-quality cross-layer transcoders for Qwen2.5-VL-7B-Instruct, trained with 10,000 carefully curated samples and optimized sparsity.
| Layer Range | Val Loss | L0 Sparsity | Notes |
|---|---|---|---|
| L0-L3 | 0.16-0.30 | 4-8% | Excellent - very sparse |
| L4-L13 | 0.18-0.27 | 6-9% | Excellent - optimal range |
| L14-L20 | 0.20-0.34 | 8-14% | Excellent - good coverage |
| L21-L26 | 0.21-0.31 | 10-15% | Excellent - higher layers naturally have slightly more active features |
All layers show excellent reconstruction quality with interpretable sparsity levels.
pip install circuit-tracer huggingface-hub
from circuit_tracer import attribute
# Run circuit tracing
attribute(
prompt="The Eiffel Tower is located in",
transcoder_set="KokosDev/qwen2p5vl-7b-plt",
model="Qwen/Qwen2.5-7B",
dtype="bf16",
batch_size=64,
)
from safetensors import safe_open
import torch
# Load a specific layer
layer_idx = 5
with safe_open("layer_5.safetensors", framework="pt") as f:
enc_weight = f.get_tensor("enc.0.weight") # [8192, 3584]
enc_bias = f.get_tensor("enc.0.bias") # [8192]
dec_weight = f.get_tensor("dec.weight") # [3584, 8192]
dec_bias = f.get_tensor("dec.bias") # [3584]
Input (3584) → Encoder → ReLU → Features (8192) → Decoder → Output (3584)
torch.compileCompared to the default training setup:
10x higher sparsity coefficient (5e-2 vs 5e-3)
Larger dataset (10K vs typical 1K)
Optimized training loop
Same as Qwen2.5-VL-7B (Apache 2.0 / Tongyi Qianwen License)
For questions or issues, please open an issue in the model repo.
Last updated: October 2024