Skip to content

Make EntroPack optional for existing MUSA installations - #1838

Open
arcing-mt wants to merge 1 commit into
modelscope:mainfrom
arcing-mt:fix/musa-install-deps
Open

arcing-mt wants to merge 1 commit into
modelscope:mainfrom
arcing-mt:fix/musa-install-deps

Conversation

@arcing-mt

@arcing-mt arcing-mt commented Nov 18, 2026 •

Copy link
Copy Markdown

Base installation currently pulls entropack>=0.1.7, which requires torch>=2.10. That conflicts with preinstalled MUSA torch 2.7.1 / 2.9.1 stacks: preserving the vendor torch version prevents resolution, while allowing replacement can lose the intended MUSA build.

Applicability and scope

This PR addresses dependency installation compatibility for an existing MUSA environment. Users must first obtain matching torch, torch_musa, and torchvision builds from their vendor image or distribution. This PR does not install the MUSA runtime/driver or establish compatibility for all optional packages.

This is an installation prerequisite for basic MUSA use. Runtime device adaptation is prepared separately on arcing-mt:fix/musa-runtime-compat; together these changes remain a minimal foundation for MUSA execution, rather than full support for every model or training configuration.

Changes — 3 files

  • pyproject.toml: move entropack>=0.1.7 from base dependencies into both quant and all extras.
  • English and Chinese Pipeline_Usage/Setup.md: place the MUSA section after Ascend NPU, describe reuse of the preinstalled framework stack, and explain version constraints/dry-run checks for audio and training extras.
  • Add a general installation note for EntroPack-dependent quantization and low-VRAM examples, including the CUDA 12/13 backend choice.

Effect on other environments

Making EntroPack optional changes base installation on all platforms, including CUDA. Users of examples that select entropack_* methods must install the matching backend explicitly, or use the applicable quantization extra. Those extras still retain EntroPack's torch>=2.10 requirement and are unsuitable for the older MUSA torch stacks discussed here.

The patch contains no device-runtime or model-code changes and does not guarantee that arbitrary future dependency versions or all extras preserve an installed vendor framework.

Validation and limits

In the existing torch 2.7.1.post1 MUSA environment, pip install --dry-run --no-build-isolation -e . resolved successfully. The report proposed only diffsynth 2.2.3 and the missing ftfy 6.3.1, with no replacement of torch or other installed packages. No packages were installed during validation.

Dependency metadata, the MUSA section order in both languages, and git diff --check passed. The torch 2.9.1 conflict follows from the dependency requirements and prior environment records; this revision was not installation-tested in that separate environment. Quantization functionality and every optional-extra combination were not validated.

Based directly on upstream main at fc8b4be5, independently of the runtime adaptation branch.

Related independent PR: #1837

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.

1 participant