Skip to content

Instantly share code, notes, and snippets.

View madebyollin's full-sized avatar

Ollin Boer Bohan madebyollin

View GitHub Profile
@catwell
catwell / tae-metrics.md
Last active February 20, 2026 16:19
TAE metrics (SD 1.5, SDXL, Flux 1, Flux 2)

Computed on the validation set of ImageNet 256 (50000 images).

model encoder decoder rFID LPIPS PSNR
SD 1.5 base base 0.9275 0.0753 25.35
SD 1.5 TAE base 2.5711 0.1109 23.89
SD 1.5 base TAE 2.9040 0.0995 23.47
SD 1.5 TAE TAE 3.8339 0.1092 23.52
sdxl base base 0.7690 0.0703 25.60
sdxl TAE base 1.4093 0.0888 24.83
@sayakpaul
sayakpaul / run_flux_with_limited_resources.md
Last active September 15, 2025 15:03
This document enlists resources that show how to run Black Forest Lab's Flux with Diffusers under limited resources.
@madebyollin
madebyollin / automatic_profiling_markers.py
Created February 27, 2024 02:57
Add human-readable profiling markers to a pytorch module
def add_profiling_markers(model):
"""Monkey-patch profiling markers into an nn.Module.
Args:
model: an nn.Module
Effect:
all model.named_module() forward calls get wrapped in their
own profiling scope, making traces easier to understand.
"""
@mrsteyk
mrsteyk / README.md
Last active December 17, 2024 19:22
dalle_runner_api.model_infra.modules.public_diff_vae
@kconner
kconner / macOS Internals.md
Last active March 4, 2026 17:23
macOS Internals

macOS Internals

Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.

Starting Points

How to use this gist

You've got two main options:

@tomhicks
tomhicks / plink-plonk.js
Last active December 26, 2025 08:35
Listen to your web pages
@darconeous
darconeous / tesla-key-card-protocol.md
Last active February 7, 2026 09:26
Tesla Key Card Protocol

Tesla Key Card Protocol

Researched by Robert Quattlebaum darco@deepdarc.com.

Last updated 2020-02-03.

Image of Tesla Key Card Image of Tesla Model 3 Key Fob

@ryan-robeson
ryan-robeson / building-resynthesizer-instructions.md
Last active September 1, 2024 19:31
Building Resynthesizer for GIMP 2.10.10 on macOS

Building Resynthesizer for GIMP 2.10.10 on macOS - V2

Feedback is welcome and appreciated.

  • If you'd prefer to do things by hand check out Version 1 of this guide.

The following documents the steps I took to compile the latest version of Resynthesizer on macOS Sierra (10.12.6) for GIMP 2.10.10.

Homebrew was used to fulfill as many dependencies as possible.

@TravisDunlop
TravisDunlop / freeze_stable_baselines.py
Last active January 25, 2020 20:34
Freeze a stable-baselines model to a protocol buffer file (i.e. .pb or .bytes)
'''
Freezing a stable-baselines to a frozen protocol buffer file to be served.
https://github.com/hill-a/stable-baselines
Some code taken from this lovely blog series
https://blog.metaflow.fr/tensorflow-how-to-freeze-a-model-and-serve-it-with-a-python-api-d4f3596b3adc
'''
import tensorflow as tf
import os
@jdarpinian
jdarpinian / executable.c
Last active September 28, 2025 09:40
Add one line to your C/C++ source to make it executable.
///$(which true);FLAGS="-g -Wall -Wextra --std=c17 -O1 -fsanitize=address,undefined";THIS_FILE="$(cd "$(dirname "$0")"; pwd -P)/$(basename "$0")";OUT_FILE="/tmp/build-cache/$THIS_FILE";mkdir -p "$(dirname "$OUT_FILE")";test "$THIS_FILE" -ot "$OUT_FILE" || $(which clang || which gcc) $FLAGS "$THIS_FILE" -o "$OUT_FILE" || exit $?;exec bash -c "exec -a \"$0\" \"$OUT_FILE\" $([ $# -eq 0 ] || printf ' "%s"' "$@")"
#include <stdio.h>
int main() {
printf("Hello world!\n");
return 0;
}