Repository navigation
CI: share the Qwen3.5-2B tool-calling GGUF cache across Linux, macOS and Windows - #8069
Merged
Merged
Conversation
…and Windows
The Linux, macOS and Windows tool-calling phases download the same file
from the same repo into the same flat --local-dir layout, but the Linux
job used path gguf-cache while the other two used gguf-cache-tools, and
runner.os split the key three ways. Rename the Linux directory to match,
drop runner.os, and set enableCrossOsArchive.
The key goes v1/v2 -> v3 in the same commit as the path move: an entry is
identified by key AND a hash of path, so moving one without the other is
a permanent restore miss plus a refused save.
One-time cost: the first main run after merge re-downloads 1.22 GiB on
each of the three runners. Steady state drops from three copies to one.
Also require hashFiles('gguf-cache-tools/**/*.gguf') != '' before saving:
a shared key means a bad save now poisons three OSes, not one.
This was referenced Aug 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The same consolidation as #8068, applied to the second cache family that is genuinely
duplicated across OSes: the
Qwen3.5-2B-UD-Q4_K_XL.gguftool-calling model.Three jobs download the same file from the same repo into the same flat
--local-dirlayout:studio-inference-smoke/ tool-callinggguf-cacheLinux-gguf-...-v1studio-mac-inference-smoke/ phase 2gguf-cache-toolsmacOS-gguf-...-v2studio-windows-inference-smoke/ phase 2gguf-cache-toolsWindows-gguf-...-v2Two things had to change together: the Linux job moves to
gguf-cache-tools, and all threeconverge on one key with no
runner.os,gguf-unsloth/Qwen3.5-2B-GGUF-Qwen3.5-2B-UD-Q4_K_XL.gguf-v3,plus
enableCrossOsArchive: true.The path and the key must move in the same commit
actions/cacheidentifies an entry by the key and by a version hash derived from thepathinput, while key uniqueness is global per ref. Changepathwhile leaving the key andyou get a permanent restore miss (version mismatch) plus a refused save
("Unable to reserve cache with key ... another job may be creating this cache") - the model
then re-downloads on every run, forever. This was measured on staging during the Mac phase
consolidation: two consecutive runs both logged "Cache not found for input keys" and both
failed to save. That is why the suffix goes to
v3here.The stale comments in the mac and Windows workflows that described the old
v1 -> v2bump arerewritten to describe the current state.
Evidence
The flat
--local-dirpayload is byte-identical on all three runners. Probe inventory ofhf download unsloth/gemma-3-270m-it-GGUF <file> --local-dironubuntu-latest,macos-15and
windows-latest(the mechanism is per-directory, not per-model):WIN_NAME_PROBLEMS=0,CASE_COLLISIONS=0,SYMLINKS=0on all three: nothing in this layoutis OS-specific in a way that matters. Only the model file is read back.
Cross-OS restore proven end to end on
https://github.com/danielhanchen/unsloth-staging-2/actions/runs/31141007275, including this
exact flat layout:
Cache restored from key: xosprobe-g1-flatCache not found for input keysenableCrossOsArchive: true:Cache restored from key: xosprobe-g1-flatxenableCrossOsArchive: true:Cache restored from key: xosprobe-g1-winsaveIn every hit the restored
.ggufhad the same sha256 as the one the saving OS wrote.Cost
This is the expensive one and it should be merged with eyes open. The path move makes the new
key genuinely cold on every OS, so the first
mainrun after merge re-downloads 1.22 GiBper runner, three times total, before any of them can save. On the runners I measured that is
roughly 15-25 s of download plus one save; the Linux job in
studio-inference-smokewillnormally win the race and seed the entry for the other two.
Steady state after that: one 1.22 GiB entry instead of three, and the macOS and Windows phases
restore from whatever Linux seeded rather than each maintaining their own copy. macOS is the
slowest at cache I/O of the three (46-63 MB/s restore versus 89 on Windows and 127 on Linux in
the probe), so moving it from "maintains its own entry" to "consumes Linux's" is a small win
for it too.
If the one-time 3.66 GiB of downloads is unwelcome right now, this PR can wait; #8068 is the
cheap half of the same idea (no path change, 254 MiB per OS) and stands alone.
Also in this change
The Linux and Windows saves gain
hashFiles('gguf-cache-tools/**/*.gguf') != '', matching theguard the mac workflow already had. A shared key means one bad save would poison three OSes.