Skip to content

Commit cf09546

Browse files
fluffy314cursoragent
authored andcommitted
fix(ci): pin legacy Qwen integration environment
Bundle the empty dllm compatibility namespace and keep the Mac integration workflow on Transformers 4.x, while leaving the Gemma/K3 production dependency range unchanged. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 339eb22 commit cf09546

3 files changed

Lines changed: 18 additions & 9 deletions

File tree

.github/workflows/integration.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ jobs:
9090
# requirements.txt rather than an editable `-e .` (which errors with
9191
# "does not appear to be a Python project").
9292
python3 -m pip install -r requirements.txt
93+
# The integration suite exercises the legacy dllm-hub Qwen proposer,
94+
# whose remote modeling file depends on the Transformers 4.x
95+
# decoder_layer.attention_type API. Keep this runner in the dedicated
96+
# legacy range; K3/Gemma production paths use requirements.txt's
97+
# unbounded Transformers 5.x-compatible environment.
98+
python3 -m pip install 'transformers>=4.45,<5.0'
9399
python3 -m pip install pytest pytest-asyncio pytest-timeout coverage
94100
95101
- name: Run integration suite

dllm/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"""Compatibility namespace for legacy dllm-hub remote model imports.
2+
3+
The legacy Qwen diffusion checkpoint declares ``dllm`` in its Transformers
4+
auto-map source even though Kakeya does not import runtime symbols from that
5+
package. Keeping this empty namespace on PYTHONPATH satisfies the static
6+
dependency check consistently in CI and source checkouts.
7+
"""

docs/quickstart.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,11 @@ Same steps as Mac, plus a `torch` build matching your CUDA toolkit.
7878
### Common pitfalls
7979

8080
- **`ModuleNotFoundError: dllm`**: the legacy diffusion proposer (v0.2)
81-
references a `dllm` package that v0.3 doesn't need but transformers'
82-
static imports flag. Fix:
83-
```bash
84-
python3 -c "import site, os; \
85-
p = os.path.join(site.getusersitepackages(), 'dllm'); \
86-
os.makedirs(p, exist_ok=True); \
87-
open(os.path.join(p, '__init__.py'), 'a').close()"
88-
```
89-
`setup_mac.sh` and `setup_cuda.sh` do this automatically.
81+
declares a `dllm` package that Kakeya does not call at runtime but
82+
Transformers validates statically. Current source checkouts include the empty
83+
compatibility namespace at `dllm/__init__.py`; ensure the repository root is
84+
on `PYTHONPATH`. Older tags can use `setup_mac.sh` / `setup_cuda.sh`, which
85+
create the same namespace in site-packages.
9086
- **Connection refused to `huggingface.co`**: set `HF_ENDPOINT` before
9187
setup (see above) or pre-warm offline.
9288

0 commit comments

Comments
 (0)