Added a helper mod for Qwen3.5-397B recipe

This commit is contained in:
Eugene Rakhmatulin
2026-04-12 19:14:23 -07:00
parent 30919581ee
commit 1ad85442ac
2 changed files with 18 additions and 0 deletions

17
mods/drop-caches/run.sh Normal file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
# This mod will drop the FS caches every minute - useful to unstuck Qwen3.5-397B or other similar models during loading
CMD='sync; echo 3 > /proc/sys/vm/drop_caches'
LOG="/tmp/drop_caches.log"
PIDFILE="/tmp/drop_caches.pid"
nohup bash -c '
while true; do
'"$CMD"' >> "'"$LOG"'" 2>&1
sleep 60
done
' >/dev/null 2>&1 &
echo $! > "$PIDFILE"
echo "Started drop_caches loop with PID $(cat "$PIDFILE"); log is available in $LOG"

View File

@@ -23,6 +23,7 @@ mods:
- mods/fix-qwen3.5-autoround - mods/fix-qwen3.5-autoround
- mods/fix-qwen3.5-chat-template - mods/fix-qwen3.5-chat-template
- mods/gpu-mem-util-gb - mods/gpu-mem-util-gb
- mods/drop-caches
# Default settings (can be overridden via CLI) # Default settings (can be overridden via CLI)
defaults: defaults: