Better fallbacks.
Browse files- package.json +1 -1
- src/worker/model-cache.js +2 -4
package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"name": "localm",
|
| 3 |
-
"version": "1.1.
|
| 4 |
"description": "",
|
| 5 |
"main": "chat-full.js",
|
| 6 |
"scripts": {
|
|
|
|
| 1 |
{
|
| 2 |
"name": "localm",
|
| 3 |
+
"version": "1.1.6",
|
| 4 |
"description": "",
|
| 5 |
"main": "chat-full.js",
|
| 6 |
"scripts": {
|
src/worker/model-cache.js
CHANGED
|
@@ -8,9 +8,7 @@ export class ModelCache {
|
|
| 8 |
backend = undefined;
|
| 9 |
|
| 10 |
knownModels = [
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
// 'Xenova/phi-3-mini-4k-instruct',
|
| 14 |
'Xenova/llama2.c-stories15M', // nonsense
|
| 15 |
'Xenova/all-MiniLM-L6-v2', // unsupported model type: bert
|
| 16 |
'Xenova/phi-1.5', // gated
|
|
@@ -43,7 +41,7 @@ export class ModelCache {
|
|
| 43 |
let candidates = ['webgpu', 'gpu', 'wasm'];
|
| 44 |
// candidates = ['gpu', 'wasm'];
|
| 45 |
candidates = candidates.slice(candidates.indexOf(this.backend || 'wasm'));
|
| 46 |
-
candidates = ['auto'];
|
| 47 |
|
| 48 |
let errs = [];
|
| 49 |
console.log('Trying candidates ', candidates);
|
|
|
|
| 8 |
backend = undefined;
|
| 9 |
|
| 10 |
knownModels = [
|
| 11 |
+
'Xenova/phi-3-mini-4k-instruct',
|
|
|
|
|
|
|
| 12 |
'Xenova/llama2.c-stories15M', // nonsense
|
| 13 |
'Xenova/all-MiniLM-L6-v2', // unsupported model type: bert
|
| 14 |
'Xenova/phi-1.5', // gated
|
|
|
|
| 41 |
let candidates = ['webgpu', 'gpu', 'wasm'];
|
| 42 |
// candidates = ['gpu', 'wasm'];
|
| 43 |
candidates = candidates.slice(candidates.indexOf(this.backend || 'wasm'));
|
| 44 |
+
candidates = ['auto', 'wasm'];
|
| 45 |
|
| 46 |
let errs = [];
|
| 47 |
console.log('Trying candidates ', candidates);
|