adapters icon indicating copy to clipboard operation
adapters copied to clipboard

Add `adapter_to()` method for moving & converting adapter weights

Open calpt opened this issue 1 year ago • 0 comments

This PR:

  • introduces new methods adapter_to() & adapter_fusion_to() to move only adapter weights to device or convert dtype
  • avoids moving full model in AdapterTrainer when loading best model.

Fixes #694.

calpt avatar May 10 '24 10:05 calpt