Added a helper mod for Qwen3.5-397B recipe
This commit is contained in:
17
mods/drop-caches/run.sh
Normal file
17
mods/drop-caches/run.sh
Normal 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"
|
||||
Reference in New Issue
Block a user