brsh 3.4.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/wbt.es.js +310 -186
- package/dist/wbt.es.js.map +1 -1
- package/dist/wbt.min.js +3 -3
- package/dist/wbt.min.js.map +1 -1
- package/lib/wbt/packages/wllama.js +399 -120
- package/package.json +1 -1
- package/test/wbt.test.js +4 -2
package/package.json
CHANGED
package/test/wbt.test.js
CHANGED
|
@@ -1176,7 +1176,8 @@ describe('WBT Wllama v3 WASM & WebGPU package (`wllama`, `llama`, `llama-cli`)',
|
|
|
1176
1176
|
expect(noStreamRes.output.join('\n')).toContain('Reply(WebGPU,turns=1): No stream');
|
|
1177
1177
|
expect(noStreamTokens.length).toBe(0);
|
|
1178
1178
|
|
|
1179
|
-
// Test status indication (loading model, running inference)
|
|
1179
|
+
// Test status indication (loading model weights, running inference)
|
|
1180
|
+
wllamaInstances.clear();
|
|
1180
1181
|
const statusUpdates = [];
|
|
1181
1182
|
const onStatus = (chunk) => statusUpdates.push(chunk);
|
|
1182
1183
|
shell.stderr.on('data', onStatus);
|
|
@@ -1188,8 +1189,9 @@ describe('WBT Wllama v3 WASM & WebGPU package (`wllama`, `llama`, `llama-cli`)',
|
|
|
1188
1189
|
|
|
1189
1190
|
shell.stderr.removeListener('data', onStatus);
|
|
1190
1191
|
const combinedStatus = statusUpdates.join('');
|
|
1191
|
-
expect(combinedStatus).
|
|
1192
|
+
expect(combinedStatus).toContain('Loading model (tinyllama.gguf) weights');
|
|
1192
1193
|
expect(combinedStatus).toContain('Running inference');
|
|
1194
|
+
expect(combinedStatus).toMatch(/\[.*\]/);
|
|
1193
1195
|
});
|
|
1194
1196
|
|
|
1195
1197
|
it('supports Hugging Face model loading (--hf / hf:), embeddings (wllama embed), info, and bench', async () => {
|