Skip to content

Instantly share code, notes, and snippets.

View ebr's full-sized avatar
⌨️
1 person is typing

Eugene Brodsky ebr

⌨️
1 person is typing
View GitHub Profile
@ebr
ebr / AMD.md
Last active March 27, 2025 15:41
Invoke + ROCm (AMD GPU)

Invoke 5.x+ on AMD

Tested with: AMD Radeon PRO W7900 (Navi33 GPU / RDNA3 architecture). Other GPUs will probably work great with small tweaks, but I don't know what those tweaks might be. Please discover for yourself and report back!

TL;DR

Here's a very basic shell script that does all the things described below. Use it at your own risk. DO understand what it does. Otherwise, read the detailed instructions.

In fact, we really recommend reading the detailed instructions anyway. There's some good info in there.

@ebr
ebr / gist:167eb13ef8a5276312680c73dfd3e25c
Last active March 24, 2023 15:25
quickstart docker + nvidia on ubuntu
#!/bin/bash
sudo apt update
sudo apt-get install -y ca-certificates curl gnupg lsb-release
sudo mkdir -p /etc/apt/keyrings && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
sudo usermod -aG docker ubuntu
cat <<EOF | sudo tee /etc/docker/config.json
{
@ebr
ebr / zfs-for-docker.sh
Created May 8, 2017 18:28
ZFS zpool for docker
#!/bin/bash
## This will only work on Ubuntu 16.04 and up
DEVNAME=/dev/xvdg
# Install ZFS if we don't have it
if [[ -z $(which zfs) ]]; then
apt -y update
apt -y install zfs

Keybase proof

I hereby claim:

  • I am ebr on github.
  • I am brodsky (https://keybase.io/brodsky) on keybase.
  • I have a public key ASAaX5nSkiqxxwE0i-G9zgcAwYS9e1nU_0a15CeY3wmOuwo

To claim this, I am signing this object: