Transformers JS Onnx Pipelines

Use when integrating Hugging Face Transformers.js (Xenova/transformers) for in-browser or in-Node inference, debugging quantized model loading, building bi-encoder / cross-encoder / classification pipelines, configuring model cache directories, or bypassing high-level pipelines to read raw logits. Triggers: "model failed to load", cross-encoder scores all 1.0 (softmax-over-1 trap), env.allowLocalModels confusion, cacheDir overrides, ONNX runtime mismatch, ESM vs CJS pipeline imports, browser vs node feature gaps. NOT for full transformers Python (different SDK), TensorFlow.js, ONNX Runtime Web directly without Transformers.js, or model training.

curiositech Updated 10 repo stars

File contents

curiositech/windags-skills/tree/main/skills/transformers-js-onnx-pipelines commit 4577257a4a

Frequently asked questions

npx skillmds@latest add curiositech/transformers-js-onnx-pipelines