From 54a4298a35edc1523e4fbba285013519aff1484a Mon Sep 17 00:00:00 2001 From: wassname <1103714+wassname@users.noreply.github.com> Date: Sun, 7 Jun 2026 08:14:22 +0800 Subject: [PATCH] modal: pin transformers to released >=5.8.0 (no floating @ main) Floating @ main let a later main commit hang generate() (the other agent's deadlock). The local box runs 5.8.0.dev0; uv.lock pins the exact commit, the image uses the released 5.8.0 wheel of the same line. Qwen3-4B needs no main-only feature. Co-Authored-By: Claudypoo <288921227+claudypoo@users.noreply.github.com> --- modal/app.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modal/app.py b/modal/app.py index 20b8761..9b8633f 100644 --- a/modal/app.py +++ b/modal/app.py @@ -55,9 +55,12 @@ image = ( index_url="https://download.pytorch.org/whl/cu126", ) .pip_install( - # transformers from main: Qwen3 support + the gated-delta-net fix the repo - # pins. Qwen3-4B itself is stable on main. - "transformers @ git+https://github.com/huggingface/transformers.git", + # transformers: released version, NOT floating `@ main`. The local box runs + # 5.8.0.dev0 (uv.lock pins the exact commit for fine-grained repro); the image + # uses the released >=5.8.0 wheel -- same code line, no floating main that let a + # later commit hang generate(). Qwen3-4B needs no main-only feature (gated- + # delta-net / qwen3_5 is for Qwen3.5, which we don't run). Bump if the box moves lines. + "transformers>=5.8.0", "einops>=0.8", "jaxtyping>=0.2", "beartype>=0.18",