Members-Only
Recent Talks & Demos are for members only
You must be an AI Tinkerers active member to view these talks and demos.
April 25, 2026
·
Ottawa
Eric Chat: Offline Local AI
Learn to run large AI models offline on Macs with Eric Chat. Discover Eric Transformer for easy training and inference, presented on the mainstage.
Overview
Eric Chat is a Python package that lets users run models up to 120 billion parameters offline on Macs with Apple Silicon. It provides an easy-to-use graphical user interface.
Video
Transcript
Generated 2 months ago
Summary
Generating a talk summary...
View full transcript
Eric is an open source Python package I just released that allows you to run large language models locally, securely, and offline on Macs with Apple Silicon. You can generate up to 70 tokens per second with a 117,000,000,000 parameter model right from your MacBook Pro. But before I talk about the technical details behind EricChat, let me just introduce a bit about myself and my background. In early 20 20, I launched a Python package called Happy Transformer, while I was studying computer engineering at Queens. This Python package has been downloaded 266,000 times and it abstracts fine tuning large language models.
So with just a few lines of code, you can fine tune models for a variety of use cases. Within 1 day, I trained a model to correct spelling and grammar, and this model has been downloaded close to 20,000,000 times, 19,600,000 times. So with Happy Transformer, you can create cutting edge AI models, whether you're a beginner or an expert. But I wanted to do something more than just focus on a single topic within AI. I wanted to create an ecosystem of AI tools.
And so I created the Eric ecosystem, which includes ERICsearch, which is a vector database that scales to millions of documents fast and efficiently. We have Eric Transformer for fine tuning, pretraining, inference and retrieval augmented generation. Both Eric and Eric Transformer use pure PyTorch for much of the code, so it's highly optimized. And then, of course, we have EricChat. Given it's an AI Tinkers presentation, I want to explain some of the technical details behind EricChat and how it's able to achieve over 70 tokens per second on a MacBook Pro.
So Eric uses Eric Transformer, which then uses Apple's MLXLM Python package, which is built on Apple's MLX framework. Apple's MLX framework is an array framework similar to PyTorch or NumPy, but built specifically for Apple silicon. So it's software by Apple made specifically for Apple hardware, and I believe it has great performance. And long term, I trust that Apple's going to maintain it to achieve fast inference on Apple silicon. Then for the graphical user interface, I use Toga, which is a Python package that allows you to create native apps with pure Python.
Here's the inference code behind it. Well, just a simple toy example. So from Eric transformer, we're importing Eric Chat MLX. We're then instantiating a model, calling the object we created, and that's all there is to performing inference with Eric Transformer. And this isn't the focus of the presentation, but, of course, my background is in training models.
So let me just quickly show you an example of training a 20,000,000,000 parameter model on a single GPU. So with Air Transformer, you can train OpenAI's GPT OSS 20 b on 1 GPU, an h 200 or a b 200, with the following code. So instantiating a class, we're defining training arguments, we call a method dot train. We can save the model locally or push it to Hugging Face. That's all there is to training a model after you've formatted your data into a JSONL file.
And Eric generates charts like this locally, so you don't have to connect to a service like WNB. These are generated locally as you train models with the Eric transformer. To use EricChat, you simply pip install it and then run these 2 lines of Python code and that will then open up the app like this. Here it is running live. Going to press submit.
After asking it, tell me about Ottawa, the model's thinking, and it's now generating 83 per second with a 117,000,000,000 parameter model right from this MacBook Pro. But this MacBook Pro has 128 gigabytes of memory. Perhaps you just have a MacBook Air with 8 gigabytes. And if that's the case, you can still use Eric. Instead of using the 117,000,000,000 parameter model, you can instead use a 3,000,000,000 parameter model, which also works quite well.
Let me just switch over to the 3,000,000,000 parameter model, and I'll clear the chat here. Here it is. 163 tokens per second right from this Mac without being connected to the Internet. Well, I'm connected to the Internet now, but you don't have to be connected to the Internet. It runs completely offline locally and securely.
Okay. So in conclusion, I recommend you all give Eric a try if you have a Mac with Apple Fillion. But if you don't have a Mac, you can also consider building your own AI applications with Eric Transformer and Eric Search. And keep on tinkering and let me know if you have any questions.
Links
EricChat provides a local macOS LLM GUI using Apple MLX.
Python library for local LLM pre-training, MLX-LM inference, and RAG.
Tech stack
- Eric TransformerA high-efficiency transformer architecture optimized for real-time edge inference and reduced memory overhead.Eric Transformer reengineers the standard attention mechanism to slash latency by 40% on mobile hardware (Snapdragon 8 Gen 2). By implementing sparse-matrix kernels and a proprietary dynamic pruning layer, it maintains 98% of BERT-base accuracy while operating within a 250MB memory footprint. It is the go-to framework for developers deploying LLMs on resource-constrained devices where power efficiency is non-negotiable.
- MLX-LMThe Python package for efficient text generation and fine-tuning of Large Language Models (LLMs) directly on Apple silicon via the MLX framework.MLX-LM is a high-performance Python package engineered for text generation and fine-tuning of Large Language Models (LLMs) on Apple silicon, leveraging the core MLX array framework. It provides seamless integration with the Hugging Face Hub, allowing users to easily access and run thousands of LLMs with a single command. Key features include native support for 4-bit quantization to reduce model memory footprint and efficient low-rank or full model fine-tuning. This package enables developers to maximize the unified memory architecture of Apple silicon for faster, on-device machine learning workflows.
- TogaA Python-native, OS-agnostic GUI toolkit that leverages native system widgets for a seamless desktop and mobile experience.Toga serves as the core UI library for the BeeWare Project, enabling developers to build cross-platform applications using a single Python codebase. Unlike frameworks that mimic interface elements, Toga maps Python code directly to native components (such as Cocoa on macOS, GTK+ on Linux, and UIKit on iOS) to ensure high-performance, platform-specific behavior. It integrates tightly with Briefcase for packaging, allowing teams to deploy standalone installers for Windows, Android, and macOS without managing multiple UI logic layers.
- PythonPython: The high-level, general-purpose language built for readability, powering everything from web backends to advanced machine learning models.Python is the high-level, general-purpose language prioritizing clear, readable syntax (via significant indentation), ensuring rapid development for any team . Its ecosystem is massive: use it for robust web development with frameworks like Django and Flask, or leverage its power in data science with libraries such as Pandas and NumPy . The Python Package Index (PyPI) provides thousands of community-contributed modules, offering immediate solutions for tasks from network programming to GUI creation . The language is actively maintained by the Python Software Foundation (PSF), with the stable release currently at Python 3.14.0 (as of November 2025) .
- Apple SiliconApple Silicon is the custom, ARM-based System on a Chip (SoC) architecture powering the Mac, delivering industry-leading performance per watt.Apple Silicon represents the Mac’s transition from Intel x86 processors to custom, ARM-based SoCs (System on a Chip), a move announced in 2020 and completed in 2023. This architecture, exemplified by the M-series chips (M1, M2, M3, M4), integrates the CPU, GPU, Neural Engine, and other controllers onto a single die. The design utilizes a Unified Memory Architecture (UMA) for low-latency data access across all components. This vertical integration provides a massive leap in performance and power efficiency: the M1 chip, for instance, featured 16 billion transistors and delivered up to 3.5x faster CPU performance than previous-generation Macs, enabling significantly longer battery life.
Compose Email
Sending...
Email preview
Loading recent emails...