Skip to content

Instantly share code, notes, and snippets.

View madebyollin's full-sized avatar

Ollin Boer Bohan madebyollin

View GitHub Profile
@madebyollin
madebyollin / dlss_5_model_architecture.md
Created August 30, 2026 15:12
What is the DLSS5 model architecture?
@madebyollin
madebyollin / dlss_4.5_model_architecture.md
Created August 29, 2026 15:59
What is the DLSS4.5 Model Architecture?

What is the DLSS4.5 Model Architecture?

DLSS 4.5 is a transformer that produces nice-looking, temporally-stable videos, frame by frame, in real time, on consumer graphics cards. Amazing! I was curious to know precisely what neural network architecture DLSS4.5 is using. To figure that out, I asked Codex (+Hopper MCP) to analyze the nvngx_dlss_310.7.129 DLL and piece together what's going on.

Warning

The remainder of this gist was authored by Codex 5.5.

Architecture

Pipeline summary

@madebyollin
madebyollin / list_of_generative_world_model_companies.md
Last active August 14, 2026 18:16
List of Generative World Model Companies

Pure-Play World-Model Companies

@madebyollin
madebyollin / suppressing_nnpack_warning.md
Created May 17, 2026 18:07
Suppressing NNPACK.cpp:57 Could not initialize NNPACK! Reason: Unsupported hardware.

Problem

If you run pytorch ops on CPU you may get spammed with this extremely annoying warning about NNPack:

#!/usr/bin/env python3
import torch as th
import torch.nn as nn
conv = nn.Conv2d(3, 3, 3)
# cpu forward here will spam an nnpack warning
@madebyollin
madebyollin / claude_mentra_live_hardware_notes.md
Created March 3, 2026 20:59
Claude's Mentra Live Hardware Notes

Claude's Mentra Live Hardware Notes

Verified 2026-03-03, firmware asg-client v34.0 (build date 2026-02-04).

ADB

Both USB and WiFi ADB work. Mentra's own blog notes the charging cable "also works as a USB cable so developers are free to access, modify, and replace Mentra Live's software" (https://mentraglass.com/blogs/blog/making-mentra-live).

@madebyollin
madebyollin / nwcapture_usage_instructions.md
Last active July 27, 2026 01:44
NWCapture Usage Instructions
@madebyollin
madebyollin / disabling_split_cell_in_jupyterlab_vim.md
Last active May 24, 2025 16:50
Disabling jupyterlab_vim's split-cell "-" keybinding

jupyterlab_vim adds a truly unfortunate keybinding where, if you are in normal mode and press -, the current cell splits into two. I have never intentionally activated this feature yet have unintentionally activated it many dozens of times. It's awful.

Unfortunately, the logical route to disable the split-cell feature (modifying keybinding config files) doesn't work. I don't know why.

Therefore, I now manually locate the vim_bindings file and patch it:

#!/usr/bin/env python3
from pathlib import Path
@madebyollin
madebyollin / single_pass_superconditioning.md
Last active March 13, 2025 12:23
Single-pass Superconditioning

Single-pass Superconditioning

Motivation

Guided diffusion sampling typically uses two forward passes per step:

  1. One caption-conditional forward pass, to compute E[flow | noisy image, noise level, caption]
  2. One unconditional forward pass, to compute E[flow | noisy image, noise level]

These results are then linearly combined to form a single guided/superconditioned flow prediction.

@madebyollin
madebyollin / useful_nn_concepts.md
Created January 12, 2025 05:35
Useful neural network training concepts (narrow usage, broad applicability)

These useful concepts show up in specific areas of NN-training literature but can be applied pretty broadly.

  1. Non-leaky augmentations: you can add arbitrary augmentations during training, without substantially biasing in-domain performance, by adding a secondary input that tells the network which augmentations were used. This technique shows up the Karras et al image generation papers (ex. https://arxiv.org/pdf/2206.00364) but it's applicable whenever you want good performance on limited data.
  2. Batch-stratified sampling: rather than generating per-sample random numbers with e.g. torch.rand(batch_size), you can use th.randperm(batch_size).add_(th.rand(batch_size)).div_(batch_size) instead, which has the same distribution but lower variance, and therefore trains more stably. This shows up in k-diffusion https://github.com/crowsonkb/k-diffusion/commit/a2b7b5f1ea0d3711a06661ca9e41b4e6089e5707, but it's applicable whenever you're randomizing data across the batch axis.
  3. Replay buffers: when y
@madebyollin
madebyollin / dc_ae_review.md
Last active May 11, 2026 12:19
Reviewing the claims of DC-AE

Reviewing the Claims of DC-AE

TL;DR - I think the paper is a good contribution and basically holds up, but Figure 2 seems suspicious and the released repo doesn't include the pieces (AE training code and pretrained 4096-element AEs) that would be needed to make DC-AE practically competitive with SD/SDXL VAEs.


DC-AE is an MIT / Tsinghua / NVIDIA paper about improving generative autoencoders (like the SD VAE) under the high-spatial-compression ratio regime.