inference-x/examples/check_profile.sh
Salka Elmadani ec36668cf5 Inference-X v1.0 — Universal AI Inference Engine
Better output from the same model. Fused computation, adaptive precision,
surgical expert loading. 305 KB, 19 backends, zero dependencies.

https://inference-x.com
2026-02-23 07:10:47 +00:00

35 lines
917 B
Bash
Executable File

#!/bin/bash
# Check Kimi profiling progress
echo "=== IX-PROFILER PROFILING STATUS ==="
echo "Time: $(date)"
echo ""
# Is it running?
PID=$(pgrep -f infer_unified)
if [ -n "$PID" ]; then
echo "STATUS: RUNNING (PID $PID)"
ELAPSED=$(ps -o etime= -p $PID 2>/dev/null)
echo "ELAPSED: $ELAPSED"
RSS=$(ps -o rss= -p $PID 2>/dev/null)
echo "RAM: $((RSS/1024)) MB"
else
echo "STATUS: FINISHED"
fi
echo ""
# Current layer
LAST_PHASE=$(grep "PHASE" ${LOG:-profile_run.log} 2>/dev/null | tail -1)
TOTAL_PHASES=$(grep -c "PHASE" ${LOG:-profile_run.log} 2>/dev/null)
echo "LAST LAYER: $LAST_PHASE"
echo "TOTAL PHASES: $TOTAL_PHASES"
echo ""
# Profile CSV
if [ -f ${OUT:-expert_profile.csv} ]; then
LINES=$(wc -l < ${OUT:-expert_profile.csv})
echo "PROFILE CSV: $LINES lines"
head -5 ${OUT:-expert_profile.csv}
else
echo "PROFILE CSV: not yet created (will appear when run completes)"
fi