Skip to content

Commit 2729896

Browse files
committed
Fixing format error.
1 parent f7115c8 commit 2729896

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

jetstream/core/orchestrator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,9 +1330,9 @@ def _generate_thread(self, idx: int):
13301330
lora_state["scale_factor"] = reshaped_scale_factors
13311331
lora_state["lora_params"] = decoding_adapters_params
13321332

1333-
if isinstance(decode_state, dict): # For flax.struct.dataclass
1333+
if isinstance(decode_state, dict):
13341334
decode_state["lora_state"] = lora_state
1335-
else: # For standard mutable dataclasses.dataclass
1335+
else: # flax.struct.dataclass
13361336
decode_state = decode_state.replace(lora_state=lora_state)
13371337

13381338
# Now we actually take a generate step on requests in the slots.

0 commit comments

Comments
 (0)