{"by":"xlayn","descendants":80,"id":47431671,"kids":[47434231,47437002,47433797,47433868,47434535,47434797,47433396,47434173,47433538,47438449,47433716,47437434,47442191,47436865,47434357,47433537,47438460,47434267,47434657,47433484,47433807,47433647,47438462,47438507,47438524,47452081,47445076,47438382,47570884,47434059,47482688,47441143,47436571,47433692,47463365,47436840,47436441,47439055,47436702,47434617,47434111,47433481],"score":265,"text":"I replicated David Ng&#x27;s RYS method (<a href=\"https:&#x2F;&#x2F;dnhkng.github.io&#x2F;posts&#x2F;rys&#x2F;\" rel=\"nofollow\">https:&#x2F;&#x2F;dnhkng.github.io&#x2F;posts&#x2F;rys&#x2F;</a>) on consumer AMD GPUs \n(RX 7900 XT + RX 6950 XT) and found something I didn&#x27;t expect.<p>Transformers appear to have discrete &quot;reasoning circuits&quot; — contiguous blocks of 3-4 layers that \nact as indivisible cognitive units. Duplicate the right block and the model runs its reasoning \npipeline twice. No weights change. No training. The model just thinks longer.<p>The results on standard benchmarks (lm-evaluation-harness, n=50):<p>Devstral-24B, layers 12-14 duplicated once:\n- BBH Logical Deduction: 0.22 → 0.76\n- GSM8K (strict): 0.48 → 0.64\n- MBPP (code gen): 0.72 → 0.78\n- Nothing degraded<p>Qwen2.5-Coder-32B, layers 7-9 duplicated once:\n- Reasoning probe: 76% → 94%<p>The weird part: different duplication patterns create different cognitive &quot;modes&quot; from the same \nweights. Double-pass boosts math. Triple-pass boosts emotional reasoning. Interleaved doubling \n(13,13,14,14,15,15,16) creates a pure math specialist. Same model, same VRAM, different routing.<p>The circuit boundaries are sharp — shift by one layer and the effect disappears or inverts. \nSmaller models (24B) have tighter circuits (3 layers) than larger ones (Ng found 7 layers in 72B).<p>Tools to find circuits in any GGUF model and apply arbitrary layer routing are in the repo. \nThe whole thing — sweep, discovery, validation — took one evening.<p>Happy to answer questions.","time":1773869472,"title":"Show HN: Duplicate 3 layers in a 24B LLM, logical deduction .22→.76. No training","type":"story","url":"https://github.com/alainnothere/llm-circuit-finder"}