Skip to content

Commit f940706

Browse files
committed
fix(webgpu): reduce warmup suppression log noise
1 parent cee42cb commit f940706

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

js/llama_webgpu_bridge.js

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1508,10 +1508,12 @@ class LlamaWebGpuBridgeRuntime {
15081508
return;
15091509
}
15101510

1511-
this._emitLogger(
1512-
'warn',
1513-
`warning: suppressed ${this._suppressedWarmupWarningCount} verbose warmup log lines (set bridge/runtime log level to Info or Debug to inspect full warmup trace).`,
1514-
);
1511+
if (this._logLevel <= 2) {
1512+
this._emitLogger(
1513+
'log',
1514+
`info: suppressed ${this._suppressedWarmupWarningCount} verbose warmup log lines (set bridge/runtime log level to Debug to inspect full warmup trace).`,
1515+
);
1516+
}
15151517
this._suppressedWarmupWarningCount = 0;
15161518
}
15171519

@@ -2735,10 +2737,12 @@ class LlamaWebGpuBridgeRuntime {
27352737
this._suppressedWarmupWarningCount += 1;
27362738
if (!this._didReportWarmupWarningSuppression) {
27372739
this._didReportWarmupWarningSuppression = true;
2738-
this._emitLogger(
2739-
'warn',
2740-
'warning: suppressing verbose warmup op logs at WARN level. Set bridge/runtime log level to Info or Debug to inspect all warmup details.',
2741-
);
2740+
if (this._logLevel <= 2) {
2741+
this._emitLogger(
2742+
'log',
2743+
'info: suppressing verbose warmup op logs; set bridge/runtime log level to Debug to inspect all warmup details.',
2744+
);
2745+
}
27422746
}
27432747
this._pushRuntimeNote('warmup_warning_suppressed');
27442748
return;

0 commit comments

Comments
 (0)