Files
exllamav2/conversion/bot_status.py
2024-05-20 01:49:34 +02:00

18 lines
307 B
Python

import json
def print_stage(
job: dict,
stage: str,
progress: int,
max_progress: int,
):
if not job["status_output"]: return
status = {
"stage": stage,
"completion": round(progress / max_progress, 4)
}
print("[STATUS]" + json.dumps(status) + "[/STATUS]")