Run WASM sessions at the default graph optimization level now that ort-web 1.31 loads the 8-bit decoders
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9f1d58c0b7
commit
cc8e031d6b
6 files changed
+70
-11
No files matched your search
@@ -54,4 +54,17 @@ describe("@huggingface/transformers runtime", () => {
|
||||
const source = read(join(PKG_DIR, "src/models/whisper/modeling_whisper.js"));
|
||||
expect(source).toContain("if (generation_config.return_timestamps && !kwargs.max_new_tokens)");
|
||||
});
|
||||
|
||||
test("onnxruntime-web is the build D-WS1c re-tested 8-bit decoders on at the default optimization level", () => {
|
||||
// D-014's "basic" cap was dropped because this build loads the q8 merged
|
||||
// decoders at every graphOptimizationLevel. A different build needs the
|
||||
// D-WS1c session-creation check re-run before it ships.
|
||||
const ortWeb = JSON.parse(read(join(ROOT, "node_modules/onnxruntime-web/package.json"))).version;
|
||||
expect(ortWeb).toBe("1.31.0-dev.20260914-8d85527a0");
|
||||
});
|
||||
|
||||
test("worker leaves WASM sessions at the default graph optimization level (D-WS1c)", () => {
|
||||
const worker = read(join(ROOT, "src/worker/inference.worker.ts"));
|
||||
expect(worker).not.toContain("graphOptimizationLevel");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user