-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve model download/convert; copy model
assets
- Loading branch information
Showing
11 changed files
with
1,680 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,3 +94,6 @@ ungitable/ | |
# download/convert model files | ||
models/download/ | ||
models/converted/ | ||
|
||
# environment variables | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
vendor/ | ||
Pods/ | ||
Pods/ | ||
falcon-*.bin | ||
gemma-*.bin | ||
phi-*.bin | ||
stablelm-*.bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
echo "INFO: Copying model for iOS." | ||
|
||
# Copy gemma-2b-it-cpu-int4.bin from the models built folder if it doesn't exist. | ||
TFLITE_FILE=./gemma-2b-it-cpu-int4.bin | ||
if test -f "$TFLITE_FILE"; then | ||
echo "INFO: gemma-2b-it-cpu-int4.bin exists. Skip downloading and use the local model." | ||
else | ||
cp ../../models/converted/gemma-2b-it-cpu-int4.bin ${TFLITE_FILE} | ||
echo "INFO: Copied gemma-2b-it-cpu-int4.bin to $TFLITE_FILE ." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
HF_API_TOKEN="YOUR_HUGGINGFACE_API_TOKEN" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.