Skip to main content

Module llm_usage

Module llm_usage 

Source
Expand description

rbnx llm-usage โ€” sum the per-request model usage records that robonix_api.llm.metrics and robonix-llm-metrics append.

Structsยง

Total ๐Ÿ”’
Requests and reported tokens of one consumer/operation/host/model group.

Functionsยง

execute
fmt_ms ๐Ÿ”’
A latency cell, or - when no record reported one.
percentile ๐Ÿ”’
Nearest-rank percentile of a sorted slice; fraction is in 0..=1.
print_table ๐Ÿ”’
sum ๐Ÿ”’
Totals of every *.jsonl record under dir, and the count of lines that were not a record: a line still being written, or an unreadable file (counted as one).
ๆต™ICPๅค‡2023005800ๅท-2 ๆต™ๅ…ฌ็ฝ‘ๅฎ‰ๅค‡33010902005384ๅท