Skip to content

Commit d4a849a

Browse files
h-joocopybara-github
authored andcommitted
No public description
PiperOrigin-RevId: 959730466
1 parent 1030c71 commit d4a849a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

vmoe/checkpoints/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def _parse_step_and_suffix_or_error(filepath):
118118
sorted(steps_and_suffixes - incomplete_steps_and_suffixes,
119119
reverse=decreasing),
120120
lambda x: x[0]):
121-
if not suffixes.difference(set(x[1] for x in group)):
121+
if not suffixes.difference(set(x[1] for x in group)): # pyrefly: ignore[missing-attribute]
122122
yield step
123123

124124

vmoe/train/optimizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def frozen_fn(params: optax.Params) -> PyTree:
166166
flatparams = flax.traverse_util.flatten_dict(
167167
flax.serialization.to_state_dict(params), sep='/')
168168
output = {
169-
key: search_true if pattern.search(key) else search_false
169+
key: search_true if pattern.search(key) else search_false # pyrefly: ignore[missing-attribute]
170170
for key, value in flatparams.items()
171171
}
172172
return flax.serialization.from_state_dict(

0 commit comments

Comments
 (0)