Skip to content

Instantly share code, notes, and snippets.

View adamteale's full-sized avatar

Adam Teale adamteale

  • Apply Digital
  • Santiago, Chile
View GitHub Profile
@adamteale
adamteale / M4 Max 2026 Local AI Setup Guide.md
Last active March 11, 2026 13:00
The 2026 M4 Max Local-First AI Guide

🚀 The 2026 M4 Max Local-First AI Guide

Architecting the 110+ TPS "Senior-Junior" Local Brain

This document provides the definitive setup for a high-performance, local AI development environment on an M4 Max (36GB RAM). It leverages Speculative Decoding, AST-based Indexing, and Kernel-level Memory Tuning.

🏗️ 1. The Core Architecture (Senior-Junior)

On an M4 Max with 36GB, the "Sweet Spot" is running a 35B-parameter model (The Architect) and a 1.5B-parameter model (The Draft Model).

version: "3.7"
services:
nutshell:
image: cashubtc/nutshell:latest # The Docker image for Nutshell
ports:
- "3338:3338" # Expose port 3338
environment:
- MINT_BACKEND_BOLT11_SAT=FakeWallet
- MINT_PRIVATE_KEY=TEST_PRIVATE_KEY
@adamteale
adamteale / gist:611b7e599b2036eb97a8
Created February 25, 2015 12:48
django-admin-bootstrapped formatting issue
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-us" >
<head>
<title>Select asset to change | MBrain admin</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>