Implementing kernel
C++ engine symbols that back this Python API.An nn.Linear with a Bone update: a MiSS update of the balance or "bat" variant.
Parameters
base_ layernn.LinearThe layer to adapt; the other parameters are those of
BoneLayer.adapter_ namestrName of the adapter created at once.
configBoneConfigThe adapter's config.
Examples
>>> import lucid.nn as nn
>>> from lucid.peft.tuners.bone import BoneConfig, Linear
>>> layer = Linear(nn.Linear(8, 4), "default", BoneConfig(r=2, target_modules=["x"]))
>>> tuple(layer.bone_block["default"].shape)
(2, 4)