mirror of
https://github.com/turboderp-org/exllamav2.git
synced 2026-05-05 05:31:13 +00:00
18 lines
307 B
Python
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]")
|