Repository navigation
Conversation
safetensors 0.8 returns `&str` from `SafeTensors::names()`, so the `name.as_str()` left in the Youtu-VL runtime hit the unstable `str_as_str` library feature and broke `cargo check --features cuda,xla-iree`, the OpenXLA feature compile job on #2819. That code needs `IREE_DIST` and could not compile locally, so this fix relies on the CI job. The XLA features are not part of the v0.8.0 release builds, which use `--features cuda` and the macOS defaults. Refs #2819
This was referenced Nov 1, 2026
inureyes
added a commit
that referenced
this pull request
Nov 2, 2026
safetensors 0.8 returns `&str` from `SafeTensors::names()`, so the `name.as_str()` left in the Youtu-VL runtime resolved to the unstable `str_as_str` library feature and broke `cargo check --features cuda,xla-iree`, the first of the OpenXLA job's two steps. `required` is a `BTreeSet<&str>`, so it takes the borrowed name directly.
The second step, `xla-diagnostics`, then failed on four `format!("{:x}", Sha256::digest(..))` sites: sha2 0.11 returns a `hybrid_array::Array` that no longer implements `LowerHex`. Three are reachable in that job (Gemma3n diagnostics, the Molmo diagnostics support module) and one sits behind `xla-reference-diagnostics`, which CI does not compile; all now call the `sha256_hex` helper #2819 added for exactly this reason.
Validation: `cargo check --features cuda,xla-iree --all-targets`, `cargo check --no-default-features --features xla-diagnostics --all-targets`, and `cargo check --features xla-reference-diagnostics --all-targets` against the provisioned IREE runtime on spark-102, all exit 0.
Closes #2820
inureyes
added a commit
to daemyung-lablup/mlxcel
that referenced
this pull request
Nov 2, 2026
…ablup#2837) safetensors 0.8 returns `&str` from `SafeTensors::names()`, so the `name.as_str()` left in the Youtu-VL runtime resolved to the unstable `str_as_str` library feature and broke `cargo check --features cuda,xla-iree`, the first of the OpenXLA job's two steps. `required` is a `BTreeSet<&str>`, so it takes the borrowed name directly. The second step, `xla-diagnostics`, then failed on four `format!("{:x}", Sha256::digest(..))` sites: sha2 0.11 returns a `hybrid_array::Array` that no longer implements `LowerHex`. Three are reachable in that job (Gemma3n diagnostics, the Molmo diagnostics support module) and one sits behind `xla-reference-diagnostics`, which CI does not compile; all now call the `sha256_hex` helper lablup#2819 added for exactly this reason. Validation: `cargo check --features cuda,xla-iree --all-targets`, `cargo check --no-default-features --features xla-diagnostics --all-targets`, and `cargo check --features xla-reference-diagnostics --all-targets` against the provisioned IREE runtime on spark-102, all exit 0. Closes lablup#2820
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.
safetensors 0.8 returns
&strfromSafeTensors::names(), so thename.as_str()left in the Youtu-VL runtime hit the unstablestr_as_strlibrary feature and brokecargo check --features cuda,xla-iree, the OpenXLA feature compile job on #2819. That code needsIREE_DISTand could not compile locally, so this fix relies on the CI job.The XLA features are not part of the v0.8.0 release builds, which use
--features cudaand the macOS defaults.Refs #2819
Update
With the
str_as_strerror gone, the same job'sxla-diagnosticsstep failed on fourformat!("{:x}", Sha256::digest(..))sites, because sha2 0.11 returns ahybrid_array::ArraywithoutLowerHex: one insrc/models/gemma3n.rsand three insrc/multimodal/host_preprocessor_molmo_diagnostics_support.rs. A fifth copy insrc/loading/vlm_gemma_xla_tests.rssits behindxla-reference-diagnostics, which the job does not compile. PR #2837 routes all of them through the existingsha256_hexhelper.