Skip to content

fix: pin patched ModelExpress in frontend workspace - #35

Merged
rushilbhat merged 1 commit into
mainfrom
fix/pin-frontend-modelexpress
Jul 14, 2026
Merged

fix: pin patched ModelExpress in frontend workspace#35
rushilbhat merged 1 commit into
mainfrom
fix/pin-frontend-modelexpress

Conversation

@rushilbhat

Copy link
Copy Markdown

Summary

  • mirror the patched modelexpress-client and modelexpress-common pins into the standalone frontend Python-binding Cargo workspace
  • update the frontend workspace lockfile to resolve both crates from rushilbhat/modelexpress at 46e4633a33a9a9183bda97ee5bb3411dd4992d7c

Why

lib/bindings/python declares its own Cargo workspace, so it does not inherit [patch.crates-io] from the repository root. The frontend image build runs maturin build from that workspace and was therefore still compiling the crates.io ModelExpress 0.3.0 release. That left the Hugging Face missing-Content-Range failure in the new frontend image and prevented discovered models such as GLM 5.2 from being registered.

This mirrors the root pins into the workspace that actually produces the frontend Rust extension. The fork is based on ModelExpress v0.3.0 and backports ai-dynamo/modelexpress#467.

Validation

  • cargo tree --manifest-path lib/bindings/python/Cargo.toml --locked -i modelexpress-common
  • cargo tree --manifest-path lib/bindings/python/Cargo.toml --locked -i modelexpress-client
  • cargo check --manifest-path lib/bindings/python/Cargo.toml --locked

Both dependency-tree checks resolve to fork commit 46e4633a, and the frontend workspace check passes.

Copilot AI review requested due to automatic review settings July 14, 2026 17:59
@github-actions github-actions Bot added the fix label Jul 14, 2026
@rushilbhat
rushilbhat merged commit 711161e into main Jul 14, 2026
19 of 21 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR ensures the standalone lib/bindings/python Cargo workspace (used by the frontend image’s maturin build) applies the same patched ModelExpress crates as the repository root, so the Rust extension no longer builds against the crates.io modelexpress-* 0.3.0 release.

Changes:

  • Add [patch.crates-io] overrides in lib/bindings/python/Cargo.toml for modelexpress-client and modelexpress-common, pinned to rushilbhat/modelexpress@46e4633a….
  • Update lib/bindings/python/Cargo.lock so both ModelExpress crates resolve from the pinned git source (and capture the resulting transitive resolution).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
lib/bindings/python/Cargo.toml Mirrors root workspace patches by pinning modelexpress-client/common to the patched git revision.
lib/bindings/python/Cargo.lock Records the new git-sourced resolution for the ModelExpress crates and updated transitive dependency graph.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 104 to +108
[patch.crates-io]
llm-multimodal = { git = "https://github.com/lightseekorg/smg", rev = "e3eccacf96bc6e041a7ec6623e2251dba1129f28" }
llm-tokenizer = { git = "https://github.com/lightseekorg/smg", rev = "e3eccacf96bc6e041a7ec6623e2251dba1129f28" }

# Backport ai-dynamo/modelexpress#467 to v0.3.0 until an upstream release includes it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants