Literature Review: MELTing point: Mobile Evaluation of Language Transformers | Bnechmarking LLMs on Phones
Mirrored from r/LocalLLaMA for archival readability. Support the source by reading on the original site.
| Finished reading the paper: MELTing point: Mobile Evaluation of Language Transformers I am starting to benchmark LLMs on edge devices, particularly phones thus been reading a lot on the what has been done and what is currently being done and wanted to share you my journey of reading such papers and my takes on them.
This is one of the finest papers on mobile-edge performance benchmarking I have read in a while and it is so because of their true-to-user setup, like how a user will actually use the LLMs on their device and their idea of prefill-decode disaggregation! They have tested - iphone 6 SE - iPhone 14 Pro - S23 - Pixel 6a - NVIDIA JetsonNano - NVIDIA AGX Orin The models - tinyLlama - Llama-2 - Gemma - Zephyr-3B - Mistral-7B with backends - MLC-LLM - llama.cpp Now these are not used barebones but rather with a chat app- MLChat (Android and iOS) and LLMFarm (iOS Metal) So, they have a sophisticated setup with a RPi-4 at the center of all acting as the controller responsible for
The two segments - PhoneLab (all Android and iOS) and JetsonLab (NVIDIA devices) connect to this RPi-4. They used a Thermal camera for measuring temps on phones + SysFS on NVIDIA devices (thus one disadvantage that we dont get per component thermals sadly). They used a relay + a YAKUSH controller to power on the phones all at once and power at once (they did so that the USB only acts as data transfer cables. not charging but it kinda failed for iPhones especially) They filtered oasst1 dataset and gathered 50 prompts with at least 6-10 prompts and median of ~36 words. They do it 3 times. Now, for the fun part. They literally made sure that the whole user experience (opening chat app, chatting with LLM, LLM responding etc) is all captured and they do it through ads on Android and their custom HID setup for iOS (using the RPi-4 attached to a keyboard/mouse to send in typed response, scrolling etc). They also explore the possibility of doing the prefill on NVIDIA devices and sending the rest to the phones to decode through WiFi 6! Another I liked is their QES score or Quality Exp score which they categorize in three types:
Results (not much the usual):
Quirks:
Overall this was a good read for the models and backends they have used and especially including the multi-turn conversations, QES scoring, realistic testing of the the devices. So, if one can set it up, then it becomes a very interesting way to test out edge devices. [link] [comments] |
Discussion (0)
Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.
Sign in →No comments yet. Sign in and be the first to say something.