Skip to content

Commit

Permalink
Assets/Modles: Add llama2c configuration file
Browse files Browse the repository at this point in the history
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
niley7464 authored and wooksong committed Sep 25, 2024
1 parent 86db353 commit 1ce8455
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ml_inference_offloading/src/main/assets/models/README.md
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 ml_inference_offloading/src/main/assets/models/llama2c.conf
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"
}
]
}
}

0 comments on commit 1ce8455

Please sign in to comment.