Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def _patch_bridge_expert_cache_to_cpu():

_orig = GPTOSSBridge.maybe_modify_converted_hf_weight

def _patched(self, task, converted_weights_dict):
def _patched(self, task, converted_weights_dict, hf_state_dict=None):
cpu_dict = {k: v.cpu() for k, v in converted_weights_dict.items()}
result = _orig(self, task, cpu_dict)
result = _orig(self, task, cpu_dict, hf_state_dict)
# Move merged result back to GPU for CUDA IPC serialization
return {k: v.cuda() for k, v in result.items()} if result else result

Expand Down
Loading