[GH-ISSUE #6603] [Feature]: migrate Transformers.js and patched ONNX Runtime together #3698

Closed
opened 2026-10-21 06:06:16 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @SpicyMarinara on GitHub (Sep 24, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6603

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

The dependency-only bump in #6592 moves Transformers.js from 3.8.1 to 4.3.0, whose published manifest requires onnxruntime-node 1.30.0 and onnxruntime-web 1.31.0-dev.20260914-8d85527a0. Marinara currently overrides all ONNX runtimes to 1.24.3 in pnpm-workspace.yaml and applies patches/onnxruntime-node@1.24.3.patch.

A manifest-only Transformers update would silently retain an older, unsupported runtime combination. Removing the overrides would instead drop Marinara's native installer/archive protections and require a native-runtime migration. This is deferred from the dependency maintenance batch #6601 / #6602 rather than claiming that green type checks prove local model compatibility.

Proposed solution

Migrate Transformers.js and ONNX Runtime together. Port or retire the native-runtime patch after checking upstream fixes, then prove local MiniLM embeddings, existing Whisper models, model download/offline reuse, Lite-mode behavior, and native builds on supported platforms. Retain archive-extraction security regression coverage.

Alternatives considered

Keep Transformers.js 3.8.1 and the current patched runtime while the migration is separately validated. This is the maintenance batch's decision; no claim is made that Transformers.js 4.3.0 has been observed failing inference.

Additional context

  • Upstream package: https://www.npmjs.com/package/@huggingface/transformers/v/4.3.0
  • Runtime pins/patch: pnpm-workspace.yaml, patches/onnxruntime-node@1.24.3.patch
  • Consumers: packages/server/src/services/local-embedder.ts, packages/server/src/services/sidecar/sidecar-speech.service.ts
  • Follow-up is unstarted; no migration implementation is claimed.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Sep 24, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6603 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? The dependency-only bump in #6592 moves Transformers.js from 3.8.1 to 4.3.0, whose published manifest requires `onnxruntime-node` 1.30.0 and `onnxruntime-web` 1.31.0-dev.20260914-8d85527a0. Marinara currently overrides all ONNX runtimes to 1.24.3 in `pnpm-workspace.yaml` and applies `patches/onnxruntime-node@1.24.3.patch`. A manifest-only Transformers update would silently retain an older, unsupported runtime combination. Removing the overrides would instead drop Marinara's native installer/archive protections and require a native-runtime migration. This is deferred from the dependency maintenance batch #6601 / #6602 rather than claiming that green type checks prove local model compatibility. ## Proposed solution Migrate Transformers.js and ONNX Runtime together. Port or retire the native-runtime patch after checking upstream fixes, then prove local MiniLM embeddings, existing Whisper models, model download/offline reuse, Lite-mode behavior, and native builds on supported platforms. Retain archive-extraction security regression coverage. ## Alternatives considered Keep Transformers.js 3.8.1 and the current patched runtime while the migration is separately validated. This is the maintenance batch's decision; no claim is made that Transformers.js 4.3.0 has been observed failing inference. ## Additional context - Upstream package: https://www.npmjs.com/package/@huggingface/transformers/v/4.3.0 - Runtime pins/patch: `pnpm-workspace.yaml`, `patches/onnxruntime-node@1.24.3.patch` - Consumers: `packages/server/src/services/local-embedder.ts`, `packages/server/src/services/sidecar/sidecar-speech.service.ts` - Follow-up is unstarted; no migration implementation is claimed. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:06:16 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Sep 24, 2026):

Implementation is now owned by @SpicyMarinara with Codex, following the maintainer's request to finish the deferred migrations and merge them into staging. Work is on codex/6603-6604-runtime-migrations; the related draft PR will link both deferred issues. No other issue-linked branch or open PR was found.

<!-- gh-comment-id:5811620105 --> @SpicyMarinara commented on GitHub (Sep 24, 2026): Implementation is now owned by @SpicyMarinara with Codex, following the maintainer's request to finish the deferred migrations and merge them into staging. Work is on `codex/6603-6604-runtime-migrations`; the related draft PR will link both deferred issues. No other issue-linked branch or open PR was found.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 24, 2026):

Implemented and merged into staging in #6606. Transformers.js and both ONNX backends now match, the installer protection is retained, and MiniLM, both Whisper models, legacy/fresh offline caches, Lite mode, native platform builds, and the full Linux regression suite were verified.

<!-- gh-comment-id:5812328395 --> @SpicyMarinara commented on GitHub (Sep 24, 2026): Implemented and merged into staging in #6606. Transformers.js and both ONNX backends now match, the installer protection is retained, and MiniLM, both Whisper models, legacy/fresh offline caches, Lite mode, native platform builds, and the full Linux regression suite were verified.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3698
No description provided.