Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion vmoe/checkpoints/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def _parse_step_and_suffix_or_error(filepath):
sorted(steps_and_suffixes - incomplete_steps_and_suffixes,
reverse=decreasing),
lambda x: x[0]):
if not suffixes.difference(set(x[1] for x in group)): # pyrefly: ignore[missing-attribute]
if not suffixes.difference(set(x[1] for x in group)):
yield step


Expand Down
2 changes: 1 addition & 1 deletion vmoe/train/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def frozen_fn(params: optax.Params) -> PyTree:
flatparams = flax.traverse_util.flatten_dict(
flax.serialization.to_state_dict(params), sep='/')
output = {
key: search_true if pattern.search(key) else search_false # pyrefly: ignore[missing-attribute]
key: search_true if pattern.search(key) else search_false
for key, value in flatparams.items()
}
return flax.serialization.from_state_dict(
Expand Down