Skip to content

Fix: load LFM2-VL from onnx-community repo (transformers.js layout, fp16)#19

Merged
YASSERRMD merged 1 commit into
mainfrom
phase-14-working-app
Jun 8, 2026
Merged

Fix: load LFM2-VL from onnx-community repo (transformers.js layout, fp16)#19
YASSERRMD merged 1 commit into
mainfrom
phase-14-working-app

Conversation

@YASSERRMD

Copy link
Copy Markdown
Owner

The LiquidAI -ONNX repo uses embed_images/decoder file names that the Transformers.js high-level loader can't resolve (it requests vision_encoder/decoder_model_merged), so model loading 404'd.

Switches to onnx-community/LFM2-VL-1.6B-ONNX (conventional Transformers.js layout) and uses fp16 (its only quantized variant — no q4). WebGPU primary with WASM fallback; processor built manually from processor_config.json (no preprocessor_config.json in the repo).

Gates: typecheck · lint · 245 tests · build all green.

🤖 Generated with Claude Code

….js layout) with fp16

The LiquidAI -ONNX repo uses embed_images/decoder file names that the
Transformers.js ImageTextToText loader cannot resolve (it requests
vision_encoder/decoder_model_merged). Switch to the onnx-community repo,
which follows the convention, and use fp16 (its only quantized variant; no q4).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@YASSERRMD YASSERRMD merged commit ce115c2 into main Jun 8, 2026
1 check failed
@YASSERRMD YASSERRMD deleted the phase-14-working-app branch June 8, 2026 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant