| <!doctype html> |
| <html lang="en"> |
| <head> |
| <meta charset="utf-8"> |
| <meta name="viewport" content="width=device-width, initial-scale=1"> |
| <title>Token Statistics</title> |
| <style> |
| :root { |
| color-scheme: light; |
| --bg: #f7f8fa; |
| --panel: #ffffff; |
| --text: #20242a; |
| --muted: #667085; |
| --line: #d9dee7; |
| --accent: #246b8f; |
| --accent-soft: #e5f3f8; |
| } |
| * { box-sizing: border-box; } |
| body { |
| margin: 0; |
| background: var(--bg); |
| color: var(--text); |
| font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; |
| line-height: 1.5; |
| } |
| main { |
| width: min(1180px, calc(100% - 40px)); |
| margin: 0 auto; |
| padding: 32px 0 48px; |
| } |
| header, section { |
| margin-bottom: 28px; |
| } |
| h1, h2, h3, p { |
| margin-top: 0; |
| } |
| h1 { |
| margin-bottom: 4px; |
| font-size: 32px; |
| line-height: 1.2; |
| } |
| h2 { |
| margin-bottom: 12px; |
| font-size: 20px; |
| } |
| h3 { |
| margin-bottom: 12px; |
| font-size: 18px; |
| } |
| a { |
| color: var(--accent); |
| } |
| code { |
| overflow-wrap: anywhere; |
| font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; |
| font-size: 0.92em; |
| } |
| .muted { |
| color: var(--muted); |
| } |
| .panel { |
| background: var(--panel); |
| border: 1px solid var(--line); |
| border-radius: 8px; |
| padding: 18px; |
| } |
| .grid { |
| display: grid; |
| grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); |
| gap: 12px; |
| } |
| .card { |
| background: var(--panel); |
| border: 1px solid var(--line); |
| border-radius: 8px; |
| padding: 14px 16px; |
| } |
| .card .label { |
| color: var(--muted); |
| font-size: 13px; |
| } |
| .card .value { |
| margin-top: 4px; |
| font-size: 24px; |
| font-weight: 700; |
| } |
| dl { |
| display: grid; |
| grid-template-columns: max-content minmax(0, 1fr); |
| gap: 8px 16px; |
| margin: 0; |
| } |
| dt { |
| color: var(--muted); |
| font-weight: 600; |
| } |
| dd { |
| margin: 0; |
| min-width: 0; |
| } |
| table { |
| width: 100%; |
| border-collapse: collapse; |
| background: var(--panel); |
| border: 1px solid var(--line); |
| border-radius: 8px; |
| overflow: hidden; |
| } |
| th, td { |
| padding: 10px 12px; |
| border-bottom: 1px solid var(--line); |
| text-align: right; |
| white-space: nowrap; |
| } |
| th { |
| background: var(--accent-soft); |
| color: #17465e; |
| font-size: 13px; |
| font-weight: 700; |
| } |
| th:first-child, td:first-child { |
| text-align: left; |
| } |
| tr:last-child td { |
| border-bottom: 0; |
| } |
| .table-wrap { |
| overflow-x: auto; |
| } |
| .histograms { |
| display: grid; |
| grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); |
| gap: 14px; |
| } |
| figure { |
| margin: 0; |
| } |
| img { |
| width: 100%; |
| height: auto; |
| display: block; |
| border: 1px solid var(--line); |
| border-radius: 6px; |
| background: white; |
| } |
| figcaption { |
| margin-top: 6px; |
| color: var(--muted); |
| font-size: 13px; |
| } |
| details summary { |
| cursor: pointer; |
| color: var(--accent); |
| font-weight: 600; |
| } |
| ul { |
| margin: 12px 0 0; |
| padding-left: 20px; |
| } |
| @media (max-width: 640px) { |
| main { |
| width: min(100% - 24px, 1180px); |
| padding-top: 20px; |
| } |
| dl { |
| grid-template-columns: 1fr; |
| gap: 2px 0; |
| } |
| dt { |
| margin-top: 8px; |
| } |
| } |
| </style> |
| </head> |
| <body> |
| <main> |
| <header> |
| <h1>Token Statistics</h1> |
| <p class="muted">Created 2026-05-12T02:33:22.748533+00:00</p> |
| </header> |
|
|
| <section class="panel"> |
| <h2>Run</h2> |
| <dl> |
| <dt>Input path</dt> |
| <dd><code>/data/xhuan192/projects/hf-dataset-analyzer/hf-dataset-analyzer/token_count/s1-LLaVA-558K-Webdataset</code></dd> |
| <dt>Output path</dt> |
| <dd><code>/data/xhuan192/projects/hf-dataset-analyzer/hf-dataset-analyzer/token_stats/s1-LLaVA-558K-Webdataset</code></dd> |
| <dt>Patch size</dt> |
| <dd>16 x 16</dd> |
| <dt>Histogram bins</dt> |
| <dd>100</dd> |
| <dt>Script version</dt> |
| <dd>2</dd> |
| <dt>Artifacts</dt> |
| <dd><a href="summary.json">summary.json</a> and <a href="summary.csv">summary.csv</a></dd> |
| </dl> |
| </section> |
|
|
| <section> |
| <h2>Overview</h2> |
| <div class="grid"> |
| <div class="card"> |
| <div class="label">Records</div> |
| <div class="value">23,988</div> |
| </div> |
| <div class="card"> |
| <div class="label">Image Samples</div> |
| <div class="value">23,988</div> |
| </div> |
| <div class="card"> |
| <div class="label">Images</div> |
| <div class="value">625,769</div> |
| </div> |
| <div class="card"> |
| <div class="label">Invalid Image Entries</div> |
| <div class="value">0</div> |
| </div> |
| </div> |
| </section> |
|
|
| <section> |
| <h2>Metrics</h2> |
| <div class="table-wrap"> |
| <table> |
| <thead> |
| <tr> |
| <th>Metric</th> |
| <th>Count</th> |
| <th>Total</th> |
| <th>Average</th> |
| <th>P0</th> |
| <th>P25</th> |
| <th>P50</th> |
| <th>P75</th> |
| <th>P90</th> |
| <th>P99</th> |
| <th>P100</th> |
| </tr> |
| </thead> |
| <tbody> |
| <tr><td>Text Tokens</td><td>23,988</td><td>15,402,041</td><td>642.072745</td><td>144</td><td>566</td><td>648</td><td>713</td><td>816</td><td>928</td><td>1,019</td></tr> |
| <tr><td>Image Tokens</td><td>23,988</td><td>377,303,864</td><td>15,728.858763</td><td>8,925</td><td>14,784</td><td>16,107</td><td>16,359</td><td>16,737</td><td>17,661</td><td>19,271</td></tr> |
| <tr><td>Total Tokens</td><td>23,988</td><td>392,705,905</td><td>16,370.931507</td><td>9,228</td><td>15,558</td><td>16,766</td><td>17,003</td><td>17,326</td><td>18,033.52</td><td>19,415</td></tr> |
| </tbody> |
| </table> |
| </div> |
| </section> |
|
|
| <section> |
| <h2>Histograms</h2> |
| <article class="panel"> |
| <h3>Text Tokens</h3> |
| <div class="histograms"> |
| <figure> |
| <img src="text_tokens_histogram_full.png" alt="Text Tokens full histogram"> |
| <figcaption>Full range</figcaption> |
| </figure> |
| <figure> |
| <img src="text_tokens_histogram_p0_p99.png" alt="Text Tokens P0-P99 histogram"> |
| <figcaption>P0-P99 range</figcaption> |
| </figure> |
| </div> |
| </article> |
| <article class="panel"> |
| <h3>Image Tokens</h3> |
| <div class="histograms"> |
| <figure> |
| <img src="image_tokens_histogram_full.png" alt="Image Tokens full histogram"> |
| <figcaption>Full range</figcaption> |
| </figure> |
| <figure> |
| <img src="image_tokens_histogram_p0_p99.png" alt="Image Tokens P0-P99 histogram"> |
| <figcaption>P0-P99 range</figcaption> |
| </figure> |
| </div> |
| </article> |
| <article class="panel"> |
| <h3>Total Tokens</h3> |
| <div class="histograms"> |
| <figure> |
| <img src="total_tokens_histogram_full.png" alt="Total Tokens full histogram"> |
| <figcaption>Full range</figcaption> |
| </figure> |
| <figure> |
| <img src="total_tokens_histogram_p0_p99.png" alt="Total Tokens P0-P99 histogram"> |
| <figcaption>P0-P99 range</figcaption> |
| </figure> |
| </div> |
| </article> |
| </section> |
|
|
| <section class="panel"> |
| <details> |
| <summary>Input files (5)</summary> |
| <ul> |
| <li><code>/data/xhuan192/projects/hf-dataset-analyzer/hf-dataset-analyzer/token_count/s1-LLaVA-558K-Webdataset/results/000000_pretrain-000000_e0e096413c.jsonl</code></li> |
| <li><code>/data/xhuan192/projects/hf-dataset-analyzer/hf-dataset-analyzer/token_count/s1-LLaVA-558K-Webdataset/results/000001_pretrain-000001_7bc1ef829a.jsonl</code></li> |
| <li><code>/data/xhuan192/projects/hf-dataset-analyzer/hf-dataset-analyzer/token_count/s1-LLaVA-558K-Webdataset/results/000002_pretrain-000002_400a0b4ccb.jsonl</code></li> |
| <li><code>/data/xhuan192/projects/hf-dataset-analyzer/hf-dataset-analyzer/token_count/s1-LLaVA-558K-Webdataset/results/000003_pretrain-000003_7e09a66909.jsonl</code></li> |
| <li><code>/data/xhuan192/projects/hf-dataset-analyzer/hf-dataset-analyzer/token_count/s1-LLaVA-558K-Webdataset/results/000004_pretrain-000004_018c2af18d.jsonl</code></li> |
| </ul> |
| </details> |
| </section> |
| </main> |
| </body> |
| </html> |
|
|