Skip to content

Instantly share code, notes, and snippets.

View vuasia's full-sized avatar

Vu Nguyen vuasia

View GitHub Profile
@vuasia
vuasia / enviorenmentfixes.md
Created May 30, 2025 18:05 — forked from Acephalia/enviorenmentfixes.md
Quick Guide For Fixing/Installing Python, PyTorch, CUDA, Triton, Sage Attention and Flash Attention For Local AI Image Generation

Quick Guide For Fixing/Installing Python, PyTorch, CUDA, Triton, Sage Attention and Flash Attention For Local AI Image Generation

With all the new local image & video generation tools coming out I've been seeing a lot of posts and error threads being opened for various issues with cuda/pytorch/sage attantion/triton/flash attention. I was tired of digging links up so I initially made this as a cheat sheet for myself but expanded it with hopes that this will help some of you get your venvs and systems running smoothly.

In This Guide:

  1. Check Installed Python Versions
  2. Set Default Python Version by Changing PATH
  3. Installing VS Build Tools
  4. Check the Currently Active CUDA Version
@vuasia
vuasia / gist:5f86f4dfd57e1b314ad6cb54337345c7
Created September 16, 2023 00:34 — forked from jauderho/gist:6b7d42030e264a135450ecc0ba521bd8
HOWTO: Upgrade Raspberry Pi OS from bullseye to bookworm
sudo apt-get update && sudo apt-get dist-upgrade
sudo sed -i -e 's/bullseye/bookworm/g' /etc/apt/sources.list
sudo sed -i -e 's/bullseye/bookworm/g' /etc/apt/sources.list.d/raspi.list
sudo apt update
sudo apt -y full-upgrade
sudo apt -y autoremove
sudo apt -y clean
sudo reboot
#
# remove old config files after doing sanity checks