Downloads · 30 days
0
ceselder/qwen36-27b-sae-l42-1b
qwen36-27b-sae-l42-1b is a machine learning model from ceselder. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
A BatchTopK sparse autoencoder on the residual-stream output of decoder layer 42 of Qwen/Qwen3.6-27B (dmodel=5120), trained with dictionarylearning so it loads directly.
Downloads · 30 days
0
Access
Public
Updated Aug 22, 2026
Repo size
7 GB
Likes
0
Public
Click a slice to open those files.
.pt7 GB · 99%
From the Hugging Face model README
A BatchTopK sparse autoencoder on the residual-stream output of decoder layer 42 of
Qwen/Qwen3.6-27B (d_model=5120), trained with dictionary_learning
so it loads directly.
| Base model | Qwen/Qwen3.6-27B |
| Hook | model.model.layers[42] output (resid_post), [B,T,5120] |
| Dictionary size (F) | 131072 (25.6x expansion) |
| Active latents (k) | 64 (BatchTopK, learned threshold 1.5846) |
| Training tokens | 735,105,024 |
| Corpus | openbmb/Ultra-FineWeb (en) |
| Explained variance | 0.7040 |
| L0 | 63.8 |
| Dead features | 0.06% (75/131072) |
Same BatchTopK recipe (dictionary_learning BatchTopKTrainer), same aux-k dead-feature loss
(auxk_alpha=1/32), same warmup + learned-threshold schedule. Differences: this SAE is on the 27B
model (d=5120, layer 42), uses F=131072 / k=64, and was trained on ~250M tokens — about half the
~500M tokens Adam trains (his 8B batch_top_k is F=65536, k=80, ~500M tokens) on a 2x larger dictionary,
so treat this as a research checkpoint (a longer run would likely lower the dead-feature rate). Method is
otherwise identical.
saes_Qwen_Qwen3.6-27B_batch_top_k/resid_post_layer_42/trainer_0/ae.pt — SAE state_dict.../trainer_0/config.json — trainer/buffer configmaxacts/acts_Qwen_Qwen3.6-27B_layer_42_trainer_0_context_length_32.pt — per-feature top-32 activating windows {"max_tokens":[F,N,32], "max_acts":[F,N,32]}data/examples.parquet — decoded top-activating text windows for every live feature (browse in the HF Data Studio)The ⟦…⟧ marks the peak-activating token in each window. Full set for all live features is in data/examples.parquet.
| feature | peak act | top-activating window |
|---|---|---|
| 5309 | 12.51 | is about 100-700 mJ, the fluence is in the range of about 10 to 50⟦ m⟧J/cm |
| 12436 | 16.48 | , consumable production supplies, and factory overhead. … Depreciation is⟦ a⟧ fixed cost, because it recurs in the same amount per period throughout the useful life |
| 18265 | 11.2 | dealing with these challenges.↵Almost all books which are concerned with the practicalities of teaching in higher education will devote some space to the lecture method o |
| 18327 | 26.68 | 0,000) Americans have kidney disease, but 90% of them don’t know it.↵- Diabetes and⟦ high⟧ blood pressure, which |
| 19274 | 32.96 | Generative Anthropology.↵The originary hypothesis is an attempt⟦ to⟧ come to grips with the most salient truth about human language: that language as we know |
| 28652 | 16.46 | jugation of women to men, the family as⟦ an⟧ institution that oppressed women as well as men, and repressive sexual morals.46↵In Spain, |
| 32856 | 23.86 | treatment of patients with breast tumors of one centimeter or less and negative ax⟦illary⟧ lymph nodes.↵Fisher B, Dignam J, Tan-Chiu |
| 33958 | 32.3 | 959 (2000).↵- (23) A. Wojs and J.J. Quinn, Phys.⟦ Rev⟧. B 6 |
| 36963 | 24.62 | - A shell is a form of ammunition that is fired by a large caliber cannon or artillery piece. Before the⟦ mid⟧-19th century, these shells were |
| 39777 | 25.92 | are discussed.↵This module outlines basic nutrition and how it can affect the health and certain conditions of the skin and body. It will also cover how certain⟦ habits⟧ |
| 46957 | 29.7 | or tolerated, as lung as so doing reduces levels of conflict and increases the system's macro-efficiency.9↵The⟦ liberal⟧ approach still embraces a bourgeois ideology in |
| 50523 | 20.21 | read, write, discuss, or be engaged in solving problems. Active learning engages students⟦ in⟧ two aspects – doing things and thinking about the things they are doing ( |
| 53105 | 21.27 | 979. It replaced the Nanjing-based romanization systems that had been common until late in the 19th century. It has been entirely⟦ replaced⟧ |
| 55156 | 12.79 | ) of LacI polypeptides (Lewis, 2005; Wilson et al., 2007). Each functional d⟦imer⟧ can bind |
| 62507 | 9.21 | III is also severe, and it presents with bone deformities and multiple fractures. These⟦ patients⟧ generally end up in a wheelchair, with a shortened life. Type IV |
| 63731 | 14.08 | 's fire,↵Authorized by her grandam. Shame itself!↵Why do you⟦ make⟧ such faces? When all's done,↵You look but on a |
| 66192 | 13.7 | in a small pilot study , further retrospective studies failed to demonstrate any benefit from this intervention⟦ [⟧76-78].↵A far more potent HDACi |
| 67057 | 23.83 | working goals.↵The disparity among the two genders exists for the wages and salaries. This gap was 15.1% in ⟦2⟧005 |
| 69851 | 9.73 | unfulfilled desires. The chain of births lets us resume the pursuit. The law that governs samsāra is called karma. Each birth⟦ and⟧ death |
| 76515 | 17.95 | Y-arrows on the Test-Pattern print.↵- Typically the correction may need some 1/10 [mm] only⟦.⟧ Mind the algebraic |
| 78943 | 18.74 | pressure. (100 percent oxygen)↵What is the use of hyberbaric oxygen therapy?↵- To increase⟦ the⟧ available amount of oxygen to |
| 81101 | 18.23 | -coupling network between two stages of↵am⟦pl⟧ification. The transformer action of T1 couples the signal from the first stage to the↵second stage. |
| 92483 | 20.52 | retched of the Earth is a brilliant analysis of the psychology of the colonized and their path to liberation. Bearing singular insight⟦ into⟧ the rage and frustration of |
| 99122 | 14.14 | often do not survive longer than 12 years.↵18. Spotted hyenas can eat as⟦ much⟧ as a third of their body weight in one |
| 99404 | 12.97 | . This allows the mean to be equal to the median, and the median is a very easy number to calculate. In an odd numbered set, it is⟦ the⟧ |
| 102793 | 16.17 | protests in American history was the Boston Tea Party, a⟦ protest⟧ against British-imposed tax laws known as the Townshend Acts.↵In more recent American and |
| 104839 | 14.51 | - tion, among the cortical areas in which spatial coding has been studied physiologically, no area stands out as obvi- ously containing binary options⟦ free⟧ demo |
| 106258 | 22.6 | about to not stop moving, and so we must develop a new way to power the world’s transportation fleet. Biofuels, or liquid fuels made⟦ from⟧ plant |
| 108832 | 12.74 | Xu et al. (2009) recorded an upward and northward movement of the tree line; particularly in the eastern Himalayas the tree line⟦ moved⟧ |
| 110742 | 15.86 | to be less common sources per unit volume of space for the nearby sources than for⟦ the⟧ distant ones. This could mean that we are at the center of a great |
| 116751 | 26.11 | 2.9% of the Netherlands group were on a psychiatric medication. Compared to children living in Germany and the Netherlands, American kids⟦ were⟧ 3 times more |
| 116936 | 11.01 | at their original function?↵Dehaene and colleagues explored this question by scanning adults at different levels of⟦ literacy⟧: literates, ex-literates (adults |
| 118314 | 11.78 | Michigan, Minnesota, Mississippi, Missouri, Montana, Nebraska, Nevada, New Mexico, North Dakota, Ohio (partial), Oklahoma, Oregon, South Dakota,⟦ Utah⟧ |
| 119094 | 29.85 | the process↵- test for what is called a 'Growth Mindset'↵Carol D⟦we⟧ck in her awesome book 'Mindset: The New Psychology |
| 119308 | 23.49 | 880s. Bothamley in 1891 said "The stops of all the best makers are now arranged according⟦ to⟧ this system." [ |
| 120420 | 15.78 | 2 the Free Officers led by Lieutenant Colonel Gamal Abdul Nasser took control of the government and removed King Faruk from power. In 195⟦6⟧ |
| 126616 | 16.73 | is the stratosphere. The stratosphere sits some⟦ ⟧11 to 30 miles from the earth’s surface. As 90% of |
| 126922 | 13.78 | . observed that healthy tissue showed higher homogeneity, lower entropy, higher low gray⟦-level⟧ zone emphasis, and lower high gray-level zone emphasis than tumor tissue |
| 128888 | 13.4 | misconceptions about the commons↵2.1 Open Education↵The Cape Town Open Education Declaration (2007) asks all educators to release⟦ their⟧ resources openly |
| 129476 | 19.92 | to.↵Pro Tip: If your senior dog seems extra lethargic and slow, it could be a⟦ sign⟧ of an underlying condition like arthritis or another disease |
import torch
p = torch.load("ae.pt")
km = {"encoder.weight":"W_enc","decoder.weight":"W_dec","encoder.bias":"b_enc","bias":"b_dec","b_dec":"b_dec"}
r = {km[k]: v for k, v in p.items() if k in km}
W_enc, W_dec = r["W_enc"].T.contiguous(), r["W_dec"].T.contiguous() # [d,F], [F,d] (unit-norm rows)
b_enc, b_dec = r["b_enc"], r["b_dec"]
def encode(x): # x = RAW layer-42 residuals
pre = torch.relu((x - b_dec) @ W_enc + b_enc)
return pre * (pre > p["threshold"])