Skip to content

Adopt Skippy’s updated Hugging Face client - #3247

Draft
i386 wants to merge 9 commits into
mainfrom
chore/adopt-skippy-hf-hub
Draft

i386 wants to merge 9 commits into
mainfrom
chore/adopt-skippy-hf-hub

Conversation

@i386

@i386 i386 commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Original problem

Mesh model downloads use the Hugging Face client shipped by Skippy. The current pin predates the upstream changes that interpret Retry-After on Hub throttling and service-unavailable responses.

Diagnostics

Mesh resolves its direct hf_hub alias and Skippy’s own acquisition dependencies to one skippy-hf-hub crate. 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.toml and Cargo.lock together with the matching native source commit in scripts/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 --check and cargo check --locked -p mesh-llm-host-runtime -p mesh-llm passed on the stacked branch using the local override.

  • cargo clippy --locked -p mesh-llm-host-runtime -p mesh-llm --all-targets -- -D warnings passed against the local override.

  • cargo test --locked -p mesh-llm-host-runtime --lib asset_download_stops_when_hub_retry_after_exceeds_budget passed 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.

i386 and others added 9 commits November 30, 2026 07:51
## 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>
@coderabbitai

coderabbitai Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

This pull request is currently a draft. Reviews will not take place until the PR is marked as ready for review.

Base automatically changed from build/skippy-0.80.6 to main December 1, 2026 01:34

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants