Downloads · 30 days
0
shijtang/mini-nla-qwen2.5-3b
mini-nla-qwen2.5-3b is a machine learning model from shijtang. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as apache-2.0.
This repository contains a small-scale natural language autoencoder built around Qwen2.5-3B-Instruct. The Activation Verbalizer (AV) maps a hidden-state activation to a natural-language explanation, and the Activation…
Downloads · 30 days
0
Access
Public
Updated Jun 6, 2026
Repo size
23.3 GB
Likes
0
Public
Click a slice to open those files.
.pt17.2 GB · 73%
From the Hugging Face model README
This repository contains a small-scale natural language autoencoder built around Qwen2.5-3B-Instruct. The Activation Verbalizer (AV) maps a hidden-state activation to a natural-language explanation, and the Activation Reconstructor (AR) maps that explanation back into the activation space.
This is a custom PyTorch model bundle, not a standard text-generation checkpoint that can be loaded directly with AutoModelForCausalLM.
base_model/: complete Qwen2.5-3B-Instruct weights, configuration, and tokenizer.av_sft/model.pt: supervised Activation Verbalizer.ar_critic/model.pt: jointly optimized Activation Reconstructor from GRPO step 1,280.av_rl/model.pt: GRPO Activation Verbalizer from step 1,280.data/: AV, AR, RL, and validation activation datasets.validation_fve_by_step.json: held-out FVE for the saved GRPO checkpoints.The activation dimension is 2,048. Training used 1,024 AV examples, 1,024 AR examples, 2,048 RL examples, and 256 validation examples. Natural-language targets were generated with Qwen2.5-32B-Instruct.
The supervised roundtrip obtained FVE -0.2524. The best paired GRPO checkpoint occurred at step 1,280 with FVE -0.1677. Training through step 2,048 produced FVE -0.1724, so this bundle uses the better step-1,280 checkpoint.
The checkpoints are loaded by the accompanying mini_nla implementation:
from mini_nla.models_av import ActivationVerbalizer
from mini_nla.utils import load_state_dict_if_exists
av = ActivationVerbalizer("base_model", activation_dim=2048, prefix_tokens=8)
load_state_dict_if_exists(av, "av_rl")
The AR is loaded similarly with CriticStyleActivationReconstructor.
The learned roundtrip still has negative held-out FVE and does not outperform mean-activation prediction. The result indicates improved reconstruction with model scaling, but it is not evidence of a reliable scaling law.