torchcell.paper.tables.human_bytes

human_bytes(nbytes: int) → str[source]

Format a byte count the way a paper table reads: 0.6 KB, 101 KB, 1.9 MB.

Uses SI (1000) units to match the gzip-size convention already in the note.