Revert "[CPU]Update CPU PyTorch to 2.9.0 (#29589)" (#29647)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung
2025-11-28 14:43:18 +08:00
committed by GitHub
parent f4b76056ee
commit b34e8775a3
4 changed files with 12 additions and 8 deletions

View File

@@ -1123,14 +1123,14 @@ class Qwen3LLMModel(Qwen3Model):
assert intermediate_tensors is not None
hidden_states = intermediate_tensors["hidden_states"]
residual = intermediate_tensors["residual"]
aux_hidden_states = []
for layer_idx, layer in islice(
enumerate(self.layers), self.start_layer, self.end_layer
):
if layer_idx in self.aux_hidden_state_layers:
aux_hidden_states.append(hidden_states + residual)
hidden_states, residual = layer(
positions,
hidden_states,