{#if durationSeconds || energyWh}
{#if energyWh}
(showJoules = !showJoules)} >
{isTotal ? "Total " : ""} Energy:
{#if showJoules} {convertToJoules(energyWh).toFixed(2)} J {isEstimated ? "(estimated)" : ""} {:else} {energyWh.toFixed(4)} Wh {isEstimated ? "(estimated)" : ""} {/if}
{/if}
{equivalents[equivalentIndex](energyWh)}
{#if durationSeconds}
{isTotal ? "Total " : ""} Duration:
{durationSeconds.toFixed(3)} s
{/if}
(showTooltip = true)} onmouseleave={() => (showTooltip = false)} onfocus={() => (showTooltip = true)}>
ⓘ
{#if showTooltip}
{#if isEstimated} Estimated energy consumption based on the average GPU power and inference duration for this message. Use Qwen/Qwen/Qwen2.5-VL-7B-Instruct model for exact results. {:else} Energy consumption measured directly on the GPU during inference for this message. {/if}
{/if}
{/if}