makepad/tools/qwen38/dl_start.ps1
Admin 384d0e031c tools: the Builder replaces makepad_loader, the web server moves to makepad/webserver, fleet scripts, docs and the workspace members
tools/makepad_builder replaces tools/makepad_loader: one build target
shared across app builds, workspace package selection, checkout
progress on the public Git API, detached built apps with a completion
state, waits for Windows security scans, manual retry after compiler
locks, dedicated-folder installer checks, catalog and runtime fixes.
tools/web_server and its scripts leave for github.com/makepad/webserver.
Arch USB clone/restore scripts, the qwen38 box scripts and the G-belt
serial test join tools/. docs/agents records the agent workflow and the
remote-control handoff protocol; AGENTS.md forbids vendored sources and
bulk imports. Cargo.toml lists apps/wm-dyn, libs/code_language,
libs/search, libs/tar, libs/loader_bundle and tools/makepad_builder,
and drops the two removed crates.

Squashed from work:
- Share Builder target across Makepad app builds
- Fix Builder workspace package selection
- Align Builder checkout progress with public Git API
- Detach built apps and show completion state
- Wait for Windows security scans
- Offer manual retry after Windows compiler locks
- docs: the agent workflow of record and the remote-control handoff protocol
- builder: dedicated-folder installer checks, catalog and runtime fixes; Windows job objects hold c_void handles
- tools: Arch USB clone/restore scripts, the qwen38 box scripts, and the G-belt serial test
- tools: the web server moves to makepad/webserver
- AGENTS.md: no vendored sources or bulk imports in the tree

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-18 12:17:59 +02:00

21 lines
954 B
PowerShell

# Start detached download of Qwen/Qwen3.8-27B @ pinned revision to C:\ai\models\qwen38\hf
$ErrorActionPreference = 'Stop'
New-Item -ItemType Directory -Force -Path C:\ai\models\qwen38 | Out-Null
$py = @'
import os, time
os.environ["HF_HUB_DISABLE_SYMLINKS"] = "1"
from huggingface_hub import snapshot_download
t0 = time.time()
p = snapshot_download(
repo_id="Qwen/Qwen3.8-27B",
revision="1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c0",
local_dir=r"C:\ai\models\qwen38\hf",
max_workers=8,
)
print("SNAPSHOT_DONE", p, "secs", round(time.time() - t0, 1), flush=True)
'@
Set-Content -Path C:\ai\models\qwen38\dl.py -Value $py -Encoding UTF8
# WMI-detached so it survives tunnel teardown
$cmd = 'cmd /c "python C:\ai\models\qwen38\dl.py >> C:\ai\models\qwen38\dl.log 2>&1"'
$r = Invoke-CimMethod -ClassName Win32_Process -MethodName Create -Arguments @{ CommandLine = $cmd }
Write-Output ("DL_LAUNCH pid=" + $r.ProcessId + " rc=" + $r.ReturnValue)