Comments (5)
The /resolve
should be correct; the unmatching model id might caused the issue. Let me know if this fixed it: #317 Thanks!
from web-llm.
That did it! Though I get a new error now -
Uncaught Error: Cannot find adapter that matches the request
And a warning before it -
WebGPU on Linux requires GLES compat, or command-line flag --enable-features=Vulkan, or command-line flag --enable-features=SkiaGraphite (and skia_use_dawn = true GN arg)
Do I need Unsafe WebGPU support to be enabled? If so, is this project for experimental purposes only? Not meant to be used in a production scenario?
from web-llm.
Which browser are you using? We're mostly tested on Chrome -- e.g. for the latest version of Chrome, Macbooks do not need any flag to run things.
You could also go to webgpureport.org to see what it says there; normally if the report is fine, web llm should work fine.
from web-llm.
I'm running Ubuntu 22.04 on an EliteBook with a TigerLake GT2. I had to enable a few things -
google-chrome --enable-unsafe-webgpu --enable-dawn-features=allow_unsafe_apis --enable-features=Vulkan,UseSkiaRenderer
Now I see this -
Uncaught Error: This model requires WebGPU extension shader-f16
webgpureport.org does not list shader-f16 as a feature -
features:
---------
bgra8unorm-storage
chromium-experimental-subgroup-uniform-control-flow
chromium-experimental-subgroups
chromium-experimental-timestamp-query-inside-passes
depth-clip-control
depth32float-stencil8
float32-filterable
indirect-first-instance
rg11b10ufloat-renderable
texture-compression-astc
texture-compression-bc
texture-compression-etc2
timestamp-query
Chrome version is 122.0.6261.69
from web-llm.
I see; not sure if using Chrome Canary would make things easier (e.g. not needing the flags).
Regarding shader-f16, try using models that have f32
rather than f16
. You can freely change the model in https://github.com/mlc-ai/web-llm/blob/main/examples/chrome-extension/src/popup.ts#L44-L53 to any in https://github.com/mlc-ai/web-llm/blob/main/examples/simple-chat/src/gh-config.js
from web-llm.
Related Issues (20)
- [BUG] Cannot find global function vm.builtin.apply_presence_and_frequency_penalty HOT 4
- How to get in touch regarding a security concern HOT 2
- GPU Device Error: Uncaught (in promise) TypeError: lib$1.exports.detectGPUDevice is not a function HOT 4
- [TECHNICALDEBT] Put ChatRestModule in shape HOT 2
- Chrome demo frequently terminates while loading HOT 18
- I am seeing 100% RAM usage in my laptop when running this. Can you please let me know if its an issue or the minimum RAM requirement is higher than 8 GB? HOT 1
- Not working HOT 2
- WebCPU? HOT 3
- try to run gemma-7b but failed HOT 1
- simple-chat: error during loading params onto WebGPU, GPUPipelineError: A valid external Instance reference no longer exists HOT 3
- Simple-chat is successfully deployed on the PC, an error occurs:Init error, TypeError: crypto.randomUUlD is not a function when I accesses the web port using the smart phone browser HOT 1
- ES module build of web-llm
- Error: Unknown conv template gpt2 when using prebuild gpt2 in examples/get-started HOT 2
- [Announcement] Breaking changes regarding conversation template HOT 1
- CLI run on MacOS error "unrecognized arguments: --allreduce_strategy=RING" HOT 1
- Model request: new Mistral 7B with 32K context HOT 1
- [Vue/Vite/Nuxt] Build Error: require is not defined in ES module scope, you can use import instead HOT 2
- Gibberish output with `Llama-2-7b-chat-hf-q4f32_1` HOT 17
- Add support for Gemma 7B
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from web-llm.