Home

Awesome

LLMFarmEval

This is a wrapper iOS app for the llmfarm_core Swift library, based on the llamacpp project. It is used to evaluate the performance of llamacpp on iOS devices. The llmfarm_core.swift dependency has also been altered to support micro benchmarking stats.

How to build

  1. Clone the repository and its submodules
git clone --recurse-submodules https://github.com/brave-experiments/llmfarmeval

  1. Open the project in Xcode

File > Open, and select the LLMFarmEval.xcodeproj file.

  1. Build and Install the project
  1. Copy the model and configuration files

Before running the project, you need to make sure that the model and configuration files are available in the app.

WARNING: By default, the models are copied with iFuse, which can be painfully slow. Alternatively, you can copy models on device to the application directory through Finder, which we found to be significantly faster.

How to run

  1. Open the app on your iOS device.
  2. Type the output filename (without the extension) in the first text field.
  3. Type the model name (including the extension) in the second text field.
  4. Press the "Run Automation" button.
  5. Wait for the evaluation to finish. The output file will be saved in the app's Documents directory.