Skip to Main Content

The main goal of the project was to run Bonsai 2 family of models at SOTA performance on my S26 which a latest Android Flagship phone. We achieved that! Intermediate performance writeup: https://apurva-mishra.com/posts/8/ This intermediate writeup does not reflect the current peak performance of 120tok/s. It was done because Chris Lattner had appreciated the project and we wanted to capitalise on that opportunity. With the latest updates, on S26, it now runs (tg128 benchmark): 1. Bonsai 2 2B at 120.84 tok/s which is 2.33x of llama.cpp baseline. 2. LFM3 1.7b at 46 tok/s which is 8% faster than llama.cpp baseline. In preparation for the hackathon I worked on adding an android target to the modular compiler stack. https://x.com/mav3ri3k/status/2113730606215397523?a=0oWCiuzOQDeSPAqwKBc&s=20 This was done because earlier the plan was to use my own compiler stack, but since modular open sourced their compiler just days before the hackathon, I thought that this would be the perfect opportunity to use a more mature compiler stack and push agents on. During the hackathon, the main job was about delivering SOTA model inference performance on my S26 with the latest Qualcom Snapdragon 8 Elite Gen 5. The target set was 120tok/s since that was the reference speed I had for the model on Iphone 18 Pro (https://x.com/adrgrondin/status/2110852239690473712?a=Q6uOLHRdMHbxs6LgiHk&s=20) During the hackathon, we went from Bonsai 2 2B initially running at 40tok/sec (below the llama.cpp baseline) to 120tok/s.

Team

More from Meta Global AI Developer Hackathon

Cardo turns the world around you into Kurdish flashcards. Kurdish is spoken by tens of millions of people, but it has very few learning tools, and most…

Kurdolingo project preview

oqed is an LLM-guided superoptimizer for x86-64. You point it at a C or C++ project and it does the rest: - builds the project and runs its workload…

oqed project preview

Playtest Agent plays a game from screenshots, looks for bugs, then replays each report and has a judge check it. I make games alone. Solo developers and…

Adrian project preview

Open-source npm malware detection on Meta's models: a live monitor that flags new malware about a day before the public lists, a Muse agent that investigates…

Gatekeeper project preview

Video2URDF turns one short phone video of a real articulated object (a laptop lid, a drawer, a desk lamp, a microwave door) into a measured URDF/MJCF a robot…

Video2URDF project preview

Glimmer Scope opens up Muse Glimmer 30B so you can see and steer the concepts it thinks with. I trained sparse autoencoders on nine layers of Glimmer's…

Kroonen AI project preview