Skip to content

Conversation

@CharlieFRuan
Copy link
Member

@CharlieFRuan CharlieFRuan commented Sep 26, 2024

The WebGPU API requestAdapterInfo() was deprecated as described here: https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter/requestAdapterInfo#browser_compatibility. This caused npm run build under web/ to cause error since it cannot find requestAdapterInfo, hence the PR: #17371

However, downstream users may still have older browser version and would still rely on requestAdapterInfo(), see mlc-ai/web-llm#572 for an example.

This PR casts adapter to any type when calling requestAdapterInfo(), so it does not complain about not being able to find requestAdapterInfo() during compile time, hence no issue should be observed during runtime on older browsers, achieving backward compatibility.

Bump TVMjs version from 0.18.0-dev0 to 0.18.0-dev2 (skipped dev1 due to a mistake)

CharlieFRuan added a commit to mlc-ai/web-llm that referenced this pull request Sep 26, 2024
This PR bumps TVMjs (i.e. `@mlc-ai/web-runtime`) from `0.18.0-dev0` to
`0.18.0-dev1`.

The only change is:
- apache/tvm#17420

TVMjs `0.18.0-dev1` is compiled at
apache/tvm@5e85443
with apache/tvm#17420 cherry-picked on top
 
This should fix:
- #572
CharlieFRuan added a commit to mlc-ai/web-llm that referenced this pull request Sep 26, 2024
### Change
- #580
- Bumps TVMjs version to fix
#572

### TVMjs
Updated TVMjs to `0.18.0-dev1`, compiled at
apache/tvm@5e85443
with apache/tvm#17420 cherry-picked on top
- The only diff is apache/tvm#17420
@CharlieFRuan CharlieFRuan marked this pull request as draft September 27, 2024 05:40
@CharlieFRuan CharlieFRuan marked this pull request as ready for review September 27, 2024 06:19
CharlieFRuan added a commit to mlc-ai/web-llm that referenced this pull request Sep 27, 2024
### Change

- This version tries to solve the same issue in `0.2.70`, which bumped
TVMjs from `0.18.0-dev0` to `0.18.0.dev1`
- This version bumps from `0.18.0.dev1` to `0.18.0.dev2`
- The previous issue described in
#581 was not resolved as
apache/tvm#17420 missed an `await`.
`0.18.0.dev2` resolves this. Confirmed in an older version of Brave
browser: `Version 1.65.133 Chromium: 124.0.6367.208 (Official Build)
(arm64)`

### TVMjs
- Updated TVMjs to `0.18.0-dev2`, compiled at
apache/tvm@5e85443
with apache/tvm#17420 cherry-picked on top
- The only diff is apache/tvm#17420
@CharlieFRuan
Copy link
Member Author

@tvm-bot rerun

@tqchen tqchen merged commit 7ff4d0d into apache:main Sep 28, 2024
15 of 17 checks passed
@ysh329
Copy link
Contributor

ysh329 commented Oct 8, 2024

Hi @CharlieFRuan , recently release starts, but I found WebGPU part has some modification about version number. Is it required to change version in web/package-lock.json with same version number?

Each modification includes fixed five file modifications: #17156. If there are any modifications related to web/package-lock. json, I will add them to the document and make the necessary changes this time if requied.

@CharlieFRuan
Copy link
Member Author

Hi @ysh329, thanks for the note! Just to check my understanding, does the version in web/package-lock.json have to match all five files, including the dev suffix?

@ysh329
Copy link
Contributor

ysh329 commented Oct 9, 2024

@CharlieFRuan I think it's better keep same between dev suffix in web/package-lock.json and other five files. Besides, I wann know in this patch why change the dev0 to dev2, but not dev1?

@CharlieFRuan
Copy link
Member Author

CharlieFRuan commented Oct 9, 2024

@ysh329 I see, then I think it's easier for me to revert the version in web/package-lock.json. Shall I make a PR to revert back to 0.18.0-dev0? Thanks

@ysh329
Copy link
Contributor

ysh329 commented Oct 10, 2024

@CharlieFRuan Don't worry. Let me fix this minor problem.

@CharlieFRuan
Copy link
Member Author

Thanks a lot!

jingyi-zhao-01 pushed a commit to jingyi-zhao-01/web-llm that referenced this pull request Dec 8, 2024
…ai#580)

This PR bumps TVMjs (i.e. `@mlc-ai/web-runtime`) from `0.18.0-dev0` to
`0.18.0-dev1`.

The only change is:
- apache/tvm#17420

TVMjs `0.18.0-dev1` is compiled at
apache/tvm@5e85443
with apache/tvm#17420 cherry-picked on top
 
This should fix:
- mlc-ai#572
jingyi-zhao-01 pushed a commit to jingyi-zhao-01/web-llm that referenced this pull request Dec 8, 2024
### Change
- mlc-ai#580
- Bumps TVMjs version to fix
mlc-ai#572

### TVMjs
Updated TVMjs to `0.18.0-dev1`, compiled at
apache/tvm@5e85443
with apache/tvm#17420 cherry-picked on top
- The only diff is apache/tvm#17420
jingyi-zhao-01 pushed a commit to jingyi-zhao-01/web-llm that referenced this pull request Dec 8, 2024
### Change

- This version tries to solve the same issue in `0.2.70`, which bumped
TVMjs from `0.18.0-dev0` to `0.18.0.dev1`
- This version bumps from `0.18.0.dev1` to `0.18.0.dev2`
- The previous issue described in
mlc-ai#581 was not resolved as
apache/tvm#17420 missed an `await`.
`0.18.0.dev2` resolves this. Confirmed in an older version of Brave
browser: `Version 1.65.133 Chromium: 124.0.6367.208 (Official Build)
(arm64)`

### TVMjs
- Updated TVMjs to `0.18.0-dev2`, compiled at
apache/tvm@5e85443
with apache/tvm#17420 cherry-picked on top
- The only diff is apache/tvm#17420
atebites-hub pushed a commit to atebites-hub/web-llm that referenced this pull request Oct 4, 2025
…ai#580)

This PR bumps TVMjs (i.e. `@mlc-ai/web-runtime`) from `0.18.0-dev0` to
`0.18.0-dev1`.

The only change is:
- apache/tvm#17420

TVMjs `0.18.0-dev1` is compiled at
apache/tvm@5e85443
with apache/tvm#17420 cherry-picked on top
 
This should fix:
- mlc-ai#572
atebites-hub pushed a commit to atebites-hub/web-llm that referenced this pull request Oct 4, 2025
### Change
- mlc-ai#580
- Bumps TVMjs version to fix
mlc-ai#572

### TVMjs
Updated TVMjs to `0.18.0-dev1`, compiled at
apache/tvm@5e85443
with apache/tvm#17420 cherry-picked on top
- The only diff is apache/tvm#17420
atebites-hub pushed a commit to atebites-hub/web-llm that referenced this pull request Oct 4, 2025
### Change

- This version tries to solve the same issue in `0.2.70`, which bumped
TVMjs from `0.18.0-dev0` to `0.18.0.dev1`
- This version bumps from `0.18.0.dev1` to `0.18.0.dev2`
- The previous issue described in
mlc-ai#581 was not resolved as
apache/tvm#17420 missed an `await`.
`0.18.0.dev2` resolves this. Confirmed in an older version of Brave
browser: `Version 1.65.133 Chromium: 124.0.6367.208 (Official Build)
(arm64)`

### TVMjs
- Updated TVMjs to `0.18.0-dev2`, compiled at
apache/tvm@5e85443
with apache/tvm#17420 cherry-picked on top
- The only diff is apache/tvm#17420
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants