-
Notifications
You must be signed in to change notification settings - Fork 677
Open
Description
Hi! I've been trying out the LlamaDemo app in executorch-examples and have a two-part question.
The Android app in question: https://github.com/meta-pytorch/executorch-examples/tree/main/llm/android/LlamaDemo
- I'm able to run the model using the
adb
CLI. As the screenshots show the app can identify the model. However it's either throwing an error code 1, or does nothing in trying to configure the model settings. Even if no error is thrown, the model's output is empty. Attaching some screenshots (sorry for the giant images☺️ ).
CLI output working fine:
adb shell "cd /data/local/tmp/llama && ./llama_main --model_path llama3_1B_kv_sdpa_xnn_qe_4_64_1024_embedding_4bit.pte --tokenizer_path tokenizer.model --prompt '<|start_header_id|>system<|end_header_id|>\n<|eot_id|><|start_header_id|>user<|end_header_id|>\nWhat is the capital of Germany?<|eot_id|><|start_header_id|>assistant<|end_header_id|>' --warmup=1 --cpu_threads=5"
I tokenizers:regex.cpp:27] Registering override fallback regex
I 00:00:00.006891 executorch:main.cpp:87] Resetting threadpool with num threads = 5
I 00:00:00.009134 executorch:runner.cpp:44] Creating LLaMa runner: model_path=llama3_1B_kv_sdpa_xnn_qe_4_64_1024_embedding_4bit.pte, tokenizer_path=tokenizer.model
(...)
I 00:00:02.339483 executorch:text_llm_runner.cpp:208] Warmup run finished!
I 00:00:02.339496 executorch:text_llm_runner.cpp:95] RSS after loading model: 1128.445312 MiB (0 if unsupported)
I 00:00:02.339657 executorch:text_llm_runner.cpp:152] Max new tokens resolved: 108, given pos_ 0, num_prompt_tokens 20, max_context_len 1024
<|start_header_id|>system<|end_header_id|>\n<|eot_id|><|start_header_id|>user<|end_header_id|>\nWhat is the capital of Germany?<|eot_id|><|start_header_id|>assistant<|end_header_id|>I 00:00:02.412924 executorch:text_prefiller.cpp:93] Prefill token result numel(): 128256
I 00:00:02.413203 executorch:text_llm_runner.cpp:178] RSS after prompt prefill: 1128.445312 MiB (0 if unsupported)
Die Hauptstadt Deutschlands ist Berlin.<|eot_id|>I 00:00:02.583634 executorch:text_token_generator.h:123]
Reached to the end of generation
(... the rest of the output is truncated)
- I see the README.md in the parent
llm
directory mentions that the demos will be migrated to the main ExecuTorch examples directory. Do you have a timeline for this? Arm is referring this piece in one of our Learning Paths, so I'd like to keep this up to date.
I appreciate your time!
Kind regards,
Annie
Metadata
Metadata
Assignees
Labels
No labels