#!/bin/bash
# Read model_patcher.py load() function in detail
echo "=== model_patcher.py lines 760-1000 ==="
sed -n '760,1000p' /home/fabian/ComfyUI/comfy/model_patcher.py
echo ""
echo "=== model_patcher.py lines 1000-1100 ==="
sed -n '1000,1100p' /home/fabian/ComfyUI/comfy/model_patcher.py
echo ""
echo "=== model_management.py load_models_gpu ==="
grep -n "def load_models_gpu\|def model_load\|def model_use_more_vram" /home/fabian/ComfyUI/comfy/model_management.py
echo ""
echo "=== model_management.py lines around model_load ==="
sed -n '540,600p' /home/fabian/ComfyUI/comfy/model_management.py
echo ""
echo "=== model_management.py lines around load_models_gpu ==="
sed -n '700,800p' /home/fabian/ComfyUI/comfy/model_management.py
