web-llm
web-llm copied to clipboard
Where is the source code for vicuna-7b_webgpu.wasm?
Where is the source code for vicuna-7b_webgpu.wasm, please?
Thank you.
We will post a tutorial on how to build the model into generated source code, but currently that's not ready until we migrate the vicuna-v0 to vicuna-v1.1 (The reason is that vicuna-v0 is deprecated and it's complicated to get its weight compared with v1.1). Do you want a link to the generated code in .wgsl format right now?
I will wait for that tutorial. Thank you for the info.
hi, you can find it in https://github.com/mlc-ai/web-llm/tree/gh-pages/docs/dist/vicuna-7b
@Ryan-yang125 At the above location, I found the compiled file | the executable (.wasm), but not the text file | the source file (.wat). Do I need a special kind of access to see the .wat file?
Thank you.
Thanks for your patience. We've just added an instruction for building models and deploy locally. Feel free to check it out. The wasm filet will be under dist/vicuna-7b-v1 after running build.py
Additional info to get source code, run
python3 build.py --target webgpu --debug-dump
you will see the IR and wgsl file under dist/vicuna-7b-v1/debug