{% extends "base.html" %} {% block title %}Leaderboard · LemonMatrix{% endblock %} {% block content %}
{{ stats.total }}
Total runs
{{ stats.valid }}
Valid runs
{{ stats.profiles }}
Profiles with results
⬇ Export CSV
current filter

Filter

Results

{% if not results %} {% if stats.total %}

No results match the current filters. {{ stats.total - stats.valid }} run(s) are hidden by the "Valid only" filter -- uncheck it to see them.

{% else %}

No results yet. Add a profile, then run a sweep against it to populate the leaderboard.

{% endif %} {% else %}
{% for key, label, _ in columns %} {% set args = request.args.to_dict() %} {% set _ = args.update({'sort': key, 'dir': next_dir(key)}) %} {% endfor %} {% for r in results %} {% for key, _, kind in columns %} {% set value = get(r, key) %} {% if key == "model.name" %} {% elif kind == "chip" %} {% elif kind == "status" %} {% elif kind == "num1" %} {% elif kind == "num0" %} {% elif kind == "num3" %} {% else %} {% endif %} {% endfor %} {% endfor %}
{{ label }}{% if sort_key == key %} {{ "▲" if sort_dir == "asc" else "▼" }}{% endif %}
{{ value or "–" }}{% if value %}{{ value }}{% else %}–{% endif %}{{ "valid" if value else "invalid" }}{{ "%.1f"|format(value) if value is not none else "–" }}{{ "%.0f"|format(value) if value is not none else "–" }}{{ "%.3f"|format(value) if value is not none else "–" }}{{ value if value is not none else "–" }}
{% endif %}
{% if failures %}

Failed runs

{% for f in failures %} {% endfor %}
Timestamp Profile Model Quant Engine Backend Stage Error
{{ f.timestamp[:19].replace("T"," ") if f.timestamp else "–" }} {{ f._profile or "–" }} {{ f.attempted.model_name if f.attempted else "–" }} {{ f.attempted.quantization if f.attempted else "–" }} {% set e = f.attempted.compute_engine if f.attempted else None %} {% if e %}{{ e }}{% else %}–{% endif %} {{ f.attempted.backend if f.attempted else "–" }} {{ f.stage or "–" }} {{ f.error or "–" }}
{% endif %} {% endblock %}