Skip to content

Instantly share code, notes, and snippets.

View ading2210's full-sized avatar

ading2210

View GitHub Profile
@ading2210
ading2210 / ollama-limiter.sh
Created January 21, 2025 03:23
A bash script to limit ollama download speeds
#!/bin/bash
#see https://github.com/ollama/ollama/issues/2006 for why this is needed
set -e
run_nethogs() {
local pid="$1"
nethogs -t -d 0 -P "$pid" | grep --line-buffered "ollama"
}