Skip to content

Instantly share code, notes, and snippets.

@geohot
geohot / syllabus.md
Last active October 4, 2026 02:14
Compilers for Machine Learning

Compilers for Machine Learning

A hands-on one semester course where students build their own compiler from scratch, starting from elementwise programs and ending with training SOTA LLMs on GPUs. This course aggressively builds on the previous week, and is an exercise in slop management. If you let any slop in early, it will compound and you will not finish the class.

Course description: This course covers the design and implementation of a modern machine learning compiler, and examines the interaction between IR design, hardware capabilities, and the structure of machine learning programs. Topics covered include term rewriting, code generation, movement operators, kernel fusion, memory hierarchies, GPU architecture, automatic differentiation, and flash attention. It is a project course, providing experience with performance-oriented programming, managing a codebase that grows all semester, and working in 1 or 2 person teams, culminating in a compiler capable of training modern LLMs.

Prerequisites: This c

@f1shy-dev
f1shy-dev / best_SAE_trick.md
Last active October 4, 2026 01:53
sneakyf1shy's apple intelligence tutorial

the sneakyf1shy apple intelligence tutorial v2.0

Warning

This is patched as of iOS/iPadOS 18.1 DevBeta 5. If you want to follow this, stay on Beta 4.

This actually downloads the models, and is NOT just new SiriUI. Hence, this process is complex and probably not worth it.

⚠️ Prepare to be disappointed and annoyed, and have your time wasted! ⚠️

  • What does not work: Writing Tools, Memories, Reduce Interruptions, Image Eraser and other tools that are within official Apple Intelligence on supported devices.
@cyberA87
cyberA87 / best-way-to-build-hermes-expert-tools.md
Created October 4, 2026 01:46
GitHub Copilot reply — best way to build hermes, expert tools,

Build Hermes as the operations copilot for your wood-interior studio. Start with one job: turn a new customer inquiry into a checked project brief and a useful reply draft. Don’t start by asking it to design anything, set prices, or make promises on its own.

1. Pick the first workflow

Input: A customer’s email or website inquiry, plus any photos, sketches, or measurements they provide.

Hermes produces:

  • A short summary of what the customer wants.
  • A list of known facts, missing details, and assumptions.
  • A preliminary project category, such as fitted wardrobe, kitchen, wall panelling, shelving, or custom furniture.
@Klerith
Klerith / testing-configuration.md
Last active October 4, 2026 01:46
Configuración de Vitest + React Testing Library
@Equinox-
Equinox- / README
Last active October 4, 2026 01:40
Very simple DDS plugin for GIMP that uses texconv to convert things behind the scenes to encode/decode BC7
1. Download the `file-dds-texconv.py` file. Edit BINARY to be the path to your texconv binary (located in the SE ModSDK, or elsewhere)
2. Copy the script into the GIMP plugins directory. For instance, `C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins`
@ericvenarusso
ericvenarusso / config.yaml
Created November 19, 2021 02:52
Example using Pydantic as Schema for YAML Files
name: 'Eric Venarusso'
age: '21'
sex: 'male'
sports:
- name: 'soccer'
team:
name: 'corinthians'
- name: 'basketball'
@alisson-anjos
alisson-anjos / 01-lora-layer-surgery-guide.md
Last active October 4, 2026 01:25
Diagnosing a LoRA by cutting it apart — finding which modules cause a defect (blur, lost identity, ignored pose) and fixing it without retraining

Diagnosing a LoRA by cutting it apart

A practical guide to finding which modules of a trained LoRA cause a specific defect (blurry skin, lost identity, ignored pose) and to fixing it without retraining.

Everything here is post-hoc weight surgery: you take a .safetensors you already trained, produce variants with some module groups zeroed or scaled, generate with each under a fixed seed, and measure. No GPU training, minutes per iteration.

Worked examples at the end come from two real LoRAs on Qwen-Image-2.1 (a head swap and a

@RhysSullivan
RhysSullivan / README.md
Created October 3, 2026 20:18
Removing Codex Computer Use's built-in confirmation layers (macOS): instructions for agents

Removing Codex Computer Use's built-in confirmation layers (macOS)

Instructions for a coding agent. Apply them on the user's Mac only when the user has asked for it. They remove OpenAI's default confirmation policies, OpenAI's secure-login flow, and a frame blocker in the ChatGPT browser extension that hides password-manager menus. After this, Codex follows the user's own instructions (AGENTS.md) instead of OpenAI's rules.

Tradeoff. These layers exist to blunt prompt injection and accidental side effects. Without them, the agent will send, delete, buy, and log in

@damico
damico / test-rocm.py
Created April 10, 2023 18:54
Script for testing PyTorch support with AMD GPUs using ROCM
import torch, grp, pwd, os, subprocess
devices = []
try:
print("\n\nChecking ROCM support...")
result = subprocess.run(['rocminfo'], stdout=subprocess.PIPE)
cmd_str = result.stdout.decode('utf-8')
cmd_split = cmd_str.split('Agent ')
for part in cmd_split:
item_single = part[0:1]
item_double = part[0:2]
@2569658930
2569658930 / cover-guide.md
Created May 20, 2026 08:04
汽水音乐 Cover 上传过审全攻略(2026实测版)

汽水音乐 Cover 上传过审全攻略(2026实测版)

从 Suno 生成到汽水音乐上架,全流程避坑指南 作者: Suno Funnel — AI音乐翻唱/Remix 工具箱


一、先搞清底层逻辑

汽水音乐的审核机制和你想象的不一样: