Skip to content

Instantly share code, notes, and snippets.

View AaronWang04's full-sized avatar

Aaron AaronWang04

View GitHub Profile
@AaronWang04
AaronWang04 / gist:109488e3b8c7468d1bd0f53d0116c41b
Created September 4, 2025 21:03
pytorch #159682 layernorm repro script
import os
import sys
import subprocess
import time
# Check if we're running with cuDNN enabled
cudnn_enabled = os.environ.get('TORCH_CUDNN_LAYERNORM_ENABLED') == '1'
# Import torch after environment variable is set
import torch