Skip to content

Instantly share code, notes, and snippets.

View DHDev0's full-sized avatar

Daniel Derycke DHDev0

View GitHub Profile
@DHDev0
DHDev0 / tinygrad_setup.sh
Last active February 3, 2025 02:20
Setup script for Tinygrad with Nvidia GPU on Ubuntu native/wsl2
#!/bin/bash
# Setup script for Tinygrad, including all supported backends, made it for WSL2 Ubuntu 22.04 running on Windows 10/11 with an up-to-date Nvidia GPU driver (it should work for native Ubuntu too)
# To use this script, save it in a file: nano setup_environment.sh
# give it execute permissions: chmod +x setup_environment.sh
# and then run it: ./setup_environment.sh
# Make sure to run it in a terminal where you have administrative (sudo) access, as some steps require it.
# Initialize variables