Skip to content

"intfloat / multilingual-e5-large" model not working in Node.js #938

@marcosr-diipai

Description

@marcosr-diipai

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

  • Website/web-app
  • Browser extension
  • Server-side (e.g., Node.js, Deno, Bun)
  • Desktop app (e.g., Electron)
  • Other (e.g., VSCode extension)

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

  1. Install transformers JS in a Node Application
  2. Execute a Autotokenizer and AutoModel with "intfloat / multilingual-e5-large"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions