Skip to content

Commit

Permalink
[iOS] llama2 setup (#561)
Browse files Browse the repository at this point in the history
NOTE: llama2 testflight quick try. Vicuna is a bit out dated and can be
added back once we upgrade everything
  • Loading branch information
tqchen authored Jul 19, 2023
1 parent 5a4ba31 commit 60249d7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions ios/MLCChat/app-config.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"model_libs": [
"vicuna-v1-7b-q3f16_0",
"Llama-2-7b-chat-hf-q3f16_1",
"RedPajama-INCITE-Chat-3B-v1-q4f16_0"
],
"model_list": [
{
"model_url": "https://huggingface.co/mlc-ai/mlc-chat-vicuna-v1-7b-q3f16_0/",
"local_id": "vicuna-v1-7b-q3f16_0"
"model_url": "https://huggingface.co/mlc-ai/mlc-chat-RedPajama-INCITE-Chat-3B-v1-q4f16_0/",
"local_id": "RedPajama-INCITE-Chat-3B-v1-q4f16_0"
}
],
"add_model_samples": [
Expand Down
4 changes: 2 additions & 2 deletions ios/prepare_libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ do
-h | --help ) help
exit
;;
*)
*)
echo "$script: illegal option $1"
usage
exit 1 # error
Expand Down Expand Up @@ -71,4 +71,4 @@ cd ..
rm -rf MLCSwift/tvm_home
ln -s ../../3rdparty/tvm MLCSwift/tvm_home

python3 prepare_model_lib.py
python prepare_model_lib.py
3 changes: 2 additions & 1 deletion ios/prepare_params.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ rm -rf dist
mkdir -p dist

declare -a builtin_list=(
"RedPajama-INCITE-Chat-3B-v1-q4f16_0"
"Llama-2-7b-chat-hf-q3f16_1"
# "RedPajama-INCITE-Chat-3B-v1-q4f16_0"
# "vicuna-v1-7b-q3f16_0"
# "rwkv-raven-1b5-q8f16_0"
# "rwkv-raven-3b-q8f16_0"
Expand Down

0 comments on commit 60249d7

Please sign in to comment.