OLMoE.swift: Private, Offline AI Experience on iOS and macOS
This repository profile is provided by osrepos.com, an open source repository discovery platform.

Summary
OLMoE.swift provides a unique, privacy-focused AI experience by running large language models directly on your device. This Swift-based application ensures your queries and data remain private, operating entirely offline without an internet connection. It offers a robust solution for local AI inference on iOS and macOS, with integration options for Hugging Face.
Repository Information
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introduction
OLMoE.swift is an open-source project from AllenAI that brings a fully private, offline, and on-device AI experience to your Apple devices. Built with Swift, this repository provides the necessary tools and code to run large language models (LLMs) locally, ensuring your data never leaves your device. It's designed for users who prioritize privacy and wish to interact with AI models without an internet connection.
Installation
To get started with OLMoE.swift, you first need to clone the repository:
git clone https://github.com/allenai/OLMoE.swift.git
Building the iOS app for a simulator:
- Open the project in Xcode.
- Ensure the target device is set to an appropriate device (e.g., iPhone 15 Pro or higher).
- Run the project.
For detailed instructions on running on macOS or a physical device, please refer to the official OLMoE.swift README.
Examples
OLMoE.swift also supports integration with Hugging Face for running models. You can install transformers and torch and then use the following Python code:
from transformers import OlmoeForCausalLM, AutoTokenizer
import torch
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
# Load different ckpts via passing e.g. `revision=step10000-tokens41B`
model = OlmoeForCausalLM.from_pretrained("allenai/OLMoE-1B-7B-0125").to(DEVICE)
tokenizer = AutoTokenizer.from_pretrained("allenai/OLMoE-1B-7B-0125")
inputs = tokenizer("Bitcoin is", return_tensors="pt")
inputs = {k: v.to(DEVICE) for k, v in inputs.items()}
out = model.generate(**inputs, max_length=64)
print(tokenizer.decode(out[0]))
This example demonstrates how to load an OLMoE model and tokenizer, then generate text using a simple prompt.
Why Use OLMoE.swift?
OLMoE.swift stands out for several compelling reasons:
- Uncompromised Privacy: All queries and data are processed locally on your device, ensuring complete privacy. Nothing is stored or sent to external servers.
- Offline Functionality: The application works perfectly without an internet connection, even in Flight Mode, making it ideal for use anywhere, anytime.
- Open Source: Being open source, the project fosters transparency, allowing developers to inspect, modify, and contribute to its development.
- On-Device AI: Experience the power of large language models directly on your iOS or macOS device, leveraging local hardware for efficient inference.
Links
Explore OLMoE.swift further using these official links:
Related repositories
Similar repositories that may be relevant next.

Deck: A Modern, Privacy-First Clipboard Manager for macOS
May 18, 2026
Deck is a modern, native, and privacy-first clipboard manager meticulously crafted for macOS. It offers an extensive array of features designed to boost productivity while prioritizing user data security. Deck provides intelligent tools like semantic search, automated workflows, and robust privacy protections, ensuring your copied content is both accessible and secure on your Mac.

Boring Notch: Transform Your MacBook's Notch into a Dynamic Control Center
March 24, 2026
Boring Notch is an innovative macOS application that reimagines your MacBook's notch, turning it into a dynamic and interactive control hub. It offers features like a music control center with a visualizer, calendar integration, a file shelf with AirDrop support, and a complete macOS HUD replacement. This project aims to make the often-overlooked notch a central and functional part of your desktop experience.

Amethyst: An Automatic Tiling Window Manager for macOS
March 6, 2026
Amethyst is an open-source tiling window manager for macOS, inspired by the popular xmonad. It automatically arranges application windows, significantly enhancing productivity by eliminating the need for manual resizing and positioning. This powerful tool offers various customizable layouts and keyboard shortcuts for efficient workspace management on your Mac.
Ice: Powerful Menu Bar Manager for macOS
February 16, 2026
Ice is a robust menu bar management tool designed for macOS, offering extensive features for hiding, showing, and organizing menu bar items. It also provides options for customizing the menu bar's appearance, making it a versatile utility. This tool aims to optimize and personalize the macOS menu bar experience for users.
Source repository
Open the original repository on GitHub.
19 counted GitHub visits