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"
|
||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user