8000 GitHub - nerve-sparks/iris_android: IRIS is an android app for interfacing with GGUF / llama.cpp models locally.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

nerve-sparks/iris_android

Repository files navigation

Project Description

  • This repository contains llama.cpp based offline android chat application cloned from llama.cpp android example. Install, download model and run completely offline privately.
  • The app supports downloading GGUF models from Hugging Face and offers customizable parameters for flexible use.
  • Being open-source, it allows for easy modifications and improvements, providing a secure, private, and fully offline experience.

Images

Main Screen Screenshot

Main Screen

This is the main interface of the app where users can access all core functionalities.

Chat Screen Screenshot

Chat Screen

The chat feature allows users to interact in real-time and access AI-driven responses.

Settings Screen
8000
 Screenshot

Settings Screen

Users can customize app preferences and configure their account settings here.

Models Screen Screenshot

Models Screen

This screen displays available AI models and allows users to manage them efficiently.

Parameters Screen Screenshot

Parameters Screen

Users can adjust parameters to fine-tune the app's performance based on their needs.

Installation

Run

Features

  • Works Offline: Access all features without needing an internet connection.
  • Privacy-Focused: All data is processed securely on your device.
  • Expandable Models: Download external GGUF models from Hugging Face.
  • Open Source: Fully transparent development.
  • Customizable Parameters: n_threads, top_k, top_p, and temperature can be adjusted to optimize performance and behavior based on device capabilities and desired output.
  • Text To Speech: Support for Text-to-Speech functionality.
  • Speech To Text: Support for Speech-to-Text functionality.
  • Default Model Selection: Set a default model to load automatically on startup.

Optimizing Your Experience with Iris

The performance of Iris is directly influenced by the size, speed, and compute requirements of the models you use. These factors also impact the overall user experience. For a faster and smoother experience, consider downloading smaller models.

Example Recommendation:
On opening the app, users can download suggested models to optimize performance based on their preferences and device capabilities.


Note:

  • Smaller models are ideal for quicker interactions but may compromise slightly on response quality.
  • Larger models offer more comprehensive responses but require higher compute power and may result in slower speeds.
  • Choose a model that best balances speed and quality for your specific use case.

Disclaimer:

  • Iris may produce inaccurate results depending on the complexity of queries and model limitations.
  • Performance and accuracy are influenced by the size and type of model selected.

Build

  • Download Android studio
  • Clone this repository and import into Android Studio
 git clone https://github.com/nerve-sparks/iris_android.git
  • Clone the llama.cpp repository in the same folder as iris_android
 git clone https://github.com/ggerganov/llama.cpp
  • Navigate to the llama.cpp directory and checkout a specific commit for proper compatibility:
cd llama.cpp
git checkout 1f922254f0c984a8fb9fbaa0c390d7ffae49aedb
cd ..
  • Open developer options on the Android mobile phone.
  • Enable developer options.
  • Click on developer options and enable wireless debugging.
  • In Android Studio, select the drop down on the left side of the 'app' button on the Navbar.
  • Select on 'Pair devices using Wi-Fi'. A QR code appears on screen.
  • Click on wireless debugging on Android phone. Select 'Pair device with QR code'. Scan the code. (Make sure both devices are on the same Wi-fi)
  • You can use Usb Debugging also to connect your phone.
  • Once the phone is connected, select the device name in the drop down menu and click on play button.
  • In the app, download at least one model from the given options.
  • Now you can run the app offline. (In airplane mode as well)

Contributing

  1. Fork the repository.
  2. Create a new feature branch:
    git checkout -b my-new-feature
  3. Commit your changes:
    git commit -m 'Add some feature'
  4. Push your branch to the remote repository:
    git push origin my-new-feature
  5. Open a Pull Request.

Maintained by Nerve Sparks

0