{#if durationSeconds || energyToDisplay}
(showTooltip = true)} on:mouseleave={() => (showTooltip = false)}>
{#if energyToDisplay}
(showJoules = !showJoules)} > {#if showJoules} {convertToJoules(energyToDisplay).toFixed(2)} J {isEstimated ? "(estimated)" : ""} {:else} {energyToDisplay.toFixed(4)} Wh {isEstimated ? "(estimated)" : ""} {/if}
{/if} {#if durationSeconds}
{durationSeconds} sec
{/if} {#if showTooltip}
{#if isEstimated} Estimated energy consumption based on the average GPU power and inference duration. Use Qwen/Qwen/Qwen2.5-VL-7B-Instruct model for exact results. {:else} Energy consumption measured directly on the GPU during inference. {/if}
{/if}
{/if}