Skip to content

Commit 67840eb

Browse files
Update production-trace-replay-qwen.py (llm-d#899)
Fix 3 typos reported in issue llm-d#785 Changes: - Line 295: prefered_worker_id -> preferred_worker_id - Line 296: prefered_worker_id -> preferred_worker_id - Line 326: is_prefered_worker_requested -> is_preferred_worker_requested Signed-off-by: forfreedomforrich-eng <261150561+forfreedomforrich-eng@users.noreply.github.com>
1 parent a6de86a commit 67840eb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

experimental/multi-turn/production-trace-replay-qwen.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ def get_data(self) -> Generator[InferenceAPIData, None, None]:
292292
# Yield LazyLoadInferenceAPIData for each entry
293293
for i, entry in enumerate(self.trace_entries):
294294
session_id = str(entry.chat_id) if entry.parent_chat_id == -1 else str(entry.parent_chat_id)
295-
prefered_worker_id = hash(session_id)
296-
yield LazyLoadInferenceAPIData(data_index=i, prefered_worker_id=prefered_worker_id)
295+
preferred_worker_id = hash(session_id)
296+
yield LazyLoadInferenceAPIData(data_index=i, preferred_worker_id=prefered_worker_id)
297297

298298
def load_lazy_data(self, data: LazyLoadInferenceAPIData) -> InferenceAPIData:
299299
entry = self.trace_entries[data.data_index]
@@ -323,7 +323,7 @@ def is_io_distribution_supported(self) -> bool:
323323
def is_shared_prefix_supported(self) -> bool:
324324
return True
325325

326-
def is_prefered_worker_requested(self) -> bool:
326+
def is_preferred_worker_requested(self) -> bool:
327327
return True
328328

329329

0 commit comments

Comments
 (0)