You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -238,7 +242,7 @@ export class MLCEngine implements MLCEngineInterface {
238
242
letdeviceLostInReload=false;
239
243
gpuDetectOutput.device.lost.then((info: any)=>{
240
244
if(this.deviceLostIsError){
241
-
console.error(
245
+
log.error(
242
246
`Device was lost during reload. This can happen due to insufficient memory or other GPU constraints. Detailed error: ${info}. Please try to reload WebLLM with a less resource-intensive model.`,
243
247
);
244
248
this.unload();
@@ -291,7 +295,7 @@ export class MLCEngine implements MLCEngineInterface {
291
295
streamInterval=1,
292
296
genConfig?: GenerationConfig,
293
297
): Promise<string>{
294
-
console.log(
298
+
log.warn(
295
299
"WARNING: `generate()` will soon be deprecated. "+
296
300
"Please use `engine.chat.completions.create()` instead. "+
297
301
"For multi-round chatting, see `examples/multi-round-chat` on how to use "+
@@ -579,7 +583,7 @@ export class MLCEngine implements MLCEngineInterface {
0 commit comments