Skip to content

fix(jittor): use native checkpoints in NAS example - #97

Open
moriyaya wants to merge 1 commit into
boat_jitfrom
fix/jittor-native-nas-checkpoints
Open

fix(jittor): use native checkpoints in NAS example#97
moriyaya wants to merge 1 commit into
boat_jitfrom
fix/jittor-native-nas-checkpoints

Conversation

@moriyaya

Copy link
Copy Markdown
Collaborator

Summary

  • save NAS checkpoints in Jittor-native .pkl format;
  • remove the duplicate per-epoch save;
  • keep checkpoint loading compatible with jt.load.

Rationale

Using a .pt filename selects Jittor's PyTorch-format serializer, which imports PyTorch. A clean BOAT-jit environment therefore completes NAS training but fails while saving the checkpoint. Native .pkl serialization removes this unintended dependency.

Validation

  • syntax-checked the modified NAS Python files;
  • confirmed that the epoch loop has one weights.pkl save and that checkpoint helper filenames use .pkl;
  • Jittor was unavailable in the local environment, so the native save/load round-trip and CUDA NAS run were not executed;
  • confirmed that the PR contains no unrelated changes.

@callous-youth
callous-youth marked this pull request as ready for review August 15, 2026 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant