From 5500887eed147a1aa9a1e0f4399f12d20e778c42 Mon Sep 17 00:00:00 2001 From: hooved <172129504+hooved@users.noreply.github.com> Date: Tue, 18 Mar 2025 09:27:38 -0400 Subject: [PATCH] improve reproducibility of WebGPU CI puppeteer test (#9496) * try to make CI test fail with slow JS import * prevent race between model import and reference * revert artificial delay in JS module import --- examples/webgpu/efficientnet/index.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/webgpu/efficientnet/index.html b/examples/webgpu/efficientnet/index.html index fab98aa7af..e03ed349a7 100644 --- a/examples/webgpu/efficientnet/index.html +++ b/examples/webgpu/efficientnet/index.html @@ -18,10 +18,6 @@ canvas { display: none; } tinygrad has WebGPU -

WebGPU tinygrad EfficientNet!

@@ -102,6 +98,7 @@ canvas { display: none; } resultText.innerHTML = "loading..." labels = await getLabels(); const device = await getDevice(); + const model = (await import("../../net.js")).default; net = await timer(() => model.load(device, '../../net.safetensors'), "(compilation)"); resultText.innerHTML = "ready" } catch (e) {