
Bottleneck adapters (Kamath Eq 4.1-4.2)
Source:R/kamath_llm2_native.R
morie_kamath_ch4_series_adapter.RdBottleneck adapters (Kamath Eq 4.1-4.2)
Usage
morie_kamath_ch4_series_adapter(H_o, W_down, W_up, f = NULL)
morie_kamath_ch4_parallel_adapter(H_o, H_i, W_down, W_up, f = NULL)Details
One core serves both Python modules exactly as km055 imports
km054's _adapter_core: km054 -> morie_kamath_ch4_series_adapter
(bottleneck fed by H_o), km055 -> morie_kamath_ch4_parallel_adapter
(fed by the layer input H_i). Passing H_i = H_o reproduces the series
adapter exactly.