[GH-ISSUE #4305] [Other] IQ3_S install stops in the MTP draft-layer fetch (57% of gate_up_proj) and every retry fails; the host's own fetch ignores the Windows proxy #1905

Closed
opened 2026-11-04 01:55:12 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @redfireblade on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4305

Area

[Other] (setup and installation)

Desktop app, Terminal or source?

Desktop app (Windows)

What happened

Installing Qwen3.8-Flash-Next IQ3_S (the 64 GB memory tier) on Windows 11: the two GGUF shards and the mmproj finished and their .done sha256 records are on disk, then the install stopped in the MTP draft-layer step and never recovered.

The draft layer is 31 mtp.* tensors, 5,214,301,696 bytes, read with HTTP Range requests from Qwen/Qwen3.8-Flash-Next at the pinned revision de4b8e4d43b917e7706784d8bb445c9af86a3540. It stopped inside the largest tensor:

mtp.layers.0.mlp.experts.gate_up_proj.bin   1,912,602,624 of 3,355,443,200 bytes  (57%)
  • Last write to that file: 18:31. Nothing wrote to it afterwards, and no mtp_fetch.py process was left running.
  • The partial file was kept, as documented, so each Retry resumed from 57% and ended the same way. The model never became installable, and setup.py never reached the steps that write the run config (strata-*.json does not exist).
  • Expected: the draft layer finishes downloading and the install continues; a download that fails is retried until it succeeds, the way the app's other downloads behave.

This PC reaches Hugging Face only through a local HTTP proxy that Windows is already configured with (ProxyEnable=1, ProxyServer=127.0.0.1:25599) and that the browser uses without any extra setting.

Smallest steps or command that reproduce it

  1. On a PC whose only route to Hugging Face / GitHub is a local proxy set in Windows Internet Settings, install Qwen3.8-Flash-Next IQ3_S from the desktop app with the draft layer (MTP) on.
  2. Let the install reach the MTP draft-layer step, tools/mtp_fetch.py fetch.
  3. When it stops, press Retry.

Reproduction status

Reproduced locally

Strata version

Strata 0.2.6 · Control 0.1.51 · engine 0.1.50 (windows-x86_64-hip-rdna3)

Graphics card, memory and system

AMD Radeon RX 7900 XTX 24 GB (gfx1100) · 64 GB RAM · Windows 11 (10.0.28000)

Model, size and settings

Qwen3.8-Flash-Next IQ3_S · MTP on · 64 GB memory tier · draft layer kept on

Logs

App log, the line that shows the same class of failure on the other download path:

[host] update · update-engine failed: https://github.com/Niko1221/Strata/releases/latest/download/strata-engine-0.1.50-windows-x86_64-hip-rdna3.tar.gz delivered 7125155 of 268379533 bytes; the partial file is kept and the next try resumes it

Network measurements from the same PC at the same time:

Request Result
https://huggingface.co/.../model-00060-of-00131.safetensors direct (curl, 20 s timeout) timeout, no response
the same URL through http://127.0.0.1:25599, Range: bytes=0-67108863 206, 64 MiB in 1.34 s (~50 MB/s)
Python urllib.request.getproxies() in the app's own interpreter {'http': 'http://127.0.0.1:25599', 'https': 'http://127.0.0.1:25599', ...} — so Python already resolves the Windows proxy
Node fetch() in host/server, no environment variables set TypeError: fetch failed
the same Node fetch() with NODE_USE_ENV_PROXY=1 at process start 200

Suspected cause (unconfirmed static analysis, not an observed failure)

I did not capture the error text mtp_fetch.py printed when it stopped, so this is what the code says rather than something I saw:

  • tools/mtp_fetch.py reads 16 ranges at once (STRATA_DL_CONNECTIONS, default 16) and every range needs its own CONNECT tunnel through the proxy. get() retries a range 6 times, and fetch() ends the whole tensor after 3 network failures with "the download keeps failing". Sixteen concurrent tunnels to one CDN host through a local proxy is where such a link is most likely to drop, and the largest tensor is the one that cannot absorb it.
  • The host's own fetch() has no proxy path at all: Node's fetch() ignores HTTP(S)_PROXY unless the process starts with NODE_USE_ENV_PROXY=1, and the desktop app does not set it. host/server/engine-install.mjs downloads through that fetch(), so anything the host fetches itself goes out directly regardless of the Windows setting. The update-engine line above is consistent with that, although that particular download is the Python updater.
  • exit_with_parent() ends the fetch when the process that started it ends, so a cancel or a restart mid-step leaves the partial file behind — matching what is on disk here.

Workaround that worked

Pointing the same tool at the mirror it already supports, then finishing the documented steps by hand:

STRATA_SOURCE=modelscope python tools/mtp_fetch.py fetch --out <data>/Strata/mtp
# 31/31 tensors, then `mtp_fetch.py verify` exits 0
python tools/mtp_pack.py --src <data>/Strata/mtp --experts q2_0 --out <data>/Strata/mtp/mtp-q2_0.gguf
python tools/mtp_rt.py --gguf <data>/Strata/mtp/mtp-q2_0.gguf --out <data>/Strata/mtp/rt

That finished in about a minute, with the same sha256 checks passing.

Suggestions

  • When the draft-layer fetch fails this many times from Hugging Face, fall back to --source modelscope automatically (the script already supports it and the tensors are checked against the pinned hashes) instead of ending the install.
  • Consider fewer concurrent ranges (or a smaller default on Windows) when the traffic goes through a proxy, and print the final error text into the app's log so a stalled install is diagnosable from Settings > Engine > Diagnostics.
  • Give the host's fetch() the same proxy support the Python side already gets from getproxies() — for example by starting the host with NODE_USE_ENV_PROXY=1 and the Windows proxy in the environment.
Originally created by @redfireblade on GitHub (Oct 27, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4305 ### Area [Other] (setup and installation) ### Desktop app, Terminal or source? Desktop app (Windows) ### What happened Installing **Qwen3.8-Flash-Next IQ3_S** (the 64 GB memory tier) on Windows 11: the two GGUF shards and the `mmproj` finished and their `.done` sha256 records are on disk, then the install stopped in the MTP draft-layer step and never recovered. The draft layer is 31 `mtp.*` tensors, 5,214,301,696 bytes, read with HTTP Range requests from `Qwen/Qwen3.8-Flash-Next` at the pinned revision `de4b8e4d43b917e7706784d8bb445c9af86a3540`. It stopped inside the largest tensor: ``` mtp.layers.0.mlp.experts.gate_up_proj.bin 1,912,602,624 of 3,355,443,200 bytes (57%) ``` - Last write to that file: 18:31. Nothing wrote to it afterwards, and no `mtp_fetch.py` process was left running. - The partial file was kept, as documented, so each Retry resumed from 57% and ended the same way. The model never became installable, and `setup.py` never reached the steps that write the run config (`strata-*.json` does not exist). - Expected: the draft layer finishes downloading and the install continues; a download that fails is retried until it succeeds, the way the app's other downloads behave. This PC reaches Hugging Face **only through a local HTTP proxy** that Windows is already configured with (`ProxyEnable=1`, `ProxyServer=127.0.0.1:25599`) and that the browser uses without any extra setting. ### Smallest steps or command that reproduce it 1. On a PC whose only route to Hugging Face / GitHub is a local proxy set in Windows Internet Settings, install `Qwen3.8-Flash-Next` `IQ3_S` from the desktop app with the draft layer (MTP) on. 2. Let the install reach the MTP draft-layer step, `tools/mtp_fetch.py fetch`. 3. When it stops, press Retry. ### Reproduction status Reproduced locally ### Strata version Strata 0.2.6 · Control 0.1.51 · engine 0.1.50 (windows-x86_64-hip-rdna3) ### Graphics card, memory and system AMD Radeon RX 7900 XTX 24 GB (gfx1100) · 64 GB RAM · Windows 11 (10.0.28000) ### Model, size and settings Qwen3.8-Flash-Next IQ3_S · MTP on · 64 GB memory tier · draft layer kept on ### Logs App log, the line that shows the same class of failure on the other download path: ``` [host] update · update-engine failed: https://github.com/Niko1221/Strata/releases/latest/download/strata-engine-0.1.50-windows-x86_64-hip-rdna3.tar.gz delivered 7125155 of 268379533 bytes; the partial file is kept and the next try resumes it ``` Network measurements from the same PC at the same time: | Request | Result | |---|---| | `https://huggingface.co/.../model-00060-of-00131.safetensors` direct (curl, 20 s timeout) | timeout, no response | | the same URL through `http://127.0.0.1:25599`, `Range: bytes=0-67108863` | `206`, 64 MiB in 1.34 s (~50 MB/s) | | Python `urllib.request.getproxies()` in the app's own interpreter | `{'http': 'http://127.0.0.1:25599', 'https': 'http://127.0.0.1:25599', ...}` — so Python already resolves the Windows proxy | | Node `fetch()` in `host/server`, no environment variables set | `TypeError: fetch failed` | | the same Node `fetch()` with `NODE_USE_ENV_PROXY=1` at process start | `200` | ### Suspected cause (unconfirmed static analysis, not an observed failure) I did not capture the error text `mtp_fetch.py` printed when it stopped, so this is what the code says rather than something I saw: - `tools/mtp_fetch.py` reads **16 ranges at once** (`STRATA_DL_CONNECTIONS`, default 16) and every range needs its own `CONNECT` tunnel through the proxy. `get()` retries a range 6 times, and `fetch()` ends the whole tensor after 3 network failures with `"the download keeps failing"`. Sixteen concurrent tunnels to one CDN host through a local proxy is where such a link is most likely to drop, and the largest tensor is the one that cannot absorb it. - The host's own `fetch()` has no proxy path at all: Node's `fetch()` ignores `HTTP(S)_PROXY` unless the process starts with `NODE_USE_ENV_PROXY=1`, and the desktop app does not set it. `host/server/engine-install.mjs` downloads through that `fetch()`, so anything the host fetches itself goes out directly regardless of the Windows setting. The `update-engine` line above is consistent with that, although that particular download is the Python updater. - `exit_with_parent()` ends the fetch when the process that started it ends, so a cancel or a restart mid-step leaves the partial file behind — matching what is on disk here. ### Workaround that worked Pointing the same tool at the mirror it already supports, then finishing the documented steps by hand: ``` STRATA_SOURCE=modelscope python tools/mtp_fetch.py fetch --out <data>/Strata/mtp # 31/31 tensors, then `mtp_fetch.py verify` exits 0 python tools/mtp_pack.py --src <data>/Strata/mtp --experts q2_0 --out <data>/Strata/mtp/mtp-q2_0.gguf python tools/mtp_rt.py --gguf <data>/Strata/mtp/mtp-q2_0.gguf --out <data>/Strata/mtp/rt ``` That finished in about a minute, with the same sha256 checks passing. ### Suggestions - When the draft-layer fetch fails this many times from Hugging Face, fall back to `--source modelscope` automatically (the script already supports it and the tensors are checked against the pinned hashes) instead of ending the install. - Consider fewer concurrent ranges (or a smaller default on Windows) when the traffic goes through a proxy, and print the final error text into the app's log so a stalled install is diagnosable from Settings > Engine > Diagnostics. - Give the host's `fetch()` the same proxy support the Python side already gets from `getproxies()` — for example by starting the host with `NODE_USE_ENV_PROXY=1` and the Windows proxy in the environment.
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thanks for taking the time to report this.

Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6660248289 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thanks for taking the time to report this. Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1905
No description provided.