Skip to content

Commit

Permalink
[Version] Bump version to 0.2.68 (#577)
Browse files Browse the repository at this point in the history
### Change

- #574
  - Enable image input for web/service worker

### TVMjs
- No change, version `0.18.0-dev0` just like 0.2.66
- Built at
apache/tvm@30fb16a
  • Loading branch information
CharlieFRuan authored Sep 26, 2024
1 parent fde1777 commit 0d6269c
Show file tree
Hide file tree
Showing 27 changed files with 36 additions and 29 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ npm install
npm run build
```

Then, to test the effects of your code change in an example, inside `examples/get-started/package.json`, change from `"@mlc-ai/web-llm": "^0.2.67"` to `"@mlc-ai/web-llm": ../..`.
Then, to test the effects of your code change in an example, inside `examples/get-started/package.json`, change from `"@mlc-ai/web-llm": "^0.2.68"` to `"@mlc-ai/web-llm": ../..`.

Then run:

Expand Down
2 changes: 1 addition & 1 deletion examples/abort-reload/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"url": "^0.11.3"
},
"dependencies": {
"@mlc-ai/web-llm": "^0.2.67"
"@mlc-ai/web-llm": "^0.2.68"
}
}
2 changes: 1 addition & 1 deletion examples/cache-usage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"url": "^0.11.3"
},
"dependencies": {
"@mlc-ai/web-llm": "^0.2.67"
"@mlc-ai/web-llm": "^0.2.68"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"url": "^0.11.1"
},
"dependencies": {
"@mlc-ai/web-llm": "^0.2.67",
"@mlc-ai/web-llm": "^0.2.68",
"progressbar.js": "^1.1.0"
}
}
2 changes: 1 addition & 1 deletion examples/chrome-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"url": "^0.11.1"
},
"dependencies": {
"@mlc-ai/web-llm": "^0.2.67",
"@mlc-ai/web-llm": "^0.2.68",
"progressbar.js": "^1.1.0"
}
}
2 changes: 1 addition & 1 deletion examples/embeddings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"url": "^0.11.3"
},
"dependencies": {
"@mlc-ai/web-llm": "^0.2.67",
"@mlc-ai/web-llm": "^0.2.68",
"langchain": "0.2.15"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"url": "^0.11.3"
},
"dependencies": {
"@mlc-ai/web-llm": "^0.2.67"
"@mlc-ai/web-llm": "^0.2.68"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"url": "^0.11.3"
},
"dependencies": {
"@mlc-ai/web-llm": "^0.2.67"
"@mlc-ai/web-llm": "^0.2.68"
}
}
2 changes: 1 addition & 1 deletion examples/get-started-web-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"url": "^0.11.3"
},
"dependencies": {
"@mlc-ai/web-llm": "^0.2.67"
"@mlc-ai/web-llm": "^0.2.68"
}
}
2 changes: 1 addition & 1 deletion examples/get-started/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"url": "^0.11.3"
},
"dependencies": {
"@mlc-ai/web-llm": "^0.2.67"
"@mlc-ai/web-llm": "^0.2.68"
}
}
2 changes: 1 addition & 1 deletion examples/json-mode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"url": "^0.11.3"
},
"dependencies": {
"@mlc-ai/web-llm": "^0.2.67"
"@mlc-ai/web-llm": "^0.2.68"
}
}
2 changes: 1 addition & 1 deletion examples/json-schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"url": "^0.11.3"
},
"dependencies": {
"@mlc-ai/web-llm": "^0.2.67"
"@mlc-ai/web-llm": "^0.2.68"
}
}
2 changes: 1 addition & 1 deletion examples/logit-processor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"url": "^0.11.3"
},
"dependencies": {
"@mlc-ai/web-llm": "^0.2.67"
"@mlc-ai/web-llm": "^0.2.68"
}
}
2 changes: 1 addition & 1 deletion examples/multi-models/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"url": "^0.11.3"
},
"dependencies": {
"@mlc-ai/web-llm": "^0.2.67"
"@mlc-ai/web-llm": "^0.2.68"
}
}
2 changes: 1 addition & 1 deletion examples/multi-round-chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"url": "^0.11.3"
},
"dependencies": {
"@mlc-ai/web-llm": "^0.2.67"
"@mlc-ai/web-llm": "^0.2.68"
}
}
2 changes: 1 addition & 1 deletion examples/next-simple-chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@mlc-ai/web-llm": "^0.2.67",
"@mlc-ai/web-llm": "^0.2.68",
"@types/node": "20.3.3",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
Expand Down
2 changes: 1 addition & 1 deletion examples/seed-to-reproduce/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"url": "^0.11.3"
},
"dependencies": {
"@mlc-ai/web-llm": "^0.2.67"
"@mlc-ai/web-llm": "^0.2.68"
}
}
2 changes: 1 addition & 1 deletion examples/service-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"url": "^0.11.3"
},
"dependencies": {
"@mlc-ai/web-llm": "^0.2.67"
"@mlc-ai/web-llm": "^0.2.68"
}
}
2 changes: 1 addition & 1 deletion examples/simple-chat-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"url": "^0.11.3"
},
"dependencies": {
"@mlc-ai/web-llm": "^0.2.67"
"@mlc-ai/web-llm": "^0.2.68"
}
}
2 changes: 1 addition & 1 deletion examples/streaming/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"url": "^0.11.3"
},
"dependencies": {
"@mlc-ai/web-llm": "^0.2.67"
"@mlc-ai/web-llm": "^0.2.68"
}
}
2 changes: 1 addition & 1 deletion examples/text-completion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"url": "^0.11.3"
},
"dependencies": {
"@mlc-ai/web-llm": "^0.2.67"
"@mlc-ai/web-llm": "^0.2.68"
}
}
2 changes: 1 addition & 1 deletion examples/vision-model/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"url": "^0.11.3"
},
"dependencies": {
"@mlc-ai/web-llm": "^0.2.67"
"@mlc-ai/web-llm": "^0.2.68"
}
}
6 changes: 3 additions & 3 deletions examples/vision-model/src/vision_model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function setLabel(id: string, text: string) {
label.innerText = text;
}

const USE_WEB_WORKER = false;
const USE_WEB_WORKER = true;

const proxyUrl = "https://cors-anywhere.herokuapp.com/";
const url_https_street = "https://www.ilankelman.org/stopsigns/australia.jpg";
Expand Down Expand Up @@ -45,7 +45,7 @@ async function main() {
)
: await webllm.CreateMLCEngine(selectedModel, engineConfig, chatOpts);

// 1. Single image input (with choices)
// 1. Prefill two images
const messages: webllm.ChatCompletionMessageParam[] = [
{
role: "user",
Expand Down Expand Up @@ -89,7 +89,7 @@ async function main() {
console.log(replyMessage1);
console.log(reply1.usage);

// 3. A follow up multi-image question
// 3. A follow up single-image question
messages.push({ role: "assistant", content: replyMessage1 });
messages.push({
role: "user",
Expand Down
7 changes: 7 additions & 0 deletions examples/vision-model/src/worker.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { WebWorkerMLCEngineHandler } from "@mlc-ai/web-llm";

const handler = new WebWorkerMLCEngineHandler();

self.onmessage = (msg: MessageEvent) => {
handler.onmessage(msg);
};
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mlc-ai/web-llm",
"version": "0.2.67",
"version": "0.2.68",
"description": "Hardware accelerated language model chats on browsers",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion utils/vram_requirements/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"url": "^0.11.3"
},
"dependencies": {
"@mlc-ai/web-llm": "^0.2.67",
"@mlc-ai/web-llm": "^0.2.68",
"@mlc-ai/web-runtime": "0.18.0-dev0"
}
}

0 comments on commit 0d6269c

Please sign in to comment.