Skip to content

Instantly share code, notes, and snippets.

View theharshpat's full-sized avatar
🚀

Harsh Patel theharshpat

🚀
View GitHub Profile
@tailwiinder
tailwiinder / github-account-switcher.zsh
Created February 24, 2025 10:48
ZSH Functions for Managing Multiple GitHub Accounts (SSH)
# Functions to manage multiple GitHub accounts via SSH
# Example for switching to and managing my tailwiinder account
#
# Setup Required:
# 1. Configure SSH hosts in ~/.ssh/config
# 2. Set up SSH keys for your GitHub accounts
# 3. Add these functions to your .zshrc
#
# Usage:
# - clone-tom: Clone a new repository using tailwiinder account
@nreHieW
nreHieW / transformer.py
Created July 9, 2024 13:36
2024 Noam Transformer
"""
The 2024 Transformer (the Noam Transformer):
- RMSNorm
- GQA or some combination
- Sliding window attention
- Swiglu
- RoPE (Rotary Positional Embedding)
LLM Arches:
hidden | MLP mult. | n_layers | rope_theta | GQA Group Size | GLU Act. | ops
@veekaybee
veekaybee / normcore-llm.md
Last active September 3, 2025 21:15
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@karpathy
karpathy / stablediffusionwalk.py
Last active August 5, 2025 19:56
hacky stablediffusion code for generating videos
"""
stable diffusion dreaming
creates hypnotic moving videos by smoothly walking randomly through the sample space
example way to run this script:
$ python stablediffusionwalk.py --prompt "blueberry spaghetti" --name blueberry
to stitch together the images, e.g.:
$ ffmpeg -r 10 -f image2 -s 512x512 -i blueberry/frame%06d.jpg -vcodec libx264 -crf 10 -pix_fmt yuv420p blueberry.mp4
@rolux
rolux / godard_mieville.py
Created December 7, 2020 08:36
python script, unedited, used to create https://youtu.be/X2ryBq31pHs
from __future__ import division, print_function
import math
from oxmaps import Line, Pano, PanoImage, PanoTile, Point, db
from PIL import Image
ids = [
'eGYyAlN9kvBEg6AYtJV60A',
'CCQWTbDqYokwHNwBWnl8wQ',
'_UBAlMtHNb7hUYpxXkmcCA',
'tBMPwhLVH4Kk8EdQc15-3w',
# git clone https://github.com/NVlabs/stylegan2
import os
import numpy as np
from scipy.interpolate import interp1d
from scipy.io import wavfile
import matplotlib.pyplot as plt
import PIL.Image
import moviepy.editor
import dnnlib