Skip to content

Commit

Permalink
fix: exit early if no adapter_data
Browse files Browse the repository at this point in the history
  • Loading branch information
drbh committed Jun 25, 2024
1 parent 0d496ba commit a2d821c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/text_generation_server/layers/lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def forward_layer_type(
start_idx: int,
end_idx: int,
) -> torch.Tensor:
if adapter_data is None:
return result
data = adapter_data.data.get(layer_type)
data: Optional["BatchLoraWeights"] = (
data.get("lora") if data is not None else None
Expand Down

0 comments on commit a2d821c

Please sign in to comment.