Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tgaddair committed Oct 28, 2024
1 parent e62e0f8 commit 66d8676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/lorax_server/models/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def __init__(
self.preloaded_adapter_indices = set()
self.preloaded_adapter_memory_fractions = {}
self.preloaded_adapters = []
self.layer_to_lora_weights = {}

self.trust_remote_code = trust_remote_code

Expand Down Expand Up @@ -271,7 +272,6 @@ def register_preloaded_adapters(
# where:
# lora_a_weights = [num_adapters, r, hidden_size]
# lora_b_weights = [num_adapters, hidden_size, r]
self.layer_to_lora_weights = {}
for layer_name, layer_adapter_weights in self.layer_to_adapter_weights.items():
layer_id_to_lora_a_weights = defaultdict(list)
layer_id_to_lora_b_weights = defaultdict(list)
Expand Down

0 comments on commit 66d8676

Please sign in to comment.