This repository provides
Llama 3.1 8B Instruct compiled and optimized for Mobilint NPU hardware, packaged for use with
llama-cli-mblt.
1# Build llama-cli-mblt
2cd llama.cpp
3cmake -B build -DLLAMA_MOBILINT=ON -DLLAMA_MOBILINT_RUNTIME_DIR=/path/to/qbruntime -DCMAKE_BUILD_TYPE=Release
4cmake --build build --target llama-cli-mblt -j$(nproc)
1# Download model files
2huggingface-cli download mobilint/Llama-3.1-8B-Instruct-GGUF --local-dir models/llama-8b
3
4# Run
5./build/bin/llama-cli-mblt \
6 --gguf models/llama-8b/llama-3.1-8b-instruct-vocab.gguf \
7 --embd models/llama-8b/target_emb.bin \
8 --mxq models/llama-8b/single_Body_Llama-3.1-8B-Instruct.mxq \
9 --core-mode global4 --chat \
10 -p "What is the meaning of life?" -n 256
1# Download with eagle3 branch
2huggingface-cli download mobilint/Llama-3.1-8B-Instruct-GGUF --revision eagle3 --local-dir models/llama-8b-eagle3
3
4# Run with ~2-4x speedup
5./build/bin/llama-cli-mblt \
6 --gguf models/llama-8b-eagle3/llama-3.1-8b-instruct-vocab.gguf \
7 --embd models/llama-8b-eagle3/target_emb.bin \
8 --mxq models/llama-8b-eagle3/single_Body_Llama-3.1-8B-Instruct.mxq \
9 --mxq-fc models/llama-8b-eagle3/single_Fc_Llama-3.1-8B-Instruct.mxq \
10 --mxq-draft models/llama-8b-eagle3/Draft_Llama-3.1-8B-Instruct.mxq \
11 --embd-draft models/llama-8b-eagle3/draft_emb.bin \
12 --d2t models/llama-8b-eagle3/d2t.bin \
13 --core-mode global4 --n-draft 2 --tree-depth 6 --total-tokens 23 \
14 --chat --temp 0.0 -p "Explain quantum computing" -n 200
15
16# Interactive chat
17./build/bin/llama-cli-mblt \
18 --gguf models/llama-8b-eagle3/llama-3.1-8b-instruct-vocab.gguf \
19 --embd models/llama-8b-eagle3/target_emb.bin \
20 --mxq models/llama-8b-eagle3/single_Body_Llama-3.1-8B-Instruct.mxq \
21 --mxq-fc models/llama-8b-eagle3/single_Fc_Llama-3.1-8B-Instruct.mxq \
22 --mxq-draft models/llama-8b-eagle3/Draft_Llama-3.1-8B-Instruct.mxq \
23 --embd-draft models/llama-8b-eagle3/draft_emb.bin \
24 --d2t models/llama-8b-eagle3/d2t.bin \
25 --core-mode global4 --n-draft 2 --tree-depth 6 --total-tokens 23 \
26 -i -n 256
This model is compiled and optimized for
Mobilint NPU hardware. It is intended to be used with
llama-cli-mblt from llama.cpp's mobilint example.