Open marcosr-diipai opened 5 days ago
might be related to https://github.com/xenova/transformers.js/issues/941 ?
This is because we don't currently support the external data format in Node.js (will be added soon):
If you are able to, it will work if you use the fp16 or q8 variants (by specifying dtype: 'fp16'
or dtype: 'q8'
.
System Info
Transformers.js: 2.17.2 "@nestjs/common": "^10.0.0", "@nestjs/config": "^3.2.3", "@nestjs/core": "^10.0.0", "@nestjs/platform-express": "^10.0.0",
node v20.17.0
Environment/Platform
Description
When using the model "intfloat / multilingual-e5-large" it's giving me this error:
When running the code in ps I get the following error: Error: Exception during initialization: /onnxruntime_src/onnxruntime/core/optimizer/initializer.cc:30 onnxruntime::Initializer::Initializer(const onnx::TensorProto&, const onnxruntime::Path&) !model_path.IsEmpty() was false. model_path must not be empty. Ensure that a path is provided when the model is created or loaded.
When using the one "Xenova/multilingual-e5-large" it's not giving me the same results as using "intfloat / multilingual-e5-large" with Python.
Reproduction