Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:
  • Loading branch information
larryliu0820 committed Nov 25, 2024
1 parent 9a1f4d9 commit 1a9bf51
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions torchtune/modules/_export/_position_embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,9 @@ def _load_state_dict_hook(
)

# update state dict
state_dict[prefix + "local_token_positional_embedding"] = (
inpt_local_pos_embed
)
state_dict[
prefix + "local_token_positional_embedding"
] = inpt_local_pos_embed
if (
inpt_local_pos_embed.shape
!= self.local_token_positional_embedding.shape
Expand Down Expand Up @@ -418,9 +418,9 @@ def _load_state_dict_hook(
)

# update state dict
state_dict[prefix + "global_token_positional_embedding"] = (
inpt_global_pos_embed
)
state_dict[
prefix + "global_token_positional_embedding"
] = inpt_global_pos_embed
if (
inpt_global_pos_embed.shape
!= self.global_token_positional_embedding.shape
Expand Down

0 comments on commit 1a9bf51

Please sign in to comment.