{$i18n.t('Leaderboard')}
{rankedModels.length}
{ loadEmbeddingModel(); }} />
{#if loadingLeaderboard}
{/if} {#if (rankedModels ?? []).length === 0}
{$i18n.t('No models found')}
{:else} {#each [...rankedModels].sort((a, b) => { let aVal, bVal; if (orderBy === 'name') { aVal = a.name; bVal = b.name; return direction === 'asc' ? aVal.localeCompare(bVal) : bVal.localeCompare(aVal); } else if (orderBy === 'rating') { aVal = a.rating === '-' ? -Infinity : a.rating; bVal = b.rating === '-' ? -Infinity : b.rating; return direction === 'asc' ? aVal - bVal : bVal - aVal; } else if (orderBy === 'won') { aVal = a.stats.won === '-' ? -Infinity : Number(a.stats.won); bVal = b.stats.won === '-' ? -Infinity : Number(b.stats.won); return direction === 'asc' ? aVal - bVal : bVal - aVal; } else if (orderBy === 'lost') { aVal = a.stats.lost === '-' ? -Infinity : Number(a.stats.lost); bVal = b.stats.lost === '-' ? -Infinity : Number(b.stats.lost); return direction === 'asc' ? aVal - bVal : bVal - aVal; } return 0; }) as model, modelIdx (model.id)} {/each}
setSortKey('rating')} >
{$i18n.t('RK')} {#if orderBy === 'rating'} {#if direction === 'asc'} {:else} {/if} {:else} {/if}
setSortKey('name')} >
{$i18n.t('Model')} {#if orderBy === 'name'} {#if direction === 'asc'} {:else} {/if} {:else} {/if}
setSortKey('rating')} >
{$i18n.t('Rating')} {#if orderBy === 'rating'} {#if direction === 'asc'} {:else} {/if} {:else} {/if}
setSortKey('won')} >
{$i18n.t('Won')} {#if orderBy === 'won'} {#if direction === 'asc'} {:else} {/if} {:else} {/if}
setSortKey('lost')} >
{$i18n.t('Lost')} {#if orderBy === 'lost'} {#if direction === 'asc'} {:else} {/if} {:else} {/if}
{model?.rating !== '-' ? modelIdx + 1 : '-'}
{model.name}
{model.name}
{model.rating}
{#if model.stats.won === '-'} - {:else} {model.stats.won} {/if}
{#if model.stats.lost === '-'} - {:else} {model.stats.lost} {/if}
{/if}
ⓘ {$i18n.t( 'The evaluation leaderboard is based on the Elo rating system and is updated in real-time.' )}
{$i18n.t( 'The leaderboard is currently in beta, and we may adjust the rating calculations as we refine the algorithm.' )}