This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/etc/default/grub | |
#run sudo grub2-mkconfig -o /boot/grub2/grub.cfg after changing the file | |
GRUB_TIMEOUT=5 | |
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" | |
GRUB_DEFAULT=saved | |
GRUB_DISABLE_SUBMENU=true | |
GRUB_TERMINAL_OUTPUT="console" | |
##### vvvvvvvvvvvvvvv | |
GRUB_CMDLINE_LINUX="rhgb quiet amd_iommu=off amdgpu.gttsize=131072 ttm.pages_limit=33554432" | |
##### ^^^^^^^^^^^^^^^ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/discover/amd_linux.go b/discover/amd_linux.go | |
index ebffbdf6..bbb5ec49 100644 | |
--- a/discover/amd_linux.go | |
+++ b/discover/amd_linux.go | |
@@ -315,15 +315,15 @@ func AMDGetGPUInfo() ([]RocmGPUInfo, error) { | |
gpuOrdinalID += 1 | |
// iGPU detection, remove this check once we can support an iGPU variant of the rocm library | |
- if totalMemory < IGPUMemLimit { | |
- reason := "unsupported Radeon iGPU detected skipping" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#linking bitcode files to files in the current directory is required for JAX to work | |
#with ROCm | |
if [ "$#" -eq 0 ]; then | |
echo "Usage: $0 <path to bitcode files, e.g. /opt/rocm-6.4/llvm/amdgcn/bitcode>" | |
exit 1 # Exit with a non-zero status to indicate an error | |
fi | |
BCPATH=$1 | |
ln -s $BCPATH/opencl.bc ./opencl.bc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# link-all.sh <target-dir> | |
# Used to link all ROCM .bc bitcode files to local files in order to use XLA and JAX | |
set -euo pipefail | |
[[ $# -eq 1 ]] || { echo "Usage: $0 <target-directory>" >&2; exit 1; } | |
target=${1%/} # strip trailing slash | |
[[ -d $target ]] || { echo "\"$target\" is not a directory" >&2; exit 1; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env bash | |
# Launch VLLM on a gfx1151 AMD Strix Halo 395+ | |
# As of August 27, 2025 | |
podman run -it --rm --ipc=host --network=host --privileged \ | |
--cap-add=CAP_SYS_ADMIN \ | |
--device=/dev/kfd --device=/dev/dri --device=/dev/mem \ | |
--group-add render \ | |
--cap-add=SYS_PTRACE \ | |
--security-opt seccomp=unconfined \ | |
-e HSA_OVERRIDE_GFX_VERSION=11.0.0 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Save and restore the state of tmux sessions and windows. | |
# TODO: persist and restore the state & position of panes. | |
# https://github.com/mislav/dotfiles/blob/d2af5900fce38238d1202aa43e7332b20add6205/bin/tmux-session | |
set -e | |
dump() { | |
local d=$'\t' | |
tmux list-windows -a -F "#S${d}#W${d}#{pane_current_path}" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Rebind Prefix to CTRL-S | |
set-option -g prefix C-s | |
unbind C-b | |
bind C-a send-prefix | |
# Vim navigation | |
bind-key h select-pane -L | |
bind-key j select-pane -D | |
bind-key k select-pane -U |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# crawl4ai and playwright | |
FROM ubuntu:24.04 | |
RUN apt-get update && apt-get install -y \ | |
python3 \ | |
python3-pip | |
WORKDIR /app | |
RUN apt install -y build-essential |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo sysctl debug.iogpu.wired_limit=26624 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Past the following in the "segments" section of the theme's JSON file: | |
{ | |
"background": "#FFDE57", | |
"foreground": "#111111", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"display_mode": "environment", | |
"fetch_virtual_env": true, | |
"home_enabled": true | |
}, |
NewerOlder