rank property

  1. @TagNumber.new(5)
int get rank

Read from the adapter artifact at load time. Never settable. rank is PEFT's r, alpha is lora_alpha; effective strength is scale * (alpha / rank), which is why 1.0 is not portable between adapters trained with different alpha/rank.

Implementation

@$pb.TagNumber(5)
$core.int get rank => $_getIZ(4);
  1. @TagNumber.new(5)
set rank (int value)

Implementation

@$pb.TagNumber(5)
set rank($core.int value) => $_setSignedInt32(4, value);