Skip to content

Instantly share code, notes, and snippets.

View theharshpat's full-sized avatar
🚀

Harsh Patel theharshpat

🚀
View GitHub Profile
@theharshpat
theharshpat / github-account-switcher.zsh
Created February 24, 2025 23:51 — forked from tailwiinder/github-account-switcher.zsh
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
@theharshpat
theharshpat / transformer.py
Created July 10, 2024 05:03 — forked from nreHieW/transformer.py
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
@theharshpat
theharshpat / normcore-llm.md
Created May 24, 2024 22:02 — forked from veekaybee/normcore-llm.md
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

# 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
@theharshpat
theharshpat / godard_mieville.py
Created December 22, 2023 09:44 — forked from rolux/godard_mieville.py
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',