Skip to content

[Bug] NaNs produced when env.backends.onnx.wasm.proxy = true? #390

@josephrocca

Description

@josephrocca

I think I'm doing something silly here, but setting env.backends.onnx.wasm.proxy = true makes this produce NaNs:

let { pipeline, env } = await import('https://cdn.jsdelivr.net/npm/@xenova/[email protected]');
env.allowLocalModels = false;
// env.backends.onnx.wasm.proxy = true; // uncomment this line to produce NaNs
let extractor = await pipeline('feature-extraction', 'Xenova/bge-base-en-v1.5');
let result = await extractor("test 123", { pooling: 'mean', normalize: true });
console.log(result.data);

I thought maybe it was a 2.8.0 regression, but I tried all versions back to 2.5.4 and it's didn't work in any of them, so that makes me lean toward assuming that I'm doing something wrong. If that's the case, then an informative error message would be helpful :)

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