Bone
4 memberslucid.peft.tuners.bonelucid.peft.tuners.bone — Bone, the method MiSS replaced: its config, tuner and layer types.
Bone (Kang, 2024, arXiv:2409.15371 — Block Affine) learns one block per run of output rows and
applies it to the weight itself, blockwise, so it is non-linear in the
blocks. The paper was revised as MiSS, and the reference library no longer ships Bone. It is kept
here because adapter files written under the name exist: a Bone adapter is a MiSS adapter of the
default or "bat" variant with the block stored as bone_block. New work uses
lucid.peft.tuners.miss.
One layer type for the one module the method adapts, nn.Linear: Linear, on BoneLayer.
BoneConfig and BoneModel are here and exported from lucid.peft. Importing the package
registers the method (its config under PeftType.BONE, its tuner and layer), which is what makes
get_peft_model and PeftModel.from_pretrained know it.
Kang, Jiale. [arXiv:2409.15371](https://arxiv.org/abs/2409.15371), 2024 (the paper that introduced Bone; MiSS is its successor).
Bone (Kang, 2024 — Block Affine) is the method MiSS (lucid.peft.MissConfig)
renamed and extended; the reference library no longer ships it. It is kept here
because adapter files written under the name still exist: a Bone adapter is a MiSS
adapter of the balance (init_weights=True) or "bat" variant with the block
stored as bone_block. New work should use MiSS.
Classes
BoneConfig9 methodsHow lucid.peft.get_peft_model adapts a model with Bone.
BoneLayerAdapter bookkeeping shared by the Bone layers: a MiSS layer whose block is bone_block.
LinearAn nn.Linear with a Bone update: a MiSS update of the balance or "bat" variant.
BoneModel15 methodsA model with Bone layers in it, and the tools to take them out again.