Commit c60c26b
fix: export OptionalDataPath, fix load() path, make huggingface-hub optional
- Export OptionalDataPath from __init__
- Pass path to from_state_dict in load() so DataPaths resolve correctly
- Push var_path for dict keys and list indices during serialization
- Move huggingface-hub to optional dependency (huggingface extra)
- Guard import in huggingface.py with helpful error message
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 2b699c7 commit c60c26b
1 file changed
Lines changed: 3 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 36 | | |
41 | 37 | | |
42 | 38 | | |
| |||
57 | 53 | | |
58 | 54 | | |
59 | 55 | | |
60 | | - | |
61 | 56 | | |
62 | 57 | | |
63 | 58 | | |
64 | 59 | | |
65 | 60 | | |
66 | 61 | | |
67 | 62 | | |
68 | | - | |
69 | | - | |
70 | 63 | | |
71 | 64 | | |
72 | 65 | | |
| |||
93 | 86 | | |
94 | 87 | | |
95 | 88 | | |
96 | | - | |
| 89 | + | |
97 | 90 | | |
98 | 91 | | |
99 | 92 | | |
| |||
0 commit comments