Skip to content

Keep the Jev tutorial in the CUDA environment it verified - #4000

Merged
LauraGPT merged 1 commit into
mainfrom
codex/jev-single-environment-install
Dec 1, 2026
Merged

LauraGPT merged 1 commit into
mainfrom
codex/jev-single-environment-install

Conversation

@LauraGPT

@LauraGPT LauraGPT commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Run the Jev HF tutorial's CUDA check, editable installs and inference from one dedicated interpreter. The old instructions checked the caller and then invoked the pinned upstream setup utility to make a second environment. A standard venv does not inherit another venv's installed packages.

Observed on Shanghai Linux/Python 3.12: the caller imported matching PyTorch/TorchAudio 2.10.0+cu128 and saw one BF16-capable L20Z. The unmodified upstream venv creation step then selected system torch 2.8.0a0+5228986c39.nv25.6 and torchaudio 2.8.0a0+6e1c7fe. This test stopped before package installation.

Both tutorials now show a fresh CUDA 12.8 example plus a route for an already prepared dedicated venv. They verify that interpreter and FFmpeg before fetching source, then install both projects and the official HF requirements together with the existing torch/torchaudio versions pinned. No changes to inference, vLLM, weights, or package releases.

  • Real dedicated-env CUDA preflight passed. The system interpreter stopped before any fetch. All English and Chinese shell blocks passed Bash syntax checks and Python samples compiled.
  • A clean Linux CPython 3.12 dependency resolution with both official cu128 wheel URLs, both source projects, and the official HF requirements succeeded (110 entries including the two editable projects). This was resolution, not a fresh install or a new model-inference run.
  • Both new regressions failed against the original guides before passing on the candidate. Shanghai example-collection selection: 29 passed. Related multilingual entrypoint tests: 11 passed. CI now reruns the collection when either guide changes.

Prepared and verified with Codex assistance.

Keep the selected CUDA pair when installing the two source projects. Check the environment before fetching source.

Signed-off-by: LauraGPT <zhifu.gzf@alibaba-inc.com>
@LauraGPT
LauraGPT merged commit 90c75db into main Dec 1, 2026
5 checks passed
@LauraGPT

LauraGPT commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator Author

The merged tutorial now has an end-to-end installation check. In a fresh Python 3.12.3 venv with no system site packages, stock pip installed the CUDA 12.8 PyTorch/TorchAudio 2.10.0 pair, both editable source projects and the official HF dependencies. Installation used verified local distribution files; pip check passed.

On one L20Z, with networking disabled, the official instrument clip and pinned Tiny snapshot produced Choice: bass and a new decision.json. Calling the same official Jev revision directly in that venv matched the entire nested decision, including all ten probabilities.

For this fixture, check the answer key, the selected label and the candidate set. The previous software environment also selected bass, but individual probabilities differed by up to 0.0003571; do not use its JSON file hash as a cross-environment success criterion. This was one Tiny request, not a full-model test, accuracy estimate or PyPI release.

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