Skip to content

Commit

Permalink
Fix : compile bug causing models to error with 'lora' key not found (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ajtejankar authored Jul 19, 2024
1 parent 5a7a1be commit 1adc076
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/lorax_server/adapters/weights.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ def from_meta(
for k, v in weights.items():
if v.is_empty():
continue
data[k] = v.get_data(meta, prefill, prefill_head_indices if k == LM_HEAD else None)
layer_weights = v.get_data(meta, prefill, prefill_head_indices if k == LM_HEAD else None)
if layer_weights:
data[k] = layer_weights
return AdapterBatchData(meta=meta, data=data, prefill=prefill)

def ranks(self) -> Set[int]:
Expand Down

0 comments on commit 1adc076

Please sign in to comment.