Pin kernels<0.13.0 in [cuda] extra to prevent huggingface-hub conflic… #126
All Vouch review confidence checks passed
Residual risk 0.32 = Change Risk (0.56) × (1 − Review Confidence (0.42)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.56 · 226 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 10%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.325
No Reviewer Assigned
no_reviewer_assigned
0.120
Real PR Conversation Timeline
1 comments
"Review active on #126"
general
weight: 0.35
gps23
Fixes #91
Root cause:
kernels>=0.13.0bumped itshuggingface-hubrequirement to>=1.10.0, which conflicts withtransformers>=4.57.6,<5.0's requirement ofhuggingface-hub<1.0. Whenkernelsis installed/upgraded independently (e.g. in a separatepip installstep aftertransformersis already resolved), pip doesn't re-validatetransformers' constraint, so you end up with a newerhuggingface-hubinstalled alongside oldtransformers— which fails transformers' own version guard at import time.Verification: Bisected the exact breaking version using Docker:
kernels==0.12.3+transformers==4.57.6→ imports finekernels==0.13.0+transformers==4.57.6→ImportError: huggingface-hub>=0.34.0,<1.0 is required for a normal functioning of this module, but found huggingface-hub==1.24.0.Note: a single-command
pip install kernels transformers(no version drift) naturally resolves to a compatiblekernelsversion, since pip's resolver considers both constraints together. The bug only surfaces whenkernelsis installed/upgraded in a separate step fromtransformers, which is training_hub's own install pattern (pip install training-hub[lora]thenpip install training-hub[cuda]).Fix: Capped
kernels<0.13.0in the[cuda]extra.<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
Chores
Updated the CUDA installation requirements to improve compatibility and stability.
CUDA setups now use
kernelsversions from 0.9.0 up to, but not including, 0.13.0.This helps ensure supported CUDA installations use a compatible version range and avoid unintended upgrades beyond the validated release range.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->