Repository navigation
Drop verbose torchcodec rationale comment from install cells - #260
Merged
Merged
Conversation
…o install cells The two-line ABI-mismatch explanation that #259 added inside the install templates ends up rendered into every regenerated install cell. The pin itself is self-documenting, so drop the comment and let update_all_notebooks.py regenerate cleaner cells across the qwen3_5, nemotron_nano and granite4 families plus their python_scripts mirrors.
Contributor
There was a problem hiding this comment.
Code Review
This pull request removes explanatory comments regarding the pinning of torchcodec versions (0.6.0 and 0.7.0) across numerous Jupyter notebooks, exported Python scripts, and the update_all_notebooks.py utility. The modifications consistently eliminate the text describing ABI mismatches and specific version requirements for torchcodec when downgrading torch. I have no feedback to provide.
4 tasks
danielhanchen
added a commit
that referenced
this pull request
Apr 29, 2026
#261) Two leftover bugs after #259 / #260: 1. installation_nemotron_nano_content pins torch==2.7.1 but #259 set torchcodec==0.6.0. Per pytorch/torchcodec's compatibility table 0.6 targets torch 2.8, not 2.7; the right pin for torch 2.7 is torchcodec==0.5 (also covered by 0.4 / 0.3). The 0.6 wheel still ABI-mismatches against torch 2.7.1 the same way 0.10 did, so the nemotron and granite4 notebooks would still hit the libtorchcodec undefined-symbol error on Colab. Switch to torchcodec==0.5 (cp312 manylinux wheel exists). 2. installation_qwen3_5_content, installation_nemotron_nano_content and installation_gpt_oss_content all install bare "tokenizers" (no constraint), but the transformers versions they pair with declare a hard tokenizers<=0.23.0,>=0.22.0: transformers 4.56.2: tokenizers<=0.23.0,>=0.22.0 transformers 5.2.0: tokenizers<=0.23.0,>=0.22.0 PyPI's current latest tokenizers is 0.23.1, which is outside that range. Bare "tokenizers" pulls 0.23.1 into a transformers install that was never tested against it. The live notebooks already carry the constraint string "tokenizers>=0.22.0,<=0.23.0"; the templates were the drifted side. Sync templates to match. Generated artifacts updated via update_all_notebooks.py.
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.
Summary
installation_qwen3_5_contentandinstallation_nemotron_nano_content, then regenerate the qwen3_5 / nemotron_nano / granite4 notebooks and their python_scripts mirrors viaupdate_all_notebooks.py.Diff shape
29 files:
update_all_notebooks.py(-4 comment lines), 14nb/*.ipynb, 14python_scripts/*.py. No semantic change to any install behavior.