File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ if [[ ! -f $1 ]]; then
5
5
echo " cannot find config" $1
6
6
fi
7
7
8
+ MLC_LLM_HOME_SET=" ${MLC_LLM_HOME:- } "
9
+
10
+ if [ -z ${MLC_LLM_HOME_SET} ]; then
11
+ export MLC_LLM_HOME=" ${MLC_LLM_HOME:- mlc-llm} "
12
+ fi
13
+
8
14
rm -rf site/dist
9
15
mkdir -p site/dist site/_inlcudes
10
16
@@ -15,9 +21,9 @@ cp web/llm_chat.html site/_includes
15
21
cp web/llm_chat.js site/dist/
16
22
cp web/llm_chat.css site/dist/
17
23
18
- cp $MLC_LLM_HOME / dist/tvmjs_runtime.wasi.js site/dist
19
- cp $MLC_LLM_HOME / dist/tvmjs.bundle.js site/dist
20
- cp -r $MLC_LLM_HOME / dist/sentencepiece site/dist
24
+ cp dist/tvmjs_runtime.wasi.js site/dist
25
+ cp dist/tvmjs.bundle.js site/dist
26
+ cp -r dist/sentencepiece site/dist
21
27
22
28
if [ -d " $MLC_LLM_HOME /dist/vicuna-v1-7b-q4f32_0/params" ]; then
23
29
mkdir -p site/dist/vicuna-v1-7b-q4f32_0
Original file line number Diff line number Diff line change 1
1
dist
2
2
llm-chat-config.json
3
+ global_config.json
3
4
_includes /stable_diffusion.html
4
5
_site
Original file line number Diff line number Diff line change 22
22
tvmjsGlobalEnv . sentencePieceProcessor = getTokenizer ;
23
23
</ script >
24
24
25
+ < form >
26
+ < select id ="model-name ">
27
+ < option selected ="selected "> vicuna-v1-7b-q4f32_0</ option >
28
+ <!-- <option >dolly-v1-3b-q4f32_0</option> -->
29
+ </ select >
30
+ </ form >
31
+
25
32
< script src ="dist/llm_chat.js "> </ script >
26
33
< link href ="dist/llm_chat.css " rel ="stylesheet " type ="text/css "/>
27
34
You can’t perform that action at this time.
0 commit comments