8000 GitHub - Aban3049/DeepSeekR1: Kotlin Multiplatform project for Android, iOS, and Desktop demonstrating local AI chat with DeepSeek R1 (LLaMA). Run on-device LLMs seamlessly across platforms. πŸš€
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Kotlin Multiplatform project for Android, iOS, and Desktop demonstrating local AI chat with DeepSeek R1 (LLaMA). Run on-device LLMs seamlessly across platforms. πŸš€

Notifications You must be signed in to change notification settings

Aban3049/DeepSeekR1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

✨ Kotlin Multiplatform LLM Chat with Ollama

This is a Kotlin Multiplatform (KMP) project demonstrating how to integrate a locally running Large Language Model (LLM) with Ollama into a KMP application that supports Android, iOS, and Desktop platforms. The project showcases key features like chat history management with Room, user preferences storage with DataStore, and support for both light and dark themes.

πŸš€ Features

  • βœ… Local LLM Integration: Chat with locally running DeepSeek models on Ollama.
  • πŸ“± Multiplatform Support: Works seamlessly on Android, iOS, and Desktop.
  • πŸ’Ύ Chat History: Uses Room Database (for Android & Desktop) to persist chat history.
  • βš™οΈ User Preferences: Uses DataStore to save theme and model preferences.
  • 🎨 Theming: Supports light and dark themes.
  • 🧠 Example Models:
    • πŸ”Ή deepseek-r1:1.5b
    • πŸ”Ή deepseek-coder:1.3b

πŸ›  Tech Stack

  • πŸ— Kotlin Multiplatform (KMP)
  • 🎨 Jetpack Compose (Android UI)
  • 🍏 Jetpack Compose (iOS UI)
  • πŸ’» Compose for Desktop
  • 🌐 Ktor (for networking & communicating with Ollama API)
  • πŸ—„ Room Database (for chat history on Android & Desktop)
  • πŸ› DataStore (for storing preferences)
  • 🧠 Ollama (for running local LLMs)

Screenshot 2025-02-01 at 11 11 33β€―PM

πŸ“Œ Getting Started

πŸ“‹ Prerequisites

  1. Install Ollama and set up the required models:
    ollama pull deepseek-r1:1.5b
    ollama pull deepseek-coder:1.3b
  2. Ensure you have the necessary tools installed for KMP development:
    • πŸ“± Android Studio (for Android & Desktop)
    • 🍏 Xcode (for iOS)

▢️ Running the Project

πŸ“² Android

  1. Open the project in Android Studio.
  2. Select an Android device/emulator and run the app.

🍏 iOS

  1. Open the iosApp project in Xcode.
  2. Run on an iOS Simulator or a physical device.

πŸ’» Desktop

  1. Use gradle to build and run the Desktop app:
    ./gradlew run

βš™οΈ Configuration

  • πŸ”§ Modify the Ollama server URL if necessary in the Ktor client configuration.
  • πŸ“ Customize available models in the UI as needed.

πŸ“œ License

This project is licensed under the MIT License. Feel free to modify and use it in your projects!


πŸ’‘ Contributions & Feedback

Feel free to contribute, report issues, or suggest improvements via GitHub Issues or Pull Requests. Your feedback is welcome! πŸš€

About

Kotlin Multiplatform project for Android, iOS, and Desktop demonstrating local AI chat with DeepSeek R1 (LLaMA). Run on-device LLMs seamlessly across platforms. πŸš€

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0