Upgrade @huggingface/transformers to 4.3.2 and carry the sequential-session patch

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas WintherandClaude Opus 5.5 committed 2026-10-29 21:44:18 +01:00
1 parent 9607c8558f
commit 753ea03979
8 files changed
+136 -67

No files matched your search

+5 -5
View File
@@ -57,7 +57,7 @@ onnxruntime-node 1.30.0), bun:test.
**Interfaces:**
- Produces: `tests/transformers-runtime.test.ts` (Task 2 adds a case to it).
- [ ] **Step 1: Write the failing test** `describe("@huggingface/transformers runtime")`:
- [x] **Step 1: Write the failing test** `describe("@huggingface/transformers runtime")`:
- `"installed version is the pinned 4.3.2"` — `node_modules/@huggingface/transformers/package.json`
`.version === "4.3.2"`.
- `"patchedDependencies points at an existing patch for the installed version"` — root
@@ -65,15 +65,15 @@ onnxruntime-node 1.30.0), bun:test.
- `"web bundle's constructSessions carries the sequential-load patch (D-027/D-028)"` — the
`constructSessions` function text sliced from `dist/transformers.web.js` contains
`options?.sequentialSessionLoad` and both `Promise.all(` and `for (const name of Object.keys(names))`.
- [ ] **Step 2: Run** `bun test tests/transformers-runtime.test.ts` → FAIL on version (4.2.0) and key.
- [ ] **Step 3:** `bun add -d @huggingface/transformers@4.3.2` (remove the 4.2.0
- [x] **Step 2: Run** `bun test tests/transformers-runtime.test.ts` → FAIL on version (4.2.0) and key.
- [x] **Step 3:** `bun add -d @huggingface/transformers@4.3.2` (remove the 4.2.0
`patchedDependencies` entry first if bun refuses), `bun patch @huggingface/transformers`, re-apply
the 4.2.0 hunk to `constructSessions` in `dist/transformers.web.js` (upstream is unchanged:
still a bare `Promise.all`), `bun patch --commit node_modules/@huggingface/transformers`.
`git rm` the 4.2.0 patch. Re-link the shared `.cache` symlink if the reinstall removed it.
- [ ] **Step 4: Run** the test → PASS; `bun install --frozen-lockfile` clean; typecheck; fast
- [x] **Step 4: Run** the test → PASS; `bun install --frozen-lockfile` clean; typecheck; fast
suite; `bun run build`; `ls dist/ort` shows the files ort-web 1.31 requests.
- [ ] **Step 5:** docs: AGENTS.md patch filename; `D-WS1a` (upgrade, patch carried, why upstream
- [x] **Step 5:** docs: AGENTS.md patch filename; `D-WS1a` (upgrade, patch carried, why upstream
doesn't obsolete it, ort versions, Parakeet = CTC only); WorkBreakdown tick. Commit
"Upgrade @huggingface/transformers to 4.3.2 and carry the sequential-session patch".