Implementing kernel
C++ engine symbols that back this Python API.An nn.Linear with a block-circulant update: .
Parameters
Examples
>>> import lucid
>>> import lucid.nn as nn
>>> from lucid.peft.tuners.c3a import C3AConfig, Linear
>>> base = nn.Linear(8, 4)
>>> layer = Linear(base, "default", C3AConfig(block_size=4, init_weights=True, target_modules=["x"]))
>>> tuple(layer.c3a_kernel["default"].shape)
(1, 2, 4)
>>> x = lucid.randn(2, 8)
>>> bool((layer(x) == base(x)).all().item()) # the kernels start at zero
True