Skip to content

Instantly share code, notes, and snippets.

View wz-ml's full-sized avatar

William Zhou wz-ml

View GitHub Profile
@wz-ml
wz-ml / topk_sae_training_analysis.ipynb
Last active September 9, 2025 14:35
Top-K SAE forward pass profiling
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wz-ml
wz-ml / not_gate.py
Last active December 14, 2022 01:05
xs = [1, 0]
ys = [0, 1]
w = 0.2
b = 0.5
def linear(x):
return w * x + b
def relu(x):
return max(x, 0)