Commit dd925a9
committed
Two more things only macOS and Windows could tell us
Ran the branch on macos-14 and windows-latest, which no workflow in this repo
does. Two failures, both in the tests rather than in saving_utils.
test_a_local_4bit_copy_still_merges_when_the_config_fetch_is_offline uses the same
`Outputs/MyModel` over an on-disk `outputs/mymodel` shape as its sibling file, and
for the same reason: that case difference is the only way to make
os.path.exists(name) miss while check_local_model_exists(name) hits. On APFS and
NTFS os.path.exists answers True, the local branch is taken, and the Hub round trip
never happens. macOS failed on the path comparison and Windows on `resolved[1] is
True`, which is the same cause wearing two symptoms. Probe and skip with the reason,
as the sibling now does.
test_a_local_base_still_merges_with_the_hub_down died in MPS:
RuntimeError: MPS backend out of memory (MPS allocated: 8.00 MiB, ... max
allowed: 7.93 GiB). Tried to allocate 256 bytes on shared pool.
Refusing 256 bytes with 7.93 GiB allowed is the macos-14 runner's virtualized MPS,
not this branch, and _active_merge_device prefers MPS on purpose. But it exposed a
claim in that file that was not true: the docstring said CPU-only while
set_offline_cpu_env only sets UNSLOTH_ALLOW_CPU, which permits CPU rather than
requiring it. On this box the merge math was running on cuda. These cells assert
control flow, whether the merge raises and whether it writes, so the device is
incidental and letting the host pick it makes the result depend on hardware the
assertions have no opinion about. Pinned to CPU and said so.
Verified the pin is real rather than decorative: _active_merge_device() answers
cuda here unpatched, and the merged tensors come back on cpu with the fixture.
Behavioral gate 564 passed, 2 skipped.1 parent cb49561 commit dd925a9
2 files changed
Lines changed: 45 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
82 | 104 | | |
83 | 105 | | |
84 | 106 | | |
| |||
284 | 306 | | |
285 | 307 | | |
286 | 308 | | |
| 309 | + | |
287 | 310 | | |
288 | 311 | | |
289 | 312 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
37 | 45 | | |
38 | 46 | | |
39 | 47 | | |
| |||
50 | 58 | | |
51 | 59 | | |
52 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
53 | 71 | | |
54 | 72 | | |
55 | 73 | | |
| |||
0 commit comments