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
Under the hood, this factory function does the following steps for first creating an engine instance (synchrounous) and then loading the model (asynchrounous). You can also do them separately in your application.
135
+
Under the hood, this factory function does the following steps for first creating an engine instance (synchronous) and then loading the model (asynchronous). You can also do them separately in your application.
136
136
137
137
```typescript
138
138
import { MLCEngine } from"@mlc-ai/web-llm";
139
139
140
-
// This is a synchrounous call that returns immediately
140
+
// This is a synchronous call that returns immediately
141
141
const engine =newMLCEngine({
142
142
initProgressCallback: initProgressCallback
143
143
});
144
144
145
-
// This is an asynchrounous call and can take a long time to finish
145
+
// This is an asynchronous call and can take a long time to finish
0 commit comments