-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Assets/Modles: Add llama2c configuration file
This patch adds llama2c configuration file. model and tokenizer bin file have to be copied to assets directory to use llama2 conf. Signed-off-by: Yelin Jeong <[email protected]>
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
## Configuration files of ML model | ||
|
||
### mobilenet_v1_1.0_224_quant | ||
|
||
### yolov8s_float32 | ||
|
||
### llama2c | ||
|
||
To run llama2c model, copy model.bin and tokenizer.bin file into this directory. | ||
You can download and train custom small sized model that can be executed on Android devices [here](https://github.com/karpathy/llama2.c/tree/master?tab=readme-ov-file#custom-tokenizers) |
17 changes: 17 additions & 0 deletions
17
ml_inference_offloading/src/main/assets/models/llama2c.conf
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,17 @@ | ||
{ | ||
"single" : | ||
{ | ||
"framework" : "llama2c", | ||
"model" : ["llama2c.bin", "tokenizer.bin"], | ||
"input_info" : [ | ||
{ | ||
"format" : "flexible" | ||
} | ||
], | ||
"output_info" : [ | ||
{ | ||
"type" : "uint8" | ||
} | ||
] | ||
} | ||
} |