Skip to content

Commit 97a8a89

Browse files
authored
Fix unpending unbacked symbols from torch.cond (#7073)
1 parent aadf2ee commit 97a8a89

File tree

1 file changed

+1
-0
lines changed
  • examples/models/llama3_2_vision/text_decoder

1 file changed

+1
-0
lines changed

examples/models/llama3_2_vision/text_decoder/model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ def __init__(self, **kwargs):
108108
rope_base=params["rope_theta"],
109109
intermediate_dim=params["intermediate_dim"],
110110
)
111+
self.model_.requires_grad_(False)
111112

112113
# Source transformation for MultiHeadAttention
113114
self.model_ = replace_mha_with_inference_mha(self.model_)

0 commit comments

Comments
 (0)