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)
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
ids
ids: 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!