Skip to content

Handle the case of lora_uid being none in a more safe manner. #5693

@vincentzed

Description

@vincentzed

# FIXME: Handle lora uid with None more safely

We should have a more robust check. @jcbjcbjc

we can use null lora slot?
Like:

  • Reserve some slot in LoraMemPool and if lora_path is None in the loop, assign the weight_indices[i] for that request to the reserved null slot index.

And set some parameters so that applying LoRA (here rank 0) has absolutely no effect. But then backend kernel should handle this case as well?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions