Skip to content

Commit 79b79cb

Browse files
mergennachinfacebook-github-bot
authored andcommitted
Update llama2 readme file - main branch (#3340)
Summary: Pull Request resolved: #3340 Reviewed By: orionr, kimishpatel, cccclai Differential Revision: D56553088 Pulled By: mergennachin fbshipit-source-id: 2994dd3ab2692c5b972316af1617bd06d647af96
1 parent b2a7243 commit 79b79cb

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

examples/models/llama2/README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,22 @@ We evaluated UncycloText perplexity using [LM Eval](https://github.com/EleutherAI/l
3333

3434
Note that groupsize less than 128 was not enabled, since such model were still too large. This is because our current efforts have focused on enabling FP32 and support for FP16 is under way. What this implies for model size is that 1) embedding table is in FP32 and 2) quantized weights scales are FP32.
3535

36+
## Enablement
37+
38+
We have verified running Llama 2 7B [mobile applications](#step-6-build-mobile-apps) efficiently on select devices including the iPhone 15 Pro, iPhone 15 Pro Max, Samsung Galaxy S22 and S24, and OnePlus 12.
39+
40+
For Llama 3 8B, we have verified so far on iPhone 15 Pro Max and OnePlus 12 (with 16GB RAM).
41+
3642
## Performance
3743

38-
Performance was measured on Samsung Galaxy S22, S24, One Plus 12 and iPhone 15 max Pro. Measurement performance is in terms of tokens/second.
44+
Llama2 7B performance was measured on the Samsung Galaxy S22, S24, and OnePlus 12 devices. The performance measurement is expressed in terms of tokens per second using an [adb binary-based approach](#step-5-run-benchmark-on).
3945

4046
|Device | Groupwise 4-bit (128) | Groupwise 4-bit (256)
4147
|--------| ---------------------- | ---------------
42-
|Galaxy S22* | 8.15 tokens/second | 8.3 tokens/second |
43-
|Galaxy S24* | 10.66 tokens/second | 11.26 tokens/second |
44-
|One plus 12* | 11.55 tokens/second | 11.6 tokens/second |
45-
|Galaxy S22** | 5.5 tokens/second | 5.9 tokens/second |
46-
|iPhone 15 pro** | ~6 tokens/second | ~6 tokens/second |
47-
48-
*: Measured via adb binary based [workflow](#step-5-run-benchmark-on)
48+
|Galaxy S22 | 8.15 tokens/second | 8.3 tokens/second |
49+
|Galaxy S24 | 10.66 tokens/second | 11.26 tokens/second |
50+
|OnePlus 12 | 11.55 tokens/second | 11.6 tokens/second |
4951

50-
**: Measured via app based [workflow](#step-6-build-mobile-apps)
5152

5253
# Instructions
5354

0 commit comments

Comments
 (0)