For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Python class
LoRAInputs
LoRAInputsβ
class max.pipelines.lora.LoRAInputs(ids, ranks, grouped_offsets, num_active, end_idx, batch_seq_len, ids_kv, grouped_offsets_kv)
Bases: object
Per-batch LoRA buffers passed to a model graph.
Fields are ordered to match the graphβs LoRA input signature. Use
buffers() to splice them into a model ABI call.
-
Parameters:
batch_seq_lenβ
batch_seq_len: Buffer
buffers()β
buffers()
Returns the buffers in canonical (field-declaration) order.
end_idxβ
end_idx: Buffer
grouped_offsetsβ
grouped_offsets: Buffer
grouped_offsets_kvβ
grouped_offsets_kv: Buffer
idsβ
ids: Buffer
ids_kvβ
ids_kv: Buffer
num_activeβ
num_active: Buffer
ranksβ
ranks: Buffer
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!