Repository navigation
A local model's download resumes where it stopped, instead of starting over - #189
Merged
Merged
Conversation
…g over On Windows (11-18) SAO's setup failed 110 MB into the 1.4 GB DiT graph: curl's error 56 (schannel: server closed abruptly), which --retry doesn't retry, and fetch() threw the .part away, so every rerun began again from zero. Now the .part is kept across tries and runs and resumed (curl -C -, or a Range request in the urllib fallback), with up to 8 tries a run; a file already whole (416) counts as done, and the SHA-256 check still runs on the finished file. Tested against Hugging Face with t5-base's tokenizer.json, on the Mac and on Windows, curl and urllib: a 300 KB head resumed to the whole file (SHA-256 matching), and a second call on the whole file left it as it was.
rosaldo
pushed a commit
to rosaldo/raea
that referenced
this pull request
Nov 19, 2026
…first time one needs it
On Windows raea's own decoders read H.264 without B-frames (openh264) and AV1, not what phones and cameras write:
H.264 with B-frames, HEVC, VP9. With no FFmpeg installed (as on nearly every Windows PC), raea media probe, raea
check and a render's <Video> refused such a clip ("no picture or sound raea can read"). Found testing 0.1.8-rc6's
raea.exe on Windows with orbit.mp4 (H.264 High, B-frames).
- raea_io_assets::ffmpeg_tool: ffmpeg or ffprobe from the PATH, else raea's own in $RAEA_TOOLS_CACHE/ffmpeg/bin.
On Windows raea's own is fetched there once: GyanD's essentials build 9.0.2 (the one winget's
Gyan.FFmpeg.Essentials installs) from its GitHub release, 114 MB, checked against GitHub's SHA-256 digest
for it, unpacked by Windows' tar (ffmpeg.exe, ffprobe.exe and the LICENSE, ~210 MB). Nothing is bundled.
Off Windows the error names the package manager's command.
- The fetch shares uv's code (fetch_archive, from fetch_uv), which now resumes across curl's tries
(-C - --retry-all-errors, as shinyobjectz#189 does for the models).
- The ffmpeg backend runs that binary everywhere. Only opening a file named as a video fetches; sound,
encoding and asking what FFmpeg can do never do, so a silent clip tried on every backend, or an mp3, never
downloads 114 MB.
- raea-app-media opens a video through every backend in order (raea_io_media::preferred), as renders already
did, instead of the platform's alone: media probe, the change and picture commands, and raea check's
native reader. probe's refusal now says what each backend said.
Checked on the Mac with no FFmpeg on PATH and the portable backend first: B-frame H.264 and HEVC probe
through VideoToolbox (they were refused before), and VP9 is refused with each backend's reason, ending in the
install line; VP9 probes once FFmpeg is on PATH. The zip's layout and extraction were checked with bsdtar.
The Windows fetch itself is proved on the release's raea.exe on Windows. Tests: raea-io-assets, raea-io-ffmpeg,
raea-app-media and raea-app-check-read (parity against FFmpeg) pass.
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.
Found while testing #188 on Windows: SAO's setup failed 110 MB into the 1.4 GB DiT graph with curl's error 56 (
schannel: server closed abruptly).--retrydoesn't retry that error, andfetch()deleted the.part, so every rerun of a 2 GB install started again from zero. On a flaky connection, that install might never finish..partis now kept across tries and runs, and resumed:curl -C -, or a Range request in the urllib fallback.Tested against Hugging Face with t5-base's
tokenizer.json, on the Mac (curl 8.7) and on Windows (curl 8.21), through both curl and urllib: a 300 KB head resumed to the whole file with a matching SHA-256, and a second call on the whole file left it unchanged. A live check is running on Windows: SAO's setup rerun on the 110 MB.partthat the failure left. Gates pass: size, dupes, layers, names, one-version, no-void, taxonomy andrask check.🤖 Generated with Claude Code