mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6603] [Feature]: migrate Transformers.js and patched ONNX Runtime together #3698
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3698
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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-node1.30.0 andonnxruntime-web1.31.0-dev.20260914-8d85527a0. Marinara currently overrides all ONNX runtimes to 1.24.3 inpnpm-workspace.yamland appliespatches/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
pnpm-workspace.yaml,patches/onnxruntime-node@1.24.3.patchpackages/server/src/services/local-embedder.ts,packages/server/src/services/sidecar/sidecar-speech.service.tsTemplate check
@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.@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.