Repository navigation
Conversation
## Summary Rebased onto the external Skippy dependency (#3193). The Skippy half of this PR, the ARM64 CPU runtime and its packaging checks, now lives in Mesh-LLM/skippy#248. What is left here is the host. `scripts\build-windows.ps1 -TargetArch arm64` builds `mesh-llm` for `aarch64-pc-windows-msvc`, cross-compiling from an x64 machine or natively on Windows on ARM, where it is the default. - **MSVC environment**: arm64 imports `vcvarsall amd64_arm64` (or `arm64` on an ARM64 machine) and checks that `VSCMD_ARG_TGT_ARCH` really is `arm64`. An x64 build re-imports `vcvars64` when the shell was left targeting another architecture, since `cl`, `link` and `lib` are then on `PATH` but build for ARM64. - **clang**: Visual Studio's clang goes on `PATH` for the `ring` crate, which compiles its aarch64 assembly with it. - **cargo** gets `--target aarch64-pc-windows-msvc`, so the host lands in `target\aarch64-pc-windows-msvc\<profile>`. - The root `scripts\build-windows.ps1` forwards `-TargetArch`, and CONTRIBUTING.md documents the command and the two Visual Studio components it needs. This PR builds on #3241 and uses its published Skippy v0.80.6 Windows ARM64 CPU runtime. The installer, updater, and release workflow select the native ARM64 package. Pinned CI includes a Windows ARM64 runtime-download and inference smoke. ## Testing On an x64 Windows 11 machine (Visual Studio 2022 Build Tools with the ARM64 tools and Clang components, Rust `aarch64-pc-windows-msvc` target), from this branch: - `scripts\build-windows.ps1 -TargetArch arm64` cross-compiles the host in 3.5 minutes; `target\aarch64-pc-windows-msvc\debug\mesh-llm.exe` is PE machine `0xAA64` (159.8 MB). - `scripts\build-windows.ps1` without `-TargetArch` still builds the x64 host (`0x8664`, 176.2 MB). - Both in one PowerShell session, ARM64 first: the ARM64 run leaves `VSCMD_ARG_TGT_ARCH=arm64` and the ARM64 `cl` on `PATH`, the x64 run then says it re-imports vcvars64, and the hosts are `0xAA64` and `0x8664`. Native Windows ARM64 validation runs in pinned CI. Local PowerShell tests verified architecture selection for native builds and cross-builds. The package selector identified the published ARM64 executable from its PE header. One thing I hit on that machine, unrelated to this change: the repository's `.cargo/config.toml` sets `rustc-wrapper = "sccache"`, so `build-windows.ps1` fails with "program not found" where sccache isn't installed. I removed that line locally for these builds. --------- Co-authored-by: James Dumay <james@generalinference.xyz>
Co-authored-by: sol <6e6f9f687497a486f887a40f1270381aaca718090781f25867159edd4f553f49@meshllm.communities.buzz.xyz>
…ay for every plugin (#3066) Node-minted deterministic exchange ids per dispatch, the client request id kept separate, and served-dispatch reporting (served_exchange_id / served_attempt / served_target_peer_id) on the lifecycle terminal and raw-proxy/remote-mesh terminals. Reviewed at 35931b9; CI green at head.
Use the Windows host build target and profile to stage the verified Skippy runtime. Exercise adjacent runtime discovery with an empty cache in ARM64 CI. Keep explicit Hugging Face drafts portable across split stages, repair corrupt cached copies after verification, and preserve direct V17 withdrawals against stale gossip. Co-authored-by: sol <6e6f9f687497a486f887a40f1270381aaca718090781f25867159edd4f553f49@meshllm.communities.buzz.xyz>
Align raw-proxy and remote-mesh terminal events with exchange_finished when a response starts successfully and the stream is interrupted. Serving provenance requires a completed response. Co-authored-by: sol <6e6f9f687497a486f887a40f1270381aaca718090781f25867159edd4f553f49@meshllm.communities.buzz.xyz>
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Contributor
|
This pull request is currently a draft. Reviews will not take place until the PR is marked as ready for review. |
This branch has not been deployed
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.
Original problem
Mesh model downloads use the Hugging Face client shipped by Skippy. The current pin predates the upstream changes that interpret
Retry-Afteron Hub throttling and service-unavailable responses.Diagnostics
Mesh resolves its direct
hf_hubalias and Skippy’s own acquisition dependencies to oneskippy-hf-hubcrate. A loopback test exercises Mesh’s model asset cache path with an HTTP 503 and a server-requested delay outside the retry budget. It expects the original status, a single request, and an empty cache.Mesh main still expects Skippy stage protocol generation 17. This draft is stacked on Mesh PR #3241, which moves the host to generation 18.
Fix
Test Mesh against the upgraded client in Skippy PR #278 using the existing CI override. Once Skippy publishes a release containing that PR, update the exact Skippy crate versions in
Cargo.tomlandCargo.locktogether with the matching native source commit inscripts/skippy-pin.sh. Remove the override and rerun pinned CI before marking this draft ready.Skippy-Ref: pull/278
Validation
scripts/skippy-source.sh <Skippy checkout>verified that the local candidate resolves all Skippy crates from the selected checkout.cargo fmt --all --checkandcargo check --locked -p mesh-llm-host-runtime -p mesh-llmpassed on the stacked branch using the local override.cargo clippy --locked -p mesh-llm-host-runtime -p mesh-llm --all-targets -- -D warningspassed against the local override.cargo test --locked -p mesh-llm-host-runtime --lib asset_download_stops_when_hub_retry_after_exceeds_budgetpassed against the local override.The Cargo commands ran through Just on Apple Silicon macOS. Pinned release and native smoke validation remain pending.
I ran the relevant local checks, or explained why they do not apply.
UI changes include screenshots or video, or explain why visual aids are not needed. This change exercises the model asset download path without changing the UI.