From 50c5bba8cc2363f9cb49233cbfac8705b0be908a Mon Sep 17 00:00:00 2001 From: Charlie Ruan <53290280+CharlieFRuan@users.noreply.github.com> Date: Thu, 8 Aug 2024 13:54:30 -0400 Subject: [PATCH] [Version] Bump to version 0.2.54 (#530) No breaking changes. The only diff is the following PR: - https://github.com/mlc-ai/web-llm/pull/525 - This PR updates the engine reload() and unload() methods to allow users to abort an uncompleted reload() by either: - call unload() any time before reload() completed - call reload() again before the previous reload() completed - Besides, it fixes the previous issue where `device lost error` is raised unexpectedly when user simply switches a model ### TVMjs - To support the above PR, TVMjs is updated and compiled at https://github.com/apache/tvm/commit/1fcb62023f0a5f878abd5b43ec9e547933fb5fab - Difference: - Device error lost fix: https://github.com/apache/tvm/pull/17250 - Add AbortSignal to fetching APIs: - https://github.com/apache/tvm/pull/17208 - https://github.com/apache/tvm/pull/17227 - https://github.com/apache/tvm/pull/17233 --- examples/abort-reload/package.json | 2 +- examples/cache-usage/package.json | 2 +- examples/chrome-extension-webgpu-service-worker/package.json | 2 +- examples/chrome-extension/package.json | 2 +- .../function-calling/function-calling-manual/package.json | 2 +- .../function-calling/function-calling-openai/package.json | 2 +- examples/get-started-web-worker/package.json | 2 +- examples/get-started/package.json | 2 +- examples/json-mode/package.json | 2 +- examples/json-schema/package.json | 2 +- examples/logit-processor/package.json | 2 +- examples/multi-round-chat/package.json | 2 +- examples/next-simple-chat/package.json | 2 +- examples/seed-to-reproduce/package.json | 2 +- examples/service-worker/package.json | 2 +- examples/simple-chat-ts/package.json | 2 +- examples/streaming/package.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- utils/vram_requirements/package.json | 2 +- 20 files changed, 21 insertions(+), 21 deletions(-) diff --git a/examples/abort-reload/package.json b/examples/abort-reload/package.json index 12c603a9..490e9ba4 100644 --- a/examples/abort-reload/package.json +++ b/examples/abort-reload/package.json @@ -15,6 +15,6 @@ "url": "^0.11.3" }, "dependencies": { - "@mlc-ai/web-llm": "file:../../lib" + "@mlc-ai/web-llm": "^0.2.54" } } diff --git a/examples/cache-usage/package.json b/examples/cache-usage/package.json index 9c834b7e..fdb46f33 100644 --- a/examples/cache-usage/package.json +++ b/examples/cache-usage/package.json @@ -15,6 +15,6 @@ "url": "^0.11.3" }, "dependencies": { - "@mlc-ai/web-llm": "^0.2.53" + "@mlc-ai/web-llm": "^0.2.54" } } diff --git a/examples/chrome-extension-webgpu-service-worker/package.json b/examples/chrome-extension-webgpu-service-worker/package.json index e4bad07f..a9e450d6 100644 --- a/examples/chrome-extension-webgpu-service-worker/package.json +++ b/examples/chrome-extension-webgpu-service-worker/package.json @@ -17,7 +17,7 @@ "url": "^0.11.1" }, "dependencies": { - "@mlc-ai/web-llm": "^0.2.53", + "@mlc-ai/web-llm": "^0.2.54", "progressbar.js": "^1.1.0" } } diff --git a/examples/chrome-extension/package.json b/examples/chrome-extension/package.json index e4bad07f..a9e450d6 100644 --- a/examples/chrome-extension/package.json +++ b/examples/chrome-extension/package.json @@ -17,7 +17,7 @@ "url": "^0.11.1" }, "dependencies": { - "@mlc-ai/web-llm": "^0.2.53", + "@mlc-ai/web-llm": "^0.2.54", "progressbar.js": "^1.1.0" } } diff --git a/examples/function-calling/function-calling-manual/package.json b/examples/function-calling/function-calling-manual/package.json index 15f56211..e6522f39 100644 --- a/examples/function-calling/function-calling-manual/package.json +++ b/examples/function-calling/function-calling-manual/package.json @@ -15,6 +15,6 @@ "url": "^0.11.3" }, "dependencies": { - "@mlc-ai/web-llm": "^0.2.53" + "@mlc-ai/web-llm": "^0.2.54" } } diff --git a/examples/function-calling/function-calling-openai/package.json b/examples/function-calling/function-calling-openai/package.json index f5a6b62d..b2c62d84 100644 --- a/examples/function-calling/function-calling-openai/package.json +++ b/examples/function-calling/function-calling-openai/package.json @@ -15,6 +15,6 @@ "url": "^0.11.3" }, "dependencies": { - "@mlc-ai/web-llm": "^0.2.53" + "@mlc-ai/web-llm": "^0.2.54" } } diff --git a/examples/get-started-web-worker/package.json b/examples/get-started-web-worker/package.json index 7483eb65..ebab60a6 100644 --- a/examples/get-started-web-worker/package.json +++ b/examples/get-started-web-worker/package.json @@ -15,6 +15,6 @@ "url": "^0.11.3" }, "dependencies": { - "@mlc-ai/web-llm": "^0.2.53" + "@mlc-ai/web-llm": "^0.2.54" } } diff --git a/examples/get-started/package.json b/examples/get-started/package.json index 04b0b74c..de4c7d38 100644 --- a/examples/get-started/package.json +++ b/examples/get-started/package.json @@ -15,6 +15,6 @@ "url": "^0.11.3" }, "dependencies": { - "@mlc-ai/web-llm": "^0.2.53" + "@mlc-ai/web-llm": "^0.2.54" } } diff --git a/examples/json-mode/package.json b/examples/json-mode/package.json index a3811e32..d05ccd7d 100644 --- a/examples/json-mode/package.json +++ b/examples/json-mode/package.json @@ -15,6 +15,6 @@ "url": "^0.11.3" }, "dependencies": { - "@mlc-ai/web-llm": "^0.2.53" + "@mlc-ai/web-llm": "^0.2.54" } } diff --git a/examples/json-schema/package.json b/examples/json-schema/package.json index de922062..5240f969 100644 --- a/examples/json-schema/package.json +++ b/examples/json-schema/package.json @@ -15,6 +15,6 @@ "url": "^0.11.3" }, "dependencies": { - "@mlc-ai/web-llm": "^0.2.53" + "@mlc-ai/web-llm": "^0.2.54" } } diff --git a/examples/logit-processor/package.json b/examples/logit-processor/package.json index 94a0dd73..6c644f41 100644 --- a/examples/logit-processor/package.json +++ b/examples/logit-processor/package.json @@ -15,6 +15,6 @@ "url": "^0.11.3" }, "dependencies": { - "@mlc-ai/web-llm": "^0.2.53" + "@mlc-ai/web-llm": "^0.2.54" } } diff --git a/examples/multi-round-chat/package.json b/examples/multi-round-chat/package.json index e481b567..0a2544d1 100644 --- a/examples/multi-round-chat/package.json +++ b/examples/multi-round-chat/package.json @@ -15,6 +15,6 @@ "url": "^0.11.3" }, "dependencies": { - "@mlc-ai/web-llm": "^0.2.53" + "@mlc-ai/web-llm": "^0.2.54" } } diff --git a/examples/next-simple-chat/package.json b/examples/next-simple-chat/package.json index 6c58ac45..9231e4da 100644 --- a/examples/next-simple-chat/package.json +++ b/examples/next-simple-chat/package.json @@ -9,7 +9,7 @@ "lint": "next lint" }, "dependencies": { - "@mlc-ai/web-llm": "^0.2.53", + "@mlc-ai/web-llm": "^0.2.54", "@types/node": "20.3.3", "@types/react": "18.2.14", "@types/react-dom": "18.2.6", diff --git a/examples/seed-to-reproduce/package.json b/examples/seed-to-reproduce/package.json index 02142751..96b34a77 100644 --- a/examples/seed-to-reproduce/package.json +++ b/examples/seed-to-reproduce/package.json @@ -15,6 +15,6 @@ "url": "^0.11.3" }, "dependencies": { - "@mlc-ai/web-llm": "^0.2.53" + "@mlc-ai/web-llm": "^0.2.54" } } diff --git a/examples/service-worker/package.json b/examples/service-worker/package.json index 860f2356..2962b690 100644 --- a/examples/service-worker/package.json +++ b/examples/service-worker/package.json @@ -15,6 +15,6 @@ "url": "^0.11.3" }, "dependencies": { - "@mlc-ai/web-llm": "^0.2.53" + "@mlc-ai/web-llm": "^0.2.54" } } diff --git a/examples/simple-chat-ts/package.json b/examples/simple-chat-ts/package.json index ae5d0406..edf9b25b 100644 --- a/examples/simple-chat-ts/package.json +++ b/examples/simple-chat-ts/package.json @@ -15,6 +15,6 @@ "url": "^0.11.3" }, "dependencies": { - "@mlc-ai/web-llm": "^0.2.53" + "@mlc-ai/web-llm": "^0.2.54" } } diff --git a/examples/streaming/package.json b/examples/streaming/package.json index e9290c74..6656e644 100644 --- a/examples/streaming/package.json +++ b/examples/streaming/package.json @@ -15,6 +15,6 @@ "url": "^0.11.3" }, "dependencies": { - "@mlc-ai/web-llm": "^0.2.53" + "@mlc-ai/web-llm": "^0.2.54" } } diff --git a/package-lock.json b/package-lock.json index d770f614..481b6611 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@mlc-ai/web-llm", - "version": "0.2.53", + "version": "0.2.54", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@mlc-ai/web-llm", - "version": "0.2.53", + "version": "0.2.54", "license": "Apache-2.0", "dependencies": { "loglevel": "^1.9.1" diff --git a/package.json b/package.json index 58999e0e..b2e539a7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mlc-ai/web-llm", - "version": "0.2.53", + "version": "0.2.54", "description": "Hardware accelerated language model chats on browsers", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/utils/vram_requirements/package.json b/utils/vram_requirements/package.json index 66db98cd..508f6917 100644 --- a/utils/vram_requirements/package.json +++ b/utils/vram_requirements/package.json @@ -19,7 +19,7 @@ "url": "^0.11.3" }, "dependencies": { - "@mlc-ai/web-llm": "^0.2.53", + "@mlc-ai/web-llm": "^0.2.54", "tvmjs": "file:./../../tvm_home/web" } }