llama.cpp/examples/llama.swiftui
Georgi Gerganov 800a489e4a
llama.swiftui : add bench functionality (#4483)
* llama.swiftui : add bench button

* llama.swiftui : initial bench functionality

* force to use n_gpu_layers on simulator

* add download buttons & expose llamaState.loadModel

* update project.pbxproj

* comment #Preview & fix editorconfig check

* gitignore : xcode stuff

* llama.swiftui : UX improvements

* llama.swiftui : avoid data copy via "downloadTask"

* llama.swiftui : remove model from project

* llama : remove "mostly" from model infos

* llama.swiftui : improve bench

---------

Co-authored-by: jhen <developer@jhen.me>
2023-12-17 19:38:41 +02:00
..
llama.cpp.swift llama.swiftui : add bench functionality (#4483) 2023-12-17 19:38:41 +02:00
llama.swiftui llama.swiftui : add bench functionality (#4483) 2023-12-17 19:38:41 +02:00
llama.swiftui.xcodeproj llama.swiftui : add bench functionality (#4483) 2023-12-17 19:38:41 +02:00
.gitignore llama.swiftui : add bench functionality (#4483) 2023-12-17 19:38:41 +02:00
README.md examples : iOS example with swift ui (#4159) 2023-11-27 16:56:52 +02:00

llama.swiftui

Local inference of llama.cpp on an iPhone. So far I only tested with starcoder 1B model, but it can most likely handle 7B models as well.

https://github.com/bachittle/llama.cpp/assets/39804642/e290827a-4edb-4093-9642-2a5e399ec545