System Info
- transformers.js version: 4.2.0
- Operating System:
- Failing: Ubuntu (GitHub Actions runner)
- Working: Windows 10
- Node.js version: v24.15
- Relevant dependencies:
@huggingface/transformers@4.2.0
Environment/Platform
Description
In GitHub Actions, the execution of Transformers.js fails.
Reproduction
- Run the following code in a GitHub Actions workflow using Ubuntu:
import { pipeline } from '@huggingface/transformers';
async function run() {
try {
// Note: 'dml' might not be valid/supportable on Linux CI runners without specific setup,
// but this is the configuration failing.
const instance = await pipeline(
'feature-extraction',
'Xenova/jina-embeddings-v2-small-en',
{
device: process.env.CI ? 'cpu' : 'dml',
dtype: 'fp16'
},
);
console.log('Pipeline loaded successfully');
} catch (error) {
console.error(error);
throw error;
}
}
run();
- Error Output:
2026-06-01 03:38:17.401750720 [E:onnxruntime:, inference_session.cc:2619 operator()] Exception during initialization: /onnxruntime_src/onnxruntime/core/graph/graph_utils.cc:29 int onnxruntime::graph_utils::GetIndexFromName(const onnxruntime::Node&, const std::string&, bool) itr != node_args.end() was false. Attempting to get index by a name which does not exist:InsertedPrecisionFreeCast_/encoder/layer.3/attention/output/LayerNorm/Constant_output_0for node: /embeddings/LayerNorm/Mul/SimplifiedLayerNormFusion/
2026-06-01 03:38:17.464710163 [E:onnxruntime:, inference_session.cc:2619 operator()] Exception during initialization: /onnxruntime_src/onnxruntime/core/graph/graph_utils.cc:29 int onnxruntime::graph_utils::GetIndexFromName(const onnxruntime::Node&, const std::string&, bool) itr != node_args.end() was false. Attempting to get index by a name which does not exist:InsertedPrecisionFreeCast_/encoder/layer.3/attention/output/LayerNorm/Constant_output_0for node: /embeddings/LayerNorm/Mul/SimplifiedLayerNormFusion/
System Info
@huggingface/transformers@4.2.0Environment/Platform
Description
In GitHub Actions, the execution of Transformers.js fails.
Reproduction