Two sessions: LTX-2.5 and YuE2-3B on an RTX 5060 Ti 16GB, schema v1
Browse files- README.md +73 -0
- SCHEMA.md +120 -0
- runs.csv +20 -0
- sessions/2026-08-13_ltx-2-5_rtx-5060-ti/README.md +18 -0
- sessions/2026-08-13_ltx-2-5_rtx-5060-ti/raw/README-original.md +60 -0
- sessions/2026-08-13_ltx-2-5_rtx-5060-ti/raw/runs-original.csv +16 -0
- sessions/2026-08-13_ltx-2-5_rtx-5060-ti/raw/vram-samples.csv +0 -0
- sessions/2026-08-13_ltx-2-5_rtx-5060-ti/session.json +39 -0
- sessions/2026-09-10_yue2-3b_rtx-5060-ti/README.md +26 -0
- sessions/2026-09-10_yue2-3b_rtx-5060-ti/raw/RESULT.json +118 -0
- sessions/2026-09-10_yue2-3b_rtx-5060-ti/raw/measure_longsong.py +124 -0
- sessions/2026-09-10_yue2-3b_rtx-5060-ti/raw/measure_yue2.py +207 -0
- sessions/2026-09-10_yue2-3b_rtx-5060-ti/session.json +40 -0
README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-sa-4.0
|
| 3 |
+
pretty_name: Smeltcore GPU measurements
|
| 4 |
+
tags:
|
| 5 |
+
- benchmark
|
| 6 |
+
- gpu
|
| 7 |
+
- vram
|
| 8 |
+
- local-ai
|
| 9 |
+
- comfyui
|
| 10 |
+
- llama-cpp
|
| 11 |
+
configs:
|
| 12 |
+
- config_name: runs
|
| 13 |
+
data_files: runs.csv
|
| 14 |
+
default: true
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# Smeltcore GPU measurements
|
| 18 |
+
|
| 19 |
+
Raw VRAM and timing measurements of AI models running locally on consumer GPUs, made by the
|
| 20 |
+
operator of [smeltcore.com](https://smeltcore.com) on his own hardware. Every benchmark on
|
| 21 |
+
smeltcore.com that says *measured by us* points at a session folder in this repository, so a
|
| 22 |
+
reader can check the number against the trace it came from.
|
| 23 |
+
|
| 24 |
+
This is not a leaderboard. It is the evidence behind specific claims — "this model fits on this
|
| 25 |
+
card in this configuration" — published so that the claim can be audited rather than trusted.
|
| 26 |
+
|
| 27 |
+
## The table
|
| 28 |
+
|
| 29 |
+
`runs.csv` holds one row per generation across every session. The dataset viewer above shows it;
|
| 30 |
+
filter by `model_slug` and `gpu_slug`. The full column list and the rules behind it are in
|
| 31 |
+
[`SCHEMA.md`](SCHEMA.md).
|
| 32 |
+
|
| 33 |
+
## Read these before comparing numbers
|
| 34 |
+
|
| 35 |
+
- **Units are MiB, as the instrument reports them.** Nothing is converted to GB in this table.
|
| 36 |
+
`nvidia-smi` reports MiB; NVML reports bytes; neither is decimal gigabytes. Convert at the point
|
| 37 |
+
of use.
|
| 38 |
+
- **These are whole-card figures.** They include whatever a monitor or another program holds on
|
| 39 |
+
the card. `display_attached` says whether a monitor was driven by the GPU. `idle_device_mib` is
|
| 40 |
+
the card's memory just before the run; `peak_device_mib − idle_device_mib` estimates the
|
| 41 |
+
workload's share, assuming the rest held steady.
|
| 42 |
+
- **An empty cell means "not measured", never zero.** One session has no idle baseline; its idle
|
| 43 |
+
column is empty rather than guessed.
|
| 44 |
+
- **A failed run is a row.** An out-of-memory run appears with `ok = false` and `failure = oom`.
|
| 45 |
+
A missing combination means it was not attempted.
|
| 46 |
+
- **Cold and warm runs differ.** `cold_start` says whether models were unloaded first. A model
|
| 47 |
+
already resident from a previous job changes the memory profile of the next one.
|
| 48 |
+
- **Unreplicated: one rig, one operator.** These are single-machine measurements. They show that
|
| 49 |
+
something ran, with what, and at what cost on that machine — not a population average.
|
| 50 |
+
|
| 51 |
+
## Layout
|
| 52 |
+
|
| 53 |
+
```
|
| 54 |
+
runs.csv every run, one row each — the table the viewer shows
|
| 55 |
+
SCHEMA.md the columns, and why each rule exists
|
| 56 |
+
sessions/<session_id>/
|
| 57 |
+
README.md what was measured and what it found
|
| 58 |
+
session.json environment, instrument, and caveats
|
| 59 |
+
raw/ traces, the runtime's own output, and the harness that ran
|
| 60 |
+
harness/ the current measurement harnesses
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
## Sessions
|
| 64 |
+
|
| 65 |
+
| session | model | card | runs | result |
|
| 66 |
+
|---|---|---|---:|---|
|
| 67 |
+
| [`2026-08-13_ltx-2-5_rtx-5060-ti`](sessions/2026-08-13_ltx-2-5_rtx-5060-ti) | LTX-2.5 (video) | RTX 5060 Ti 16GB | 15 | no OOM, up to 1920x1088 and 193 frames |
|
| 68 |
+
| [`2026-09-10_yue2-3b_rtx-5060-ti`](sessions/2026-09-10_yue2-3b_rtx-5060-ti) | YuE2-3B (music) | RTX 5060 Ti 16GB | 4 | no OOM, including full context on two CFG branches |
|
| 69 |
+
|
| 70 |
+
## Licence
|
| 71 |
+
|
| 72 |
+
CC BY-SA 4.0, matching [Smeltcore/gpu-compatibility](https://huggingface.co/datasets/Smeltcore/gpu-compatibility).
|
| 73 |
+
The model weights measured here carry their own licences; nothing from them is redistributed.
|
SCHEMA.md
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Smeltcore measurements — schema v1
|
| 2 |
+
|
| 3 |
+
This is the contract between three things: the harnesses that produce measurements, the
|
| 4 |
+
`Smeltcore/measurements` dataset that publishes them, and the benchmark rows the site imports
|
| 5 |
+
from them. Change it only by bumping the version and saying why.
|
| 6 |
+
|
| 7 |
+
## Principles — each one is a scar
|
| 8 |
+
|
| 9 |
+
1. **Store the instrument's native unit. Never a converted one.** `nvidia-smi` reports MiB;
|
| 10 |
+
store MiB as an integer. Every unit error in the 2026-09-10 round — GiB compared against a
|
| 11 |
+
nameplate, a device peak compared against a process ceiling — happened at a conversion. Convert
|
| 12 |
+
at the point of use, where the reader can see it happen.
|
| 13 |
+
2. **Device and process are different measurements.** A whole-card peak includes whatever a
|
| 14 |
+
monitor, a browser or another process holds. `set_per_process_memory_fraction` and similar
|
| 15 |
+
limits bind the *process*. Record the device peak, the idle baseline before the run, and
|
| 16 |
+
whether a display was attached — always. Record a process peak where the runtime exposes one.
|
| 17 |
+
3. **A failed run is a result.** An OOM is a row with `ok=false` and a `failure` reason, not a
|
| 18 |
+
gap in the table. Absence of a row means "not attempted", never "did not work".
|
| 19 |
+
4. **Raw evidence travels with the result.** Every session keeps the raw trace, the runtime's own
|
| 20 |
+
log and a copy of the exact harness that ran. A number nobody can re-derive is a claim.
|
| 21 |
+
5. **The benchmark row is a projection, not a source.** `runs.csv` holds measurements. Which
|
| 22 |
+
number becomes a headline `speed_value` on `/check` is decided when a benchmark row is
|
| 23 |
+
generated, not baked into the data.
|
| 24 |
+
6. **One run is one row, and runs are cold by default.** Unload models before each run so every
|
| 25 |
+
row is independent. A warm run is legitimate but must say so (`cold_start=false`), because a
|
| 26 |
+
resident model changes the memory profile — the LTX-2.5 session showed a text encoder
|
| 27 |
+
re-entering VRAM on top of resident weights as the entire story behind its three worst peaks.
|
| 28 |
+
|
| 29 |
+
## Layout
|
| 30 |
+
|
| 31 |
+
```
|
| 32 |
+
README.md dataset card; pins the viewer to runs.csv via `configs`
|
| 33 |
+
runs.csv ONE table, one row per run, every session
|
| 34 |
+
sessions/<session_id>/
|
| 35 |
+
session.json environment + method for the whole session
|
| 36 |
+
README.md human notes and caveats specific to this session
|
| 37 |
+
raw/ traces, runtime logs, the workflow/config used, harness copy
|
| 38 |
+
harness/ the current harnesses (sessions carry their own copy)
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
`session_id` = `<YYYY-MM-DD>_<model_slug>_<gpu_slug>`, e.g.
|
| 42 |
+
`2026-09-10_yue2-3b_rtx-5060-ti`. A second session for the same pair on the same day appends
|
| 43 |
+
`_2`. Date first so the directory sorts chronologically.
|
| 44 |
+
|
| 45 |
+
## `runs.csv`
|
| 46 |
+
|
| 47 |
+
Columns in this order. Empty cell = not applicable or not measured — never zero.
|
| 48 |
+
|
| 49 |
+
| column | type | meaning |
|
| 50 |
+
|---|---|---|
|
| 51 |
+
| `session_id` | str | joins to `sessions/<session_id>/` |
|
| 52 |
+
| `run` | int | order within the session, from 1 |
|
| 53 |
+
| `measured_at` | ISO 8601 UTC | when the run started |
|
| 54 |
+
| `model_slug` | str | catalogue slug on smeltcore.com |
|
| 55 |
+
| `gpu_slug` | str | catalogue slug on smeltcore.com |
|
| 56 |
+
| `vertical` | str | the model's catalogue vertical |
|
| 57 |
+
| `task` | str | `t2i` `i2i` `t2v` `i2v` `llm` `t2m` `tts` — same vocabulary as benchmark rows |
|
| 58 |
+
| `runtime` | str | `comfyui` `llama.cpp` `vendor-python` … |
|
| 59 |
+
| `runtime_version` | str | commit hash or version of the runtime itself |
|
| 60 |
+
| `artifact` | str | the exact weights: HF repo + filename(s), `;`-separated |
|
| 61 |
+
| `quantization` | str | as the artifact names it: `Q3_K_M`, `bf16`, `fp8_e4m3fn` … |
|
| 62 |
+
| `width` | int | output pixels, read back from the produced file — not the requested size |
|
| 63 |
+
| `height` | int | as above |
|
| 64 |
+
| `frames` | int | output frame count, read back from the produced file |
|
| 65 |
+
| `steps` | int | sampler steps; for multi-pass schedules the total, detail in `config_json` |
|
| 66 |
+
| `context_tokens` | int | LLM: context size the runtime was started with |
|
| 67 |
+
| `prompt_tokens` | int | LLM: prompt length processed |
|
| 68 |
+
| `gen_tokens` | int | LLM: tokens generated |
|
| 69 |
+
| `output_seconds` | float | duration of produced audio/video, read back from the file |
|
| 70 |
+
| `config_json` | JSON str | every other knob that affects memory or speed, verbatim |
|
| 71 |
+
| `cold_start` | bool | models unloaded before this run |
|
| 72 |
+
| `ok` | bool | completed and produced an output file |
|
| 73 |
+
| `failure` | str | empty when `ok`; else `oom` `crash` `timeout` `invalid-output` |
|
| 74 |
+
| `wall_s` | float | the runtime's own execution time for this job |
|
| 75 |
+
| `prefill_tokens_per_s` | float | LLM only |
|
| 76 |
+
| `gen_tokens_per_s` | float | LLM only |
|
| 77 |
+
| `idle_device_mib` | int | whole-card memory.used immediately before the run was queued |
|
| 78 |
+
| `peak_device_mib` | int | highest whole-card memory.used sampled inside the run's window |
|
| 79 |
+
| `peak_process_mib` | int | runtime-reported process peak, where available |
|
| 80 |
+
| `vram_total_mib` | int | memory.total as the driver reports it |
|
| 81 |
+
| `display_attached` | bool | a monitor was driven by this GPU during the run |
|
| 82 |
+
| `gpu_name` | str | as the driver reports it |
|
| 83 |
+
| `driver` | str | driver version |
|
| 84 |
+
| `sample_ms` | int | VRAM sampling interval in milliseconds |
|
| 85 |
+
| `notes` | str | one line; anything a reader needs to not misread this row |
|
| 86 |
+
|
| 87 |
+
Derived quantities are **not** stored: headroom (`vram_total_mib - peak_device_mib`),
|
| 88 |
+
real-time factor (`wall_s / output_seconds`), per-process estimate
|
| 89 |
+
(`peak_device_mib - idle_device_mib`, which assumes idle held constant through the run).
|
| 90 |
+
|
| 91 |
+
## `session.json`
|
| 92 |
+
|
| 93 |
+
```json
|
| 94 |
+
{
|
| 95 |
+
"schema_version": 1,
|
| 96 |
+
"session_id": "2026-09-10_yue2-3b_rtx-5060-ti",
|
| 97 |
+
"operator": "site operator, own hardware",
|
| 98 |
+
"gpu": {"slug": "rtx-5060-ti", "name": "NVIDIA GeForce RTX 5060 Ti",
|
| 99 |
+
"vram_total_mib": 16311, "driver": "591.86", "compute_capability": "12.0"},
|
| 100 |
+
"host": {"os": "Windows 11 + WSL2 Ubuntu 24.04", "ram_gib": 23},
|
| 101 |
+
"display_attached": true,
|
| 102 |
+
"runtime": {"name": "comfyui", "version": "<commit>", "extras": {}},
|
| 103 |
+
"instrument": {
|
| 104 |
+
"vram": "nvidia-smi --query-gpu=timestamp,memory.used,memory.total,utilization.gpu --format=csv,noheader,nounits -lms 500",
|
| 105 |
+
"scope": "whole-card",
|
| 106 |
+
"sample_ms": 500
|
| 107 |
+
},
|
| 108 |
+
"harness": "raw/harness/",
|
| 109 |
+
"caveats": ["one line each — what a future reader should not have to rediscover"]
|
| 110 |
+
}
|
| 111 |
+
```
|
| 112 |
+
|
| 113 |
+
## Projection to a benchmark row
|
| 114 |
+
|
| 115 |
+
One benchmark row per `(session_id, config)` headline, generated — never hand-typed — with
|
| 116 |
+
`source_url` = the session folder on Hugging Face, e.g.
|
| 117 |
+
`https://huggingface.co/datasets/Smeltcore/measurements/tree/main/sessions/<session_id>`.
|
| 118 |
+
`peak_vram_gb` is **decimal GB** in that table: `peak_device_mib * 1048576 / 1e9`, converted
|
| 119 |
+
exactly once, in the generator. `notes` names the session and states device vs process,
|
| 120 |
+
display attached, and "unreplicated: one rig, one operator".
|
runs.csv
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
session_id,run,measured_at,model_slug,gpu_slug,vertical,task,runtime,runtime_version,artifact,quantization,width,height,frames,steps,context_tokens,prompt_tokens,gen_tokens,output_seconds,config_json,cold_start,ok,failure,wall_s,prefill_tokens_per_s,gen_tokens_per_s,idle_device_mib,peak_device_mib,peak_process_mib,vram_total_mib,display_attached,gpu_name,driver,sample_ms,notes
|
| 2 |
+
2026-08-13_ltx-2-5_rtx-5060-ti,1,,ltx-2-5,rtx-5060-ti,video,t2v,comfyui,b323a345,realrebelai/LTX-2.5_GGUFs:LTX-2.5-Distilled-Q3_K_M.gguf;Lightricks/LTX-2.5:text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-video-vae-conv-bf16.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-audio-vae-bf16.safetensors;Lightricks/LTX-2.5:latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors;Comfy-Org/gemma-4:text_encoders/gemma4_e2b_it_bf16.safetensors,Q3_K_M,576,320,49,11,,,,2.0,"{""schedule"": ""8 steps + 3 steps"", ""vae_decode"": ""VAEDecodeTiled 512"", ""prompt_enhancer"": false, ""encoder_reloaded"": true, ""scene"": ""blacksmith, cold start"", ""fps"": 24, ""comfyui_gguf"": ""6ea2651e""}",true,true,,60.55,,,,15038,,16311,true,NVIDIA GeForce RTX 5060 Ti,591.86,500,"prompt changed, so the 14.3 GiB text encoder re-entered VRAM on top of the resident transformer"
|
| 3 |
+
2026-08-13_ltx-2-5_rtx-5060-ti,2,,ltx-2-5,rtx-5060-ti,video,i2v,comfyui,b323a345,realrebelai/LTX-2.5_GGUFs:LTX-2.5-Distilled-Q3_K_M.gguf;Lightricks/LTX-2.5:text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-video-vae-conv-bf16.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-audio-vae-bf16.safetensors;Lightricks/LTX-2.5:latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors;Comfy-Org/gemma-4:text_encoders/gemma4_e2b_it_bf16.safetensors,Q3_K_M,640,320,97,11,,,,4.0,"{""schedule"": ""8 steps + 3 steps"", ""vae_decode"": ""VAEDecodeTiled 512"", ""prompt_enhancer"": false, ""encoder_reloaded"": true, ""scene"": ""character, head turn"", ""fps"": 24, ""comfyui_gguf"": ""6ea2651e""}",false,true,,57.75,,,,15504,,16311,true,NVIDIA GeForce RTX 5060 Ti,591.86,500,"prompt changed, so the 14.3 GiB text encoder re-entered VRAM on top of the resident transformer"
|
| 4 |
+
2026-08-13_ltx-2-5_rtx-5060-ti,3,,ltx-2-5,rtx-5060-ti,video,i2v,comfyui,b323a345,realrebelai/LTX-2.5_GGUFs:LTX-2.5-Distilled-Q3_K_M.gguf;Lightricks/LTX-2.5:text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-video-vae-conv-bf16.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-audio-vae-bf16.safetensors;Lightricks/LTX-2.5:latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors;Comfy-Org/gemma-4:text_encoders/gemma4_e2b_it_bf16.safetensors,Q3_K_M,768,448,97,11,,,,4.0,"{""schedule"": ""8 steps + 3 steps"", ""vae_decode"": ""VAEDecodeTiled 512"", ""prompt_enhancer"": false, ""encoder_reloaded"": false, ""scene"": ""character, head turn"", ""fps"": 24, ""comfyui_gguf"": ""6ea2651e""}",false,true,,47.67,,,,14815,,16311,true,NVIDIA GeForce RTX 5060 Ti,591.86,500,
|
| 5 |
+
2026-08-13_ltx-2-5_rtx-5060-ti,4,,ltx-2-5,rtx-5060-ti,video,t2v,comfyui,b323a345,realrebelai/LTX-2.5_GGUFs:LTX-2.5-Distilled-Q3_K_M.gguf;Lightricks/LTX-2.5:text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-video-vae-conv-bf16.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-audio-vae-bf16.safetensors;Lightricks/LTX-2.5:latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors;Comfy-Org/gemma-4:text_encoders/gemma4_e2b_it_bf16.safetensors,Q3_K_M,640,320,97,11,,,,4.0,"{""schedule"": ""8 steps + 3 steps"", ""vae_decode"": ""VAEDecodeTiled 512"", ""prompt_enhancer"": false, ""encoder_reloaded"": true, ""scene"": ""space"", ""fps"": 24, ""comfyui_gguf"": ""6ea2651e""}",false,true,,45.98,,,,15827,,16311,true,NVIDIA GeForce RTX 5060 Ti,591.86,500,"prompt changed, so the 14.3 GiB text encoder re-entered VRAM on top of the resident transformer"
|
| 6 |
+
2026-08-13_ltx-2-5_rtx-5060-ti,5,,ltx-2-5,rtx-5060-ti,video,t2v,comfyui,b323a345,realrebelai/LTX-2.5_GGUFs:LTX-2.5-Distilled-Q3_K_M.gguf;Lightricks/LTX-2.5:text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-video-vae-conv-bf16.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-audio-vae-bf16.safetensors;Lightricks/LTX-2.5:latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors;Comfy-Org/gemma-4:text_encoders/gemma4_e2b_it_bf16.safetensors,Q3_K_M,768,448,49,11,,,,2.0,"{""schedule"": ""8 steps + 3 steps"", ""vae_decode"": ""VAEDecodeTiled 512"", ""prompt_enhancer"": false, ""encoder_reloaded"": false, ""scene"": ""space"", ""fps"": 24, ""comfyui_gguf"": ""6ea2651e""}",false,true,,34.62,,,,14720,,16311,true,NVIDIA GeForce RTX 5060 Ti,591.86,500,
|
| 7 |
+
2026-08-13_ltx-2-5_rtx-5060-ti,6,,ltx-2-5,rtx-5060-ti,video,t2v,comfyui,b323a345,realrebelai/LTX-2.5_GGUFs:LTX-2.5-Distilled-Q3_K_M.gguf;Lightricks/LTX-2.5:text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-video-vae-conv-bf16.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-audio-vae-bf16.safetensors;Lightricks/LTX-2.5:latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors;Comfy-Org/gemma-4:text_encoders/gemma4_e2b_it_bf16.safetensors,Q3_K_M,768,448,97,11,,,,4.0,"{""schedule"": ""8 steps + 3 steps"", ""vae_decode"": ""VAEDecodeTiled 512"", ""prompt_enhancer"": false, ""encoder_reloaded"": false, ""scene"": ""space"", ""fps"": 24, ""comfyui_gguf"": ""6ea2651e""}",false,true,,41.92,,,,14705,,16311,true,NVIDIA GeForce RTX 5060 Ti,591.86,500,
|
| 8 |
+
2026-08-13_ltx-2-5_rtx-5060-ti,7,,ltx-2-5,rtx-5060-ti,video,t2v,comfyui,b323a345,realrebelai/LTX-2.5_GGUFs:LTX-2.5-Distilled-Q3_K_M.gguf;Lightricks/LTX-2.5:text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-video-vae-conv-bf16.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-audio-vae-bf16.safetensors;Lightricks/LTX-2.5:latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors;Comfy-Org/gemma-4:text_encoders/gemma4_e2b_it_bf16.safetensors,Q3_K_M,832,512,97,11,,,,4.0,"{""schedule"": ""8 steps + 3 steps"", ""vae_decode"": ""VAEDecodeTiled 512"", ""prompt_enhancer"": false, ""encoder_reloaded"": false, ""scene"": ""space"", ""fps"": 24, ""comfyui_gguf"": ""6ea2651e""}",false,true,,49.48,,,,14943,,16311,true,NVIDIA GeForce RTX 5060 Ti,591.86,500,
|
| 9 |
+
2026-08-13_ltx-2-5_rtx-5060-ti,8,,ltx-2-5,rtx-5060-ti,video,t2v,comfyui,b323a345,realrebelai/LTX-2.5_GGUFs:LTX-2.5-Distilled-Q3_K_M.gguf;Lightricks/LTX-2.5:text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-video-vae-conv-bf16.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-audio-vae-bf16.safetensors;Lightricks/LTX-2.5:latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors;Comfy-Org/gemma-4:text_encoders/gemma4_e2b_it_bf16.safetensors,Q3_K_M,1088,576,97,11,,,,4.0,"{""schedule"": ""8 steps + 3 steps"", ""vae_decode"": ""VAEDecodeTiled 512"", ""prompt_enhancer"": false, ""encoder_reloaded"": false, ""scene"": ""space"", ""fps"": 24, ""comfyui_gguf"": ""6ea2651e""}",false,true,,62.03,,,,14735,,16311,true,NVIDIA GeForce RTX 5060 Ti,591.86,500,
|
| 10 |
+
2026-08-13_ltx-2-5_rtx-5060-ti,9,,ltx-2-5,rtx-5060-ti,video,t2v,comfyui,b323a345,realrebelai/LTX-2.5_GGUFs:LTX-2.5-Distilled-Q3_K_M.gguf;Lightricks/LTX-2.5:text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-video-vae-conv-bf16.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-audio-vae-bf16.safetensors;Lightricks/LTX-2.5:latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors;Comfy-Org/gemma-4:text_encoders/gemma4_e2b_it_bf16.safetensors,Q3_K_M,1216,704,97,11,,,,4.0,"{""schedule"": ""8 steps + 3 steps"", ""vae_decode"": ""VAEDecodeTiled 512"", ""prompt_enhancer"": false, ""encoder_reloaded"": false, ""scene"": ""space"", ""fps"": 24, ""comfyui_gguf"": ""6ea2651e""}",false,true,,76.22,,,,14778,,16311,true,NVIDIA GeForce RTX 5060 Ti,591.86,500,
|
| 11 |
+
2026-08-13_ltx-2-5_rtx-5060-ti,10,,ltx-2-5,rtx-5060-ti,video,t2v,comfyui,b323a345,realrebelai/LTX-2.5_GGUFs:LTX-2.5-Distilled-Q3_K_M.gguf;Lightricks/LTX-2.5:text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-video-vae-conv-bf16.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-audio-vae-bf16.safetensors;Lightricks/LTX-2.5:latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors;Comfy-Org/gemma-4:text_encoders/gemma4_e2b_it_bf16.safetensors,Q3_K_M,1344,768,97,11,,,,4.0,"{""schedule"": ""8 steps + 3 steps"", ""vae_decode"": ""VAEDecodeTiled 512"", ""prompt_enhancer"": false, ""encoder_reloaded"": false, ""scene"": ""space"", ""fps"": 24, ""comfyui_gguf"": ""6ea2651e""}",false,true,,88.51,,,,14614,,16311,true,NVIDIA GeForce RTX 5060 Ti,591.86,500,
|
| 12 |
+
2026-08-13_ltx-2-5_rtx-5060-ti,11,,ltx-2-5,rtx-5060-ti,video,t2v,comfyui,b323a345,realrebelai/LTX-2.5_GGUFs:LTX-2.5-Distilled-Q3_K_M.gguf;Lightricks/LTX-2.5:text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-video-vae-conv-bf16.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-audio-vae-bf16.safetensors;Lightricks/LTX-2.5:latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors;Comfy-Org/gemma-4:text_encoders/gemma4_e2b_it_bf16.safetensors,Q3_K_M,1664,960,97,11,,,,4.0,"{""schedule"": ""8 steps + 3 steps"", ""vae_decode"": ""VAEDecodeTiled 512"", ""prompt_enhancer"": false, ""encoder_reloaded"": false, ""scene"": ""space"", ""fps"": 24, ""comfyui_gguf"": ""6ea2651e""}",false,true,,131.77,,,,15115,,16311,true,NVIDIA GeForce RTX 5060 Ti,591.86,500,
|
| 13 |
+
2026-08-13_ltx-2-5_rtx-5060-ti,12,,ltx-2-5,rtx-5060-ti,video,t2v,comfyui,b323a345,realrebelai/LTX-2.5_GGUFs:LTX-2.5-Distilled-Q3_K_M.gguf;Lightricks/LTX-2.5:text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-video-vae-conv-bf16.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-audio-vae-bf16.safetensors;Lightricks/LTX-2.5:latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors;Comfy-Org/gemma-4:text_encoders/gemma4_e2b_it_bf16.safetensors,Q3_K_M,1920,1088,97,11,,,,4.0,"{""schedule"": ""8 steps + 3 steps"", ""vae_decode"": ""VAEDecodeTiled 512"", ""prompt_enhancer"": false, ""encoder_reloaded"": false, ""scene"": ""space"", ""fps"": 24, ""comfyui_gguf"": ""6ea2651e""}",false,true,,183.12,,,,14512,,16311,true,NVIDIA GeForce RTX 5060 Ti,591.86,500,
|
| 14 |
+
2026-08-13_ltx-2-5_rtx-5060-ti,13,,ltx-2-5,rtx-5060-ti,video,i2v,comfyui,b323a345,realrebelai/LTX-2.5_GGUFs:LTX-2.5-Distilled-Q3_K_M.gguf;Lightricks/LTX-2.5:text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-video-vae-conv-bf16.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-audio-vae-bf16.safetensors;Lightricks/LTX-2.5:latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors;Comfy-Org/gemma-4:text_encoders/gemma4_e2b_it_bf16.safetensors,Q3_K_M,1344,768,145,11,,,,6.0,"{""schedule"": ""8 steps + 3 steps"", ""vae_decode"": ""VAEDecodeTiled 512"", ""prompt_enhancer"": false, ""encoder_reloaded"": true, ""scene"": ""character, exits car"", ""fps"": 24, ""comfyui_gguf"": ""6ea2651e""}",false,true,,143.39,,,,15912,,16311,true,NVIDIA GeForce RTX 5060 Ti,591.86,500,"prompt changed, so the 14.3 GiB text encoder re-entered VRAM on top of the resident transformer"
|
| 15 |
+
2026-08-13_ltx-2-5_rtx-5060-ti,14,,ltx-2-5,rtx-5060-ti,video,i2v,comfyui,b323a345,realrebelai/LTX-2.5_GGUFs:LTX-2.5-Distilled-Q3_K_M.gguf;Lightricks/LTX-2.5:text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-video-vae-conv-bf16.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-audio-vae-bf16.safetensors;Lightricks/LTX-2.5:latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors;Comfy-Org/gemma-4:text_encoders/gemma4_e2b_it_bf16.safetensors,Q3_K_M,1344,768,193,11,,,,8.0,"{""schedule"": ""8 steps + 3 steps"", ""vae_decode"": ""VAEDecodeTiled 512"", ""prompt_enhancer"": false, ""encoder_reloaded"": false, ""scene"": ""character, exits car"", ""fps"": 24, ""comfyui_gguf"": ""6ea2651e""}",false,true,,181.85,,,,14596,,16311,true,NVIDIA GeForce RTX 5060 Ti,591.86,500,
|
| 16 |
+
2026-08-13_ltx-2-5_rtx-5060-ti,15,,ltx-2-5,rtx-5060-ti,video,i2v,comfyui,b323a345,realrebelai/LTX-2.5_GGUFs:LTX-2.5-Distilled-Q3_K_M.gguf;Lightricks/LTX-2.5:text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-video-vae-conv-bf16.safetensors;Lightricks/LTX-2.5:vae/ltx-2.5-audio-vae-bf16.safetensors;Lightricks/LTX-2.5:latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors;Comfy-Org/gemma-4:text_encoders/gemma4_e2b_it_bf16.safetensors,Q3_K_M,1664,960,193,11,,,,8.0,"{""schedule"": ""8 steps + 3 steps"", ""vae_decode"": ""VAEDecodeTiled 512"", ""prompt_enhancer"": false, ""encoder_reloaded"": false, ""scene"": ""character, exits car"", ""fps"": 24, ""comfyui_gguf"": ""6ea2651e""}",false,true,,294.06,,,,14155,,16311,true,NVIDIA GeForce RTX 5060 Ti,591.86,500,
|
| 17 |
+
2026-09-10_yue2-3b_rtx-5060-ti,1,,yue2-3b,rtx-5060-ti,music,t2m,vendor-python,yue2_infer 0.1.5,m-a-p/YuE2-3B@1a96eca688d6ae5d7f0feb88573fec89920fcd19;m-a-p/YuE2-Vae,bf16,,,,,,,,201.04,"{""cot"": ""full"", ""vendor_quantization"": ""none"", ""ar_nar"": ""bf16"", ""vae"": ""fp32"", ""load_s"": 34.81, ""memory_budget_gib"": 24, ""budget"": ""default semantic budget (9000 tokens)""}",true,true,,205.23,,,788,10291,,16311,true,NVIDIA GeForce RTX 5060 Ti,591.86,50,"MiB converted from 2-decimal GiB in RESULT.json, so each value carries +-5 MiB"
|
| 18 |
+
2026-09-10_yue2-3b_rtx-5060-ti,2,,yue2-3b,rtx-5060-ti,music,t2m,vendor-python,yue2_infer 0.1.5,m-a-p/YuE2-3B@1a96eca688d6ae5d7f0feb88573fec89920fcd19;m-a-p/YuE2-Vae,bf16,,,,,,,,165.4,"{""cot"": ""off"", ""vendor_quantization"": ""none"", ""ar_nar"": ""bf16"", ""vae"": ""fp32"", ""load_s"": 31.36, ""memory_budget_gib"": 24, ""budget"": ""default semantic budget (9000 tokens)""}",true,true,,144.39,,,778,10516,,16311,true,NVIDIA GeForce RTX 5060 Ti,591.86,50,"MiB converted from 2-decimal GiB in RESULT.json, so each value carries +-5 MiB"
|
| 19 |
+
2026-09-10_yue2-3b_rtx-5060-ti,3,,yue2-3b,rtx-5060-ti,music,t2m,vendor-python,yue2_infer 0.1.5,m-a-p/YuE2-3B@1a96eca688d6ae5d7f0feb88573fec89920fcd19;m-a-p/YuE2-Vae,bf16,,,,,,,,299.96,"{""cot"": ""full"", ""vendor_quantization"": ""none"", ""ar_nar"": ""bf16"", ""vae"": ""fp32"", ""load_s"": 30.4, ""memory_budget_gib"": 24, ""kv_capacity"": 24576, ""prefix_tokens"": 5587, ""semantic_max_tokens"": 18989, ""semantic_tokens"": 7499, ""semantic_truncated"": false, ""lyrics_chars"": 2420, ""budget"": ""KV filled to CONTEXT - len(prefix)""}",true,true,,315.53,,,860,11786,,16311,true,NVIDIA GeForce RTX 5060 Ti,591.86,50,"MiB converted from 2-decimal GiB in RESULT.json, so each value carries +-5 MiB"
|
| 20 |
+
2026-09-10_yue2-3b_rtx-5060-ti,4,,yue2-3b,rtx-5060-ti,music,t2m,vendor-python,yue2_infer 0.1.5,m-a-p/YuE2-3B@1a96eca688d6ae5d7f0feb88573fec89920fcd19;m-a-p/YuE2-Vae,bf16,,,,,,,,345.68,"{""cot"": ""off"", ""vendor_quantization"": ""none"", ""ar_nar"": ""bf16"", ""vae"": ""fp32"", ""load_s"": 31.25, ""memory_budget_gib"": 24, ""kv_capacity"": 24576, ""prefix_tokens"": 1749, ""semantic_max_tokens"": 22827, ""semantic_tokens"": 8642, ""semantic_truncated"": false, ""lyrics_chars"": 2420, ""budget"": ""KV filled to CONTEXT - len(prefix)""}",true,true,,298.55,,,860,13804,,16311,true,NVIDIA GeForce RTX 5060 Ti,591.86,50,"MiB converted from 2-decimal GiB in RESULT.json, so each value carries +-5 MiB"
|
sessions/2026-08-13_ltx-2-5_rtx-5060-ti/README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# LTX-2.5 on an RTX 5060 Ti 16GB — 2026-08-13
|
| 2 |
+
|
| 3 |
+
Fifteen text-to-video and image-to-video generations in ComfyUI, from 576x320 to 1920x1088 and
|
| 4 |
+
up to 193 frames, on a 16 GB card with a monitor attached. **No run ran out of memory.**
|
| 5 |
+
|
| 6 |
+
The finding is the one the table was not expecting: peak memory did **not** follow frame size.
|
| 7 |
+
The largest job of the session produced its lowest peak, and the three highest peaks are the
|
| 8 |
+
three runs where the prompt changed, so the 14.3 GiB text encoder had to re-enter VRAM on top of
|
| 9 |
+
a transformer that ComfyUI kept resident. On this card, memory pressure is decided by what is
|
| 10 |
+
already loaded, not by how big the video is.
|
| 11 |
+
|
| 12 |
+
- Rows: `runs.csv`, `session_id = 2026-08-13_ltx-2-5_rtx-5060-ti`
|
| 13 |
+
- Method and caveats: `session.json`, and `raw/README-original.md`, written the day of the runs
|
| 14 |
+
- Raw trace: `raw/vram-samples.csv` — 5,288 `nvidia-smi` samples at 500 ms
|
| 15 |
+
- The recipe this backs: https://smeltcore.com/gpus/rtx-5060-ti/
|
| 16 |
+
|
| 17 |
+
Read `session.json` → `caveats` before comparing these numbers with anything. In short: they are
|
| 18 |
+
whole-card figures, there is no idle baseline, and the runs were warm rather than cold.
|
sessions/2026-08-13_ltx-2-5_rtx-5060-ti/raw/README-original.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Measurement data — ltx-2-5 × rtx-5060-ti, 2026-08-13
|
| 2 |
+
|
| 3 |
+
Raw evidence behind `state/experiment-ltx-2-5-rtx-5060-ti.md`. Nothing here is derived
|
| 4 |
+
from a model's estimate; every row was produced by a run on the operator's own card.
|
| 5 |
+
|
| 6 |
+
## `ltx-2-5-rtx-5060-ti-runs.csv`
|
| 7 |
+
|
| 8 |
+
One row per generation, 15 rows. Columns:
|
| 9 |
+
|
| 10 |
+
| column | meaning |
|
| 11 |
+
|---|---|
|
| 12 |
+
| `run` | order within the session |
|
| 13 |
+
| `kind` | `t2v` or `i2v` |
|
| 14 |
+
| `width`, `height` | actual pixel size of the produced mp4, read back with PyAV — not the requested size |
|
| 15 |
+
| `frames` | actual frame count of the mp4 |
|
| 16 |
+
| `wall_s` | ComfyUI's own `Prompt executed in N seconds` |
|
| 17 |
+
| `peak_mib` | highest `memory.used` sampled inside that run's window |
|
| 18 |
+
| `headroom_mib` | `16311 - peak_mib` |
|
| 19 |
+
| `encoder_reloaded` | `yes` when the prompt text changed, so the 14.317 GiB text encoder had to re-enter VRAM |
|
| 20 |
+
| `megapixels` | `width * height / 1048576` (binary, matching ComfyUI's own convention) |
|
| 21 |
+
| `mpix_frames` | `megapixels * frames` — the work metric wall time is linear in |
|
| 22 |
+
| `s_per_mpix_frame` | `wall_s / mpix_frames`; converges to 0.9709 over the eight runs above 50 MPix-frames |
|
| 23 |
+
| `scene` | which prompt, for grouping — encoder reloads happen on scene changes |
|
| 24 |
+
|
| 25 |
+
The three rows with `encoder_reloaded = yes` and headroom under 810 MiB are the whole
|
| 26 |
+
story: nothing else in this table predicts memory pressure.
|
| 27 |
+
|
| 28 |
+
## `ltx-2-5-rtx-5060-ti-vram-samples.csv`
|
| 29 |
+
|
| 30 |
+
5288 raw `nvidia-smi` samples, one per 500 ms, spanning the whole session including idle
|
| 31 |
+
gaps between runs. No header. Columns:
|
| 32 |
+
|
| 33 |
+
```
|
| 34 |
+
timestamp, memory.used [MiB], memory.total [MiB], utilization.gpu [%]
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
Produced by:
|
| 38 |
+
|
| 39 |
+
```
|
| 40 |
+
nvidia-smi --query-gpu=timestamp,memory.used,memory.total,utilization.gpu \
|
| 41 |
+
--format=csv,noheader,nounits -lms 500
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
These are **whole-card** figures — they include the Windows desktop's share, so they are not
|
| 45 |
+
comparable to per-process figures. This trace has **no idle baseline**: it opens at 13,726 MiB,
|
| 46 |
+
already mid-session, and its minimum across all 5288 rows is 2505 MiB with zero samples below
|
| 47 |
+
900. (An earlier draft of this file claimed idle "sits around 700–800 MiB"; nothing here
|
| 48 |
+
measures that.) To re-derive a per-run peak, pair each
|
| 49 |
+
`got prompt` with its `Prompt executed` in `D:\ComfyUI\user\comfyui_8000.log` and take the
|
| 50 |
+
maximum sample inside that window.
|
| 51 |
+
|
| 52 |
+
## Caveats a future reader should not have to rediscover
|
| 53 |
+
|
| 54 |
+
- Peaks are whole-card, so they are not directly comparable to per-process figures from
|
| 55 |
+
`torch.cuda.max_memory_allocated`.
|
| 56 |
+
- ComfyUI keeps the transformer resident between jobs. A run measured immediately after a
|
| 57 |
+
cold start has a *different* memory profile from the same run measured second in a
|
| 58 |
+
queue — the encoder collides with resident weights in the latter case. Both appear in
|
| 59 |
+
this table; `encoder_reloaded` is what separates them.
|
| 60 |
+
- Wall times include ComfyUI's own queue and node overhead, not just sampling.
|
sessions/2026-08-13_ltx-2-5_rtx-5060-ti/raw/runs-original.csv
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
run,kind,width,height,frames,wall_s,peak_mib,headroom_mib,encoder_reloaded,megapixels,mpix_frames,s_per_mpix_frame,scene
|
| 2 |
+
1,t2v,576,320,49,60.55,15038,1273,yes,0.1758,8.6,7.0298,"blacksmith, cold start"
|
| 3 |
+
2,i2v,640,320,97,57.75,15504,807,yes,0.1953,18.9,3.0482,"character, head turn"
|
| 4 |
+
3,i2v,768,448,97,47.67,14815,1496,no,0.3281,31.8,1.4977,"character, head turn"
|
| 5 |
+
4,t2v,640,320,97,45.98,15827,484,yes,0.1953,18.9,2.4270,space
|
| 6 |
+
5,t2v,768,448,49,34.62,14720,1591,no,0.3281,16.1,2.1532,space
|
| 7 |
+
6,t2v,768,448,97,41.92,14705,1606,no,0.3281,31.8,1.3171,space
|
| 8 |
+
7,t2v,832,512,97,49.48,14943,1368,no,0.4062,39.4,1.2556,space
|
| 9 |
+
8,t2v,1088,576,97,62.03,14735,1576,no,0.5977,58.0,1.0700,space
|
| 10 |
+
9,t2v,1216,704,97,76.22,14778,1533,no,0.8164,79.2,0.9625,space
|
| 11 |
+
10,t2v,1344,768,97,88.51,14614,1697,no,0.9844,95.5,0.9270,space
|
| 12 |
+
11,t2v,1664,960,97,131.77,15115,1196,no,1.5234,147.8,0.8917,space
|
| 13 |
+
12,t2v,1920,1088,97,183.12,14512,1799,no,1.9922,193.2,0.9476,space
|
| 14 |
+
13,i2v,1344,768,145,143.39,15912,399,yes,0.9844,142.7,1.0046,"character, exits car"
|
| 15 |
+
14,i2v,1344,768,193,181.85,14596,1715,no,0.9844,190.0,0.9572,"character, exits car"
|
| 16 |
+
15,i2v,1664,960,193,294.06,14155,2156,no,1.5234,294.0,1.0001,"character, exits car"
|
sessions/2026-08-13_ltx-2-5_rtx-5060-ti/raw/vram-samples.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
sessions/2026-08-13_ltx-2-5_rtx-5060-ti/session.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 1,
|
| 3 |
+
"session_id": "2026-08-13_ltx-2-5_rtx-5060-ti",
|
| 4 |
+
"operator": "site operator, own hardware",
|
| 5 |
+
"gpu": {
|
| 6 |
+
"slug": "rtx-5060-ti",
|
| 7 |
+
"name": "NVIDIA GeForce RTX 5060 Ti",
|
| 8 |
+
"vram_total_mib": 16311,
|
| 9 |
+
"driver": "591.86",
|
| 10 |
+
"compute_capability": "12.0"
|
| 11 |
+
},
|
| 12 |
+
"host": {
|
| 13 |
+
"os": "Windows 11 (ComfyUI native)",
|
| 14 |
+
"ram_gib": null
|
| 15 |
+
},
|
| 16 |
+
"display_attached": true,
|
| 17 |
+
"runtime": {
|
| 18 |
+
"name": "comfyui",
|
| 19 |
+
"version": "b323a345",
|
| 20 |
+
"extras": {
|
| 21 |
+
"ComfyUI-GGUF": "6ea2651e",
|
| 22 |
+
"torch": "2.12.0.dev+cu128"
|
| 23 |
+
}
|
| 24 |
+
},
|
| 25 |
+
"instrument": {
|
| 26 |
+
"vram": "nvidia-smi --query-gpu=timestamp,memory.used,memory.total,utilization.gpu --format=csv,noheader,nounits -lms 500",
|
| 27 |
+
"scope": "whole-card",
|
| 28 |
+
"sample_ms": 500
|
| 29 |
+
},
|
| 30 |
+
"harness": "none — runs were queued by hand in the ComfyUI UI; the trace was captured with the command in `instrument.vram`",
|
| 31 |
+
"caveats": [
|
| 32 |
+
"Whole-card figures: they include the Windows desktop's share and are not comparable with per-process figures.",
|
| 33 |
+
"No idle baseline was recorded. The trace opens mid-session at 13,726 MiB and never falls below 2,505 MiB, so idle_device_mib is empty rather than guessed.",
|
| 34 |
+
"Runs were warm, not cold: ComfyUI kept the transformer resident between jobs. Only run 1 started cold. Where the prompt text changed, the 14.3 GiB text encoder re-entered VRAM on top of the resident transformer - config_json.encoder_reloaded marks those runs, and they are the three highest peaks.",
|
| 35 |
+
"measured_at is empty: per-run times live in the ComfyUI log, which was not retained. The raw trace is timestamped.",
|
| 36 |
+
"output_seconds is computed as (frames - 1) / 24 from the workflow's 24 fps and the VAE's 1-mod-8 clip-length rule, not read from the container - the mp4s were not retained. frames, width and height WERE read back from the produced files with PyAV.",
|
| 37 |
+
"Peak memory did NOT scale with frame size: the largest job (1664x960, 193 frames) produced the lowest peak."
|
| 38 |
+
]
|
| 39 |
+
}
|
sessions/2026-09-10_yue2-3b_rtx-5060-ti/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# YuE2-3B on an RTX 5060 Ti 16GB — 2026-09-10
|
| 2 |
+
|
| 3 |
+
Four full-song generations with the vendor's own Python runtime, one day after the model was
|
| 4 |
+
published. The vendor's quick start asks for a 24 GB GPU. **All four runs completed on a 16 GB
|
| 5 |
+
card, including the worst case the library can be put in.**
|
| 6 |
+
|
| 7 |
+
| run | configuration | device peak | device peak − idle |
|
| 8 |
+
|---|---|---:|---:|
|
| 9 |
+
| 1 | `cot="full"`, default budget | 10,291 MiB | 9,503 MiB |
|
| 10 |
+
| 2 | `cot="off"`, default budget | 10,516 MiB | 9,738 MiB |
|
| 11 |
+
| 3 | `cot="full"`, KV filled to the full 24,576-token context | 11,786 MiB | 10,926 MiB |
|
| 12 |
+
| 4 | `cot="off"`, full context **and** the second CFG branch | 13,804 MiB | 12,944 MiB |
|
| 13 |
+
|
| 14 |
+
The library caps itself at `total − 2 GiB` per process — 14,263 MiB on this card (16,311 − 2,048) — and run 4
|
| 15 |
+
stayed under it. Because the KV cache is sized by the budget rather than by the tokens actually
|
| 16 |
+
generated, a longer song cannot cost more than run 4 does.
|
| 17 |
+
|
| 18 |
+
**On the last column.** It is the right figure to hold against a per-process cap, but it is an
|
| 19 |
+
*estimate*: it assumes the desktop's share of the card held steady during the run. It is not a
|
| 20 |
+
measured process peak, which is why the dataset leaves `peak_process_mib` empty. Recipes on
|
| 21 |
+
smeltcore.com that call this figure "in-process" are quoting this estimate.
|
| 22 |
+
|
| 23 |
+
- Rows: `runs.csv`, `session_id = 2026-09-10_yue2-3b_rtx-5060-ti`
|
| 24 |
+
- Method and caveats: `session.json`
|
| 25 |
+
- Raw output and both harnesses: `raw/`
|
| 26 |
+
- The recipe this backs: https://smeltcore.com/recipes/yue2-3b-on-rtx-5060-ti-16gb-measured-worst-case-included/
|
sessions/2026-09-10_yue2-3b_rtx-5060-ti/raw/RESULT.json
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_note": [
|
| 3 |
+
"Two separate script invocations, not --both. run_one() frees nothing between runs, so a",
|
| 4 |
+
"second run in the same process reads the first run's still-resident allocator memory as its",
|
| 5 |
+
"NVML idle baseline. Measured on this card: pipeline loaded 7.92 GiB, after del+gc still",
|
| 6 |
+
"7.92 GiB, after torch.cuda.empty_cache() 1.14 GiB. Each entry below is the run_one block its",
|
| 7 |
+
"own fresh process printed, verbatim and unedited; only the two 'measured' arrays were joined.",
|
| 8 |
+
"measure_yue2.py was patched in the same commit: 'runs = [run_one(\"full\", base)]' was",
|
| 9 |
+
"unconditional, so --cot off ran a full pass first, threw its result away, and handed the off",
|
| 10 |
+
"run a contaminated idle baseline. The cot=full entry below predates the patch and is",
|
| 11 |
+
"unaffected by it (the patch cannot change the default path's single full run).",
|
| 12 |
+
"SUPERSEDED, see `long_song` below: this line said the max-context case was NOT measured and",
|
| 13 |
+
"whether a long song OOMs on a 16 GiB card was still open. The second commit answered it — full",
|
| 14 |
+
"context WITH the second CFG branch peaks at 13.48 GiB device / 12.64 in-process against a 13.93",
|
| 15 |
+
"ceiling, no OOM. Kept rather than deleted so the file records that it once contradicted itself.",
|
| 16 |
+
"Still true from the original note: the card was NOT headless (a display held ~0.77 GiB), which is",
|
| 17 |
+
"why nvml_peak_minus_idle_gib is reported alongside the device peak — and the clamp is",
|
| 18 |
+
"set_per_process_memory_fraction, so peak-minus-idle is the figure it actually binds."
|
| 19 |
+
],
|
| 20 |
+
"vendor_reference": {
|
| 21 |
+
"card": "RTX 4090 24GB",
|
| 22 |
+
"cot_full_peak_gib": 11.18,
|
| 23 |
+
"max_context_peak_gib": 14.08,
|
| 24 |
+
"note": "vendor README, NVML full-run peak"
|
| 25 |
+
},
|
| 26 |
+
"measured": [
|
| 27 |
+
{
|
| 28 |
+
"cot": "full",
|
| 29 |
+
"load_s": 34.81,
|
| 30 |
+
"generate_s": 205.23,
|
| 31 |
+
"audio_s": 201.04,
|
| 32 |
+
"nvml_peak_device_gib": 10.05,
|
| 33 |
+
"nvml_peak_minus_idle_gib": 9.03,
|
| 34 |
+
"output": "song-cot-full.flac",
|
| 35 |
+
"gpu_name": "NVIDIA GeForce RTX 5060 Ti",
|
| 36 |
+
"vram_total_gib": 15.93,
|
| 37 |
+
"vram_idle_gib": 0.77,
|
| 38 |
+
"driver": "591.86",
|
| 39 |
+
"alloc_ceiling_gib": 13.93
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"cot": "off",
|
| 43 |
+
"load_s": 31.36,
|
| 44 |
+
"generate_s": 144.39,
|
| 45 |
+
"audio_s": 165.4,
|
| 46 |
+
"nvml_peak_device_gib": 10.27,
|
| 47 |
+
"nvml_peak_minus_idle_gib": 9.25,
|
| 48 |
+
"output": "song-cot-off.flac",
|
| 49 |
+
"gpu_name": "NVIDIA GeForce RTX 5060 Ti",
|
| 50 |
+
"vram_total_gib": 15.93,
|
| 51 |
+
"vram_idle_gib": 0.76,
|
| 52 |
+
"driver": "591.86",
|
| 53 |
+
"alloc_ceiling_gib": 13.93
|
| 54 |
+
}
|
| 55 |
+
],
|
| 56 |
+
"environment": {
|
| 57 |
+
"os": "Windows 11 26200.9445 + WSL2 Ubuntu 24.04 (kernel 6.6.87.2-microsoft-standard-WSL2)",
|
| 58 |
+
"python": "3.12.3",
|
| 59 |
+
"torch": "2.10.0+cu128",
|
| 60 |
+
"cuda": "12.8",
|
| 61 |
+
"compute_capability": "12.0 (sm_120, Blackwell)",
|
| 62 |
+
"bf16_supported": true,
|
| 63 |
+
"yue2_infer": "0.1.5",
|
| 64 |
+
"wsl_ram_gib": 23,
|
| 65 |
+
"note": "The vendor wheel is py3-none-any and declares no platform. The only Linux-specific code (fcntl, os.killpg) is in fast.py, the optional vLLM backend, imported lazily and unused by the default torch backend. WSL2 was used anyway, per the README."
|
| 66 |
+
},
|
| 67 |
+
"_failed": {
|
| 68 |
+
"happened": false,
|
| 69 |
+
"what_you_saw": "",
|
| 70 |
+
"full_traceback_or_last_20_lines": "",
|
| 71 |
+
"nvidia_smi_output": ""
|
| 72 |
+
},
|
| 73 |
+
"long_song": {
|
| 74 |
+
"_question": "The first commit left this open: both songs there peaked near 10 GiB with the default semantic budget of 9000 tokens, so the vendor's 14.08 GiB maximum-context case -- which sits 0.15 GiB ABOVE this card's 13.93 GiB ceiling -- was never exercised. Answered by measure_longsong.py, which fills the semantic budget to CONTEXT-len(prefix) exactly.",
|
| 75 |
+
"_why_the_budget_and_not_the_song": "cuda_graph.py:71,92-94 preallocates the KV cache as (branches, max(len(prefix)) + max_tokens, kv_heads, head_dim) per layer, keys and values. So the FOOTPRINT is set by the budget, not by how many tokens the model actually emits. From config.json (28 layers, 8 kv heads, head_dim 128, bf16) a full-context KV is 2.62 GiB on one branch and 5.25 GiB on two. Song length adds NAR and VAE CHUNKS, not larger tensors -- protocol.py:141-145 sizes each chunk from the context -- which is why a still longer song cannot exceed what is measured here.",
|
| 76 |
+
"_headroom_units": "The clamp is set_per_process_memory_fraction, so it binds the PROCESS: compare it against peak-minus-idle, not against the device peak, which also contains the display's ~0.8 GiB the clamp never sees. peak-minus-idle assumes idle held constant across the run.",
|
| 77 |
+
"answer": "No OOM, in any of the four cases, including the worst one.",
|
| 78 |
+
"runs": [
|
| 79 |
+
{
|
| 80 |
+
"cot": "full",
|
| 81 |
+
"kv_capacity": 24576,
|
| 82 |
+
"prefix_tokens": 5587,
|
| 83 |
+
"semantic_max_tokens": 18989,
|
| 84 |
+
"semantic_tokens": 7499,
|
| 85 |
+
"semantic_truncated": false,
|
| 86 |
+
"oom": false,
|
| 87 |
+
"audio_s": 299.96,
|
| 88 |
+
"load_s": 30.4,
|
| 89 |
+
"generate_s": 315.53,
|
| 90 |
+
"nvml_peak_device_gib": 11.51,
|
| 91 |
+
"nvml_peak_minus_idle_gib": 10.67,
|
| 92 |
+
"process_headroom_to_clamp_gib": 3.26,
|
| 93 |
+
"device_physical_free_at_peak_gib": 4.42,
|
| 94 |
+
"vram_idle_gib": 0.84,
|
| 95 |
+
"lyrics_chars": 2420
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"cot": "off",
|
| 99 |
+
"kv_capacity": 24576,
|
| 100 |
+
"prefix_tokens": 1749,
|
| 101 |
+
"semantic_max_tokens": 22827,
|
| 102 |
+
"semantic_tokens": 8642,
|
| 103 |
+
"semantic_truncated": false,
|
| 104 |
+
"oom": false,
|
| 105 |
+
"audio_s": 345.68,
|
| 106 |
+
"load_s": 31.25,
|
| 107 |
+
"generate_s": 298.55,
|
| 108 |
+
"nvml_peak_device_gib": 13.48,
|
| 109 |
+
"nvml_peak_minus_idle_gib": 12.64,
|
| 110 |
+
"process_headroom_to_clamp_gib": 1.29,
|
| 111 |
+
"device_physical_free_at_peak_gib": 2.45,
|
| 112 |
+
"vram_idle_gib": 0.84,
|
| 113 |
+
"lyrics_chars": 2420,
|
| 114 |
+
"_note": "The worst case: full context AND the second CFG branch. 13.48 GiB device peak here closely reproduces the vendor's 14.08 GiB 'maximum context' figure on a card with a different idle, which suggests their number IS the two-branch full-context case."
|
| 115 |
+
}
|
| 116 |
+
]
|
| 117 |
+
}
|
| 118 |
+
}
|
sessions/2026-09-10_yue2-3b_rtx-5060-ti/raw/measure_longsong.py
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Does a LONG song OOM on a 16 GiB card?
|
| 3 |
+
|
| 4 |
+
measure_yue2.py leaves this open: both its songs peaked near 10 GiB with the default
|
| 5 |
+
semantic budget of 9000 tokens, nowhere near the 13.93 GiB ceiling the vendor's clamp
|
| 6 |
+
imposes here. The vendor's 14.08 GiB "maximum context" figure sits 0.15 GiB ABOVE that
|
| 7 |
+
ceiling, so the interesting case was never exercised.
|
| 8 |
+
|
| 9 |
+
cuda_graph.py:71,92-94 is why the budget, not the song, decides the footprint: the KV
|
| 10 |
+
cache is preallocated as (branches, max(len(prefix)) + max_tokens, kv_heads, head_dim)
|
| 11 |
+
per layer, keys and values. So this fills the budget to the context limit exactly, and
|
| 12 |
+
also feeds long lyrics so the NAR and VAE stages -- which scale with real audio length,
|
| 13 |
+
not with the budget -- are stressed too.
|
| 14 |
+
|
| 15 |
+
Usage: measure_longsong.py [--cot full|off]
|
| 16 |
+
"""
|
| 17 |
+
import argparse, gc, json, threading, time
|
| 18 |
+
|
| 19 |
+
GIB = 1024 ** 3
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
class NvmlPeak(threading.Thread):
|
| 23 |
+
"""Whole-device NVML at 20 Hz -- the same instrument measure_yue2.py uses."""
|
| 24 |
+
|
| 25 |
+
def __init__(self, handle, pynvml):
|
| 26 |
+
super().__init__(daemon=True)
|
| 27 |
+
self.h, self.nv, self.peak, self.stop = handle, pynvml, 0, False
|
| 28 |
+
|
| 29 |
+
def run(self):
|
| 30 |
+
while not self.stop:
|
| 31 |
+
try:
|
| 32 |
+
self.peak = max(self.peak, self.nv.nvmlDeviceGetMemoryInfo(self.h).used)
|
| 33 |
+
except Exception:
|
| 34 |
+
pass
|
| 35 |
+
time.sleep(0.05)
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
def long_lyrics(base, repeats):
|
| 39 |
+
"""Repeat the demo's sections so the song itself is long, not just the budget."""
|
| 40 |
+
body = base.strip()
|
| 41 |
+
return "[Intro]\n\n" + "\n\n[Interlude]\n\n".join([body] * repeats) + "\n\n[Outro]\n"
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
def main():
|
| 45 |
+
ap = argparse.ArgumentParser()
|
| 46 |
+
ap.add_argument("--cot", default="full", choices=["full", "melody", "off"])
|
| 47 |
+
ap.add_argument("--repeats", type=int, default=4)
|
| 48 |
+
a = ap.parse_args()
|
| 49 |
+
|
| 50 |
+
import pynvml, torch
|
| 51 |
+
from huggingface_hub import hf_hub_download
|
| 52 |
+
from yue2 import YuE2Pipeline
|
| 53 |
+
from yue2.protocol import CONTEXT, Sampling
|
| 54 |
+
|
| 55 |
+
pynvml.nvmlInit()
|
| 56 |
+
h = pynvml.nvmlDeviceGetHandleByIndex(0)
|
| 57 |
+
idle = pynvml.nvmlDeviceGetMemoryInfo(h).used
|
| 58 |
+
total = pynvml.nvmlDeviceGetMemoryInfo(h).total
|
| 59 |
+
ceiling = min(24 - 2, total / GIB - 2)
|
| 60 |
+
print(f"== long-song run: cot={a.cot!r}, lyrics x{a.repeats} ==")
|
| 61 |
+
print(f" idle {idle / GIB:.2f} GiB | device total {total / GIB:.2f} GiB | alloc ceiling {ceiling:.2f} GiB")
|
| 62 |
+
|
| 63 |
+
demo = json.loads(open(hf_hub_download("m-a-p/YuE2-3B", "examples/tonight-awake.json")).read())
|
| 64 |
+
lyrics = long_lyrics(demo["lyrics"], a.repeats)
|
| 65 |
+
print(f" lyrics {len(demo['lyrics'])} -> {len(lyrics)} chars")
|
| 66 |
+
|
| 67 |
+
sampler = NvmlPeak(h, pynvml)
|
| 68 |
+
sampler.start()
|
| 69 |
+
t0 = time.time()
|
| 70 |
+
result = {"cot": a.cot, "repeats": a.repeats, "lyrics_chars": len(lyrics),
|
| 71 |
+
"context": CONTEXT, "alloc_ceiling_gib": round(ceiling, 2),
|
| 72 |
+
"vram_idle_gib": round(idle / GIB, 2)}
|
| 73 |
+
try:
|
| 74 |
+
pipe = YuE2Pipeline.from_pretrained("m-a-p/YuE2-3B", device="cuda")
|
| 75 |
+
t_loaded = time.time()
|
| 76 |
+
|
| 77 |
+
plan = pipe.plan(style=demo["style"], lyrics=lyrics, cot=a.cot, seed=demo["seed"])
|
| 78 |
+
prefix_len = len(plan.prefix)
|
| 79 |
+
budget = CONTEXT - prefix_len # sampling.py:62 rejects anything larger
|
| 80 |
+
capacity = prefix_len + budget # == CONTEXT, the maximum-context case
|
| 81 |
+
result.update(prefix_tokens=prefix_len, semantic_max_tokens=budget,
|
| 82 |
+
kv_capacity=capacity, abc_truncated=plan.truncated)
|
| 83 |
+
print(f" prefix {prefix_len} tokens -> semantic budget {budget} "
|
| 84 |
+
f"(KV capacity {capacity} = full context)")
|
| 85 |
+
|
| 86 |
+
semantic = pipe.generate_semantic(
|
| 87 |
+
plan, sampling=Sampling(1.0, .95, 100, 1.2, 50, 200, budget))
|
| 88 |
+
result.update(semantic_tokens=len(semantic.tokens), semantic_truncated=semantic.truncated)
|
| 89 |
+
latents = pipe.synthesize(semantic)
|
| 90 |
+
audio = pipe.decode(latents)
|
| 91 |
+
t1 = time.time()
|
| 92 |
+
|
| 93 |
+
# Mirror SongResult.save exactly: audio is (samples, channels), FLAC is PCM_24.
|
| 94 |
+
out = f"long-song-cot-{a.cot}.flac"
|
| 95 |
+
import soundfile as sf
|
| 96 |
+
sf.write(out, audio, 48000, subtype="PCM_24")
|
| 97 |
+
result.update(oom=False, load_s=round(t_loaded - t0, 2),
|
| 98 |
+
generate_s=round(t1 - t_loaded, 2),
|
| 99 |
+
audio_s=round(len(audio) / 48000, 2), output=out)
|
| 100 |
+
except torch.cuda.OutOfMemoryError as e:
|
| 101 |
+
result.update(oom=True, error_type="torch.cuda.OutOfMemoryError", error=str(e)[:600])
|
| 102 |
+
except Exception as e:
|
| 103 |
+
result.update(oom=False, error_type=type(e).__name__, error=str(e)[:600])
|
| 104 |
+
finally:
|
| 105 |
+
sampler.stop = True
|
| 106 |
+
sampler.join()
|
| 107 |
+
result["nvml_peak_device_gib"] = round(sampler.peak / GIB, 2)
|
| 108 |
+
result["nvml_peak_minus_idle_gib"] = round((sampler.peak - idle) / GIB, 2)
|
| 109 |
+
# Two different headrooms, and conflating them is how a unit-broken conclusion
|
| 110 |
+
# gets published. The clamp (set_per_process_memory_fraction) binds THIS PROCESS,
|
| 111 |
+
# so compare it against the process's own peak -- device peak also contains the
|
| 112 |
+
# display's ~0.8 GiB, which the clamp never sees. The physical figure is separate.
|
| 113 |
+
process_peak = (sampler.peak - idle) / GIB
|
| 114 |
+
result["process_headroom_to_clamp_gib"] = round(ceiling - process_peak, 2)
|
| 115 |
+
result["device_physical_free_at_peak_gib"] = round((total - sampler.peak) / GIB, 2)
|
| 116 |
+
result["_headroom_note"] = ("process peak assumes idle held constant for the run; "
|
| 117 |
+
"the clamp applies to the process, the physical figure to the card")
|
| 118 |
+
gc.collect()
|
| 119 |
+
|
| 120 |
+
print("\n" + json.dumps(result, indent=2))
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
if __name__ == "__main__":
|
| 124 |
+
main()
|
sessions/2026-09-10_yue2-3b_rtx-5060-ti/raw/measure_yue2.py
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""
|
| 3 |
+
Measure YuE2-3B on THIS card, in the same unit the vendor used.
|
| 4 |
+
|
| 5 |
+
Why this script and not `torch.cuda.max_memory_allocated()`:
|
| 6 |
+
the vendor's figures ("11.18 GiB", "14.08 GiB") come from NVML, which counts the
|
| 7 |
+
CUDA context and the allocator's reserved-but-unused blocks. Torch's allocator
|
| 8 |
+
stats exclude both and land 0.4-0.8 GiB LOW. On a 16 GB card the whole question
|
| 9 |
+
is a 0.88 GB headroom, so measuring with the wrong instrument would manufacture
|
| 10 |
+
headroom that is not there. This samples NVML, like they did.
|
| 11 |
+
|
| 12 |
+
Usage:
|
| 13 |
+
python3 measure_yue2.py # cot=full (the default, the mode that writes the score)
|
| 14 |
+
python3 measure_yue2.py --cot off # answers the separate 12 GB question
|
| 15 |
+
python3 measure_yue2.py --both
|
| 16 |
+
|
| 17 |
+
It prints a paste-ready block at the end. Send me that block verbatim.
|
| 18 |
+
"""
|
| 19 |
+
import argparse, json, os, platform, shutil, subprocess, sys, threading, time
|
| 20 |
+
|
| 21 |
+
GIB = 1024 ** 3
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
def die(msg):
|
| 25 |
+
print(f"\n STOP: {msg}\n")
|
| 26 |
+
sys.exit(1)
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def preflight():
|
| 30 |
+
print("== preflight ==")
|
| 31 |
+
if platform.system() != "Linux":
|
| 32 |
+
die(f"the vendor wheel is Linux-only; this is {platform.system()}. WSL2 with CUDA counts as Linux.")
|
| 33 |
+
print(f" os {platform.system()} {platform.release()}")
|
| 34 |
+
if sys.version_info < (3, 10):
|
| 35 |
+
die(f"needs Python 3.10+, have {sys.version.split()[0]}")
|
| 36 |
+
print(f" python {sys.version.split()[0]}")
|
| 37 |
+
if not shutil.which("nvidia-smi"):
|
| 38 |
+
die("no nvidia-smi on PATH — this model is CUDA-only, there is no ROCm or Metal path.")
|
| 39 |
+
q = subprocess.run(
|
| 40 |
+
["nvidia-smi", "--query-gpu=name,memory.total,memory.used,driver_version",
|
| 41 |
+
"--format=csv,noheader,nounits"], capture_output=True, text=True).stdout.strip()
|
| 42 |
+
print(f" gpu {q}")
|
| 43 |
+
name, total_mib, used_mib, driver = [x.strip() for x in q.split(",")]
|
| 44 |
+
total_gib = int(total_mib) / 1024
|
| 45 |
+
used_gib = int(used_mib) / 1024
|
| 46 |
+
print(f" vram total {total_gib:.2f} GiB already in use {used_gib:.2f} GiB "
|
| 47 |
+
f"({'headless' if used_gib < 0.4 else 'a display or another process is attached'})")
|
| 48 |
+
# host RAM — the card is not the only floor: the card asks for 24 GB of host RAM too.
|
| 49 |
+
try:
|
| 50 |
+
mem = {l.split(":")[0]: int(l.split()[1]) for l in open("/proc/meminfo") if ":" in l}
|
| 51 |
+
avail = mem["MemAvailable"] / (1024 ** 2)
|
| 52 |
+
print(f" host ram {avail:.1f} GiB available (the card asks for 24 GB available host RAM)")
|
| 53 |
+
if avail < 20:
|
| 54 |
+
print(" ! below the vendor's host-RAM ask — if it dies, this is the first suspect, not VRAM")
|
| 55 |
+
except Exception:
|
| 56 |
+
pass
|
| 57 |
+
# The vendor CLAMPS the allocator; know your ceiling before you run.
|
| 58 |
+
# pipeline.py:161-165 budget = min((memory_budget_gib - 2), total - 2) GiB
|
| 59 |
+
# with memory_budget_gib defaulting to 24. set_per_process_memory_fraction enforces it,
|
| 60 |
+
# so an OOM here can happen with physically free memory on the card.
|
| 61 |
+
budget_gib = min(24 - 2, total_gib - 2)
|
| 62 |
+
print(f" alloc ceiling {budget_gib:.2f} GiB (vendor clamp: min(24-2, total-2))")
|
| 63 |
+
print(f" vendor's ordinary peak 11.18 GiB -> {budget_gib - 11.18:+.2f} GiB")
|
| 64 |
+
print(f" vendor's max-context 14.08 GiB -> {budget_gib - 14.08:+.2f} GiB")
|
| 65 |
+
if budget_gib < 11.18:
|
| 66 |
+
die(f"the clamp gives this card only {budget_gib:.2f} GiB and the vendor's own ordinary "
|
| 67 |
+
f"peak is 11.18 GiB. It cannot run, and passing a bigger --budget will not help: "
|
| 68 |
+
f"the (total - 2) term caps it regardless.")
|
| 69 |
+
if budget_gib < 14.08:
|
| 70 |
+
print(" note: the MAX-CONTEXT case (14.08 GiB) does NOT fit this card's ceiling.")
|
| 71 |
+
print(" Context is fixed at 24576 (protocol.py:54), so the only lever is song length.")
|
| 72 |
+
print(" A long song can therefore OOM on this card while an ordinary one is fine —")
|
| 73 |
+
print(" that boundary is exactly what makes this measurement worth having.")
|
| 74 |
+
return {"gpu_name": name, "vram_total_gib": round(total_gib, 2),
|
| 75 |
+
"vram_idle_gib": round(used_gib, 2), "driver": driver,
|
| 76 |
+
"alloc_ceiling_gib": round(budget_gib, 2)}
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
class NvmlPeak(threading.Thread):
|
| 80 |
+
"""Sample whole-device NVML used-memory at 20 Hz. Same instrument as the vendor."""
|
| 81 |
+
|
| 82 |
+
def __init__(self, handle, pynvml):
|
| 83 |
+
super().__init__(daemon=True)
|
| 84 |
+
self.h, self.nv, self.peak, self.stop = handle, pynvml, 0, False
|
| 85 |
+
|
| 86 |
+
def run(self):
|
| 87 |
+
while not self.stop:
|
| 88 |
+
try:
|
| 89 |
+
self.peak = max(self.peak, self.nv.nvmlDeviceGetMemoryInfo(self.h).used)
|
| 90 |
+
except Exception:
|
| 91 |
+
pass
|
| 92 |
+
time.sleep(0.05)
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
def run_one(cot, base):
|
| 96 |
+
import pynvml
|
| 97 |
+
from huggingface_hub import hf_hub_download
|
| 98 |
+
from yue2 import YuE2Pipeline
|
| 99 |
+
|
| 100 |
+
pynvml.nvmlInit()
|
| 101 |
+
h = pynvml.nvmlDeviceGetHandleByIndex(0)
|
| 102 |
+
idle = pynvml.nvmlDeviceGetMemoryInfo(h).used
|
| 103 |
+
|
| 104 |
+
print(f"\n== run: cot={cot!r} ==")
|
| 105 |
+
sampler = NvmlPeak(h, pynvml)
|
| 106 |
+
sampler.start()
|
| 107 |
+
t0 = time.time()
|
| 108 |
+
|
| 109 |
+
repo = "m-a-p/YuE2-3B"
|
| 110 |
+
demo = json.loads(open(hf_hub_download(repo, "examples/tonight-awake.json")).read())
|
| 111 |
+
pipe = YuE2Pipeline.from_pretrained(repo, device="cuda")
|
| 112 |
+
t_loaded = time.time()
|
| 113 |
+
song = pipe(style=demo["style"], lyrics=demo["lyrics"], cot=cot, seed=demo["seed"])
|
| 114 |
+
t1 = time.time()
|
| 115 |
+
|
| 116 |
+
sampler.stop = True
|
| 117 |
+
sampler.join()
|
| 118 |
+
out = f"song-cot-{cot}.flac"
|
| 119 |
+
song.save(out)
|
| 120 |
+
|
| 121 |
+
# audio duration, for the generation/audio ratio the vendor reports
|
| 122 |
+
audio_s = None
|
| 123 |
+
for attr in ("duration", "duration_s", "seconds"):
|
| 124 |
+
if hasattr(song, attr):
|
| 125 |
+
try:
|
| 126 |
+
audio_s = float(getattr(song, attr))
|
| 127 |
+
break
|
| 128 |
+
except Exception:
|
| 129 |
+
pass
|
| 130 |
+
if audio_s is None:
|
| 131 |
+
try:
|
| 132 |
+
import wave, contextlib
|
| 133 |
+
import soundfile as sf
|
| 134 |
+
info = sf.info(out)
|
| 135 |
+
audio_s = info.frames / info.samplerate
|
| 136 |
+
except Exception:
|
| 137 |
+
pass
|
| 138 |
+
|
| 139 |
+
r = {
|
| 140 |
+
"cot": cot,
|
| 141 |
+
"load_s": round(t_loaded - t0, 2),
|
| 142 |
+
"generate_s": round(t1 - t_loaded, 2),
|
| 143 |
+
"audio_s": round(audio_s, 2) if audio_s else None,
|
| 144 |
+
"nvml_peak_device_gib": round(sampler.peak / GIB, 2),
|
| 145 |
+
"nvml_peak_minus_idle_gib": round((sampler.peak - idle) / GIB, 2),
|
| 146 |
+
"output": out,
|
| 147 |
+
}
|
| 148 |
+
r.update(base)
|
| 149 |
+
print(json.dumps(r, indent=2))
|
| 150 |
+
return r
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
def main():
|
| 154 |
+
ap = argparse.ArgumentParser()
|
| 155 |
+
ap.add_argument("--cot", default="full", choices=["full", "melody", "off"])
|
| 156 |
+
ap.add_argument("--both", action="store_true", help="run cot=full then cot=off")
|
| 157 |
+
a = ap.parse_args()
|
| 158 |
+
|
| 159 |
+
base = preflight()
|
| 160 |
+
|
| 161 |
+
try:
|
| 162 |
+
import pynvml # noqa
|
| 163 |
+
import yue2 # noqa
|
| 164 |
+
except ImportError:
|
| 165 |
+
print("\n== installing (once) ==")
|
| 166 |
+
print(" run these, then re-run this script:\n")
|
| 167 |
+
print(" # A DEDICATED VENV IS NOT OPTIONAL: the wheel pins torch==2.10.0 exactly and")
|
| 168 |
+
print(" # will silently downgrade whatever torch you have. Someone has already had")
|
| 169 |
+
print(" # their ComfyUI broken by this. The package is also on NO PyPI index under")
|
| 170 |
+
print(" # any name - do not `pip install yue2`, that is a different project.")
|
| 171 |
+
print(" python3 -m venv .yue2 && source .yue2/bin/activate")
|
| 172 |
+
print(" python -m pip install -U pip nvidia-ml-py soundfile huggingface-hub==0.36.2")
|
| 173 |
+
print(" hf download m-a-p/YuE2-3B yue2_infer-0.1.5-py3-none-any.whl --local-dir .")
|
| 174 |
+
print(" python -m pip install ./yue2_infer-0.1.5-py3-none-any.whl\n")
|
| 175 |
+
sys.exit(2)
|
| 176 |
+
|
| 177 |
+
# This replaced an unconditional `runs = [run_one("full", base)]`, which ran a full
|
| 178 |
+
# pass even for `--cot off` and then discarded its result -- and, worse, left torch's
|
| 179 |
+
# caching allocator holding the first run's memory, so the SECOND run_one read that as
|
| 180 |
+
# its NVML `idle` baseline and reported a peak-minus-idle ~7 GiB too low. Measured on
|
| 181 |
+
# 2026-09-10 (RTX 5060 Ti): pipeline loaded 7.92 GiB, after `del pipe; gc.collect()`
|
| 182 |
+
# still 7.92 GiB, after `torch.cuda.empty_cache()` 1.14 GiB. The allocator returns
|
| 183 |
+
# nothing to the driver on its own, and NVML counts what the driver has handed out.
|
| 184 |
+
# A separate PROCESS per mode is still the cleanest measurement -- empty_cache() leaves
|
| 185 |
+
# the CUDA context behind (~0.1 GiB above a cold baseline) -- so prefer two invocations
|
| 186 |
+
# over --both when the number matters.
|
| 187 |
+
modes = ["full", "off"] if a.both else [a.cot]
|
| 188 |
+
runs = []
|
| 189 |
+
for index, mode in enumerate(modes):
|
| 190 |
+
if index:
|
| 191 |
+
import gc
|
| 192 |
+
import torch
|
| 193 |
+
gc.collect()
|
| 194 |
+
torch.cuda.empty_cache()
|
| 195 |
+
runs.append(run_one(mode, base))
|
| 196 |
+
|
| 197 |
+
print("\n" + "=" * 68)
|
| 198 |
+
print("PASTE THIS BACK VERBATIM")
|
| 199 |
+
print("=" * 68)
|
| 200 |
+
print(json.dumps({"vendor_reference": {"card": "RTX 4090 24GB", "cot_full_peak_gib": 11.18,
|
| 201 |
+
"max_context_peak_gib": 14.08,
|
| 202 |
+
"note": "vendor README, NVML full-run peak"},
|
| 203 |
+
"measured": runs}, indent=2))
|
| 204 |
+
|
| 205 |
+
|
| 206 |
+
if __name__ == "__main__":
|
| 207 |
+
main()
|
sessions/2026-09-10_yue2-3b_rtx-5060-ti/session.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 1,
|
| 3 |
+
"session_id": "2026-09-10_yue2-3b_rtx-5060-ti",
|
| 4 |
+
"operator": "site operator, own hardware",
|
| 5 |
+
"gpu": {
|
| 6 |
+
"slug": "rtx-5060-ti",
|
| 7 |
+
"name": "NVIDIA GeForce RTX 5060 Ti",
|
| 8 |
+
"vram_total_mib": 16311,
|
| 9 |
+
"driver": "591.86",
|
| 10 |
+
"compute_capability": "12.0"
|
| 11 |
+
},
|
| 12 |
+
"host": {
|
| 13 |
+
"os": "Windows 11 + WSL2 Ubuntu 24.04 (kernel 6.6.87.2-microsoft-standard-WSL2)",
|
| 14 |
+
"ram_gib": 23
|
| 15 |
+
},
|
| 16 |
+
"display_attached": true,
|
| 17 |
+
"runtime": {
|
| 18 |
+
"name": "vendor-python",
|
| 19 |
+
"version": "yue2_infer 0.1.5",
|
| 20 |
+
"extras": {
|
| 21 |
+
"torch": "2.10.0+cu128",
|
| 22 |
+
"cuda": "12.8",
|
| 23 |
+
"python": "3.12.3"
|
| 24 |
+
}
|
| 25 |
+
},
|
| 26 |
+
"instrument": {
|
| 27 |
+
"vram": "NVML nvmlDeviceGetMemoryInfo(handle).used, sampled at 20 Hz in a background thread for the whole run",
|
| 28 |
+
"scope": "whole-card",
|
| 29 |
+
"sample_ms": 50
|
| 30 |
+
},
|
| 31 |
+
"harness": "raw/measure_yue2.py (default-budget runs) and raw/measure_longsong.py (full-context runs)",
|
| 32 |
+
"caveats": [
|
| 33 |
+
"Whole-card NVML figures, the same instrument the vendor used for its own numbers - directly comparable with them, not with torch allocator statistics, which exclude the CUDA context and read 0.4-0.8 GiB low.",
|
| 34 |
+
"The model's allocator is clamped per PROCESS (pipeline.py: min(memory_budget_gib - 2, total - 2) GiB via set_per_process_memory_fraction; 13.93 GiB on this card). The honest comparison against that clamp is peak_device_mib minus idle_device_mib, which ASSUMES the desktop's usage held steady through the run. It is an estimate, not a measured process peak, so it is not stored; recipes that call it 'in-process' are quoting this estimate.",
|
| 35 |
+
"Each run was a separate process. In one process, 7.92 GiB stayed resident after del+gc and only fell to 1.14 GiB after torch.cuda.empty_cache(), which would contaminate the next run's baseline.",
|
| 36 |
+
"Values are converted from 2-decimal GiB in RESULT.json, so each MiB figure carries +-5 MiB.",
|
| 37 |
+
"The KV cache is preallocated by BUDGET, not by tokens emitted (cuda_graph.py), and song length adds decode chunks rather than larger tensors - so the full-context runs bound what a longer song can cost.",
|
| 38 |
+
"Run 4 (full context AND the second CFG branch) is the worst case the library can be put in. It did not OOM."
|
| 39 |
+
]
|
| 40 |
+
}
|