Spaces:
Running
Running
Download style.css from llama-benches/amd: direct link, hf CLI and curl.
- Browser
- Download file 10.4 kB
-
https://huggingface.co/spaces/llama-benches/amd/resolve/main/style.css
- Command line
-
hf download hf://spaces/llama-benches/amd/style.css
-
curl -L -o style.css https://huggingface.co/spaces/llama-benches/amd/resolve/main/style.css
10.4 kB
| @font-face { | |
| font-family: "Llama Sans"; | |
| src: url("https://raw.githubusercontent.com/ggml-org/llama-brand/master/fonts/variable/LlamaSans%5Bopsz,wght%5D.ttf") format("truetype"); | |
| font-weight: 400 700; | |
| font-style: normal; | |
| font-display: swap; | |
| } | |
| @font-face { | |
| font-family: "Llama Mono"; | |
| src: url("https://raw.githubusercontent.com/ggml-org/llama-brand/master/fonts/variable/LlamaMono%5Bwght%5D.ttf") format("truetype"); | |
| font-weight: 400 700; | |
| font-style: normal; | |
| font-display: swap; | |
| } | |
| :root { | |
| --bg: #f7f6f3; | |
| --card: #ffffff; | |
| --border: #e5e3df; | |
| --text: #171716; | |
| --muted: #706e69; | |
| --faint: #9b9892; | |
| --interactive: #ee6c1e; | |
| --accent: #d71920; | |
| --accent-soft: #fceded; | |
| --warn: #ee6c1e; | |
| --warn-soft: rgba(238, 108, 30, 0.14); | |
| --mono: "Llama Mono", ui-monospace, "SF Mono", Menlo, monospace; | |
| --sans: "Llama Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; | |
| --radius: 14px; | |
| --shadow: 0 1px 2px rgba(28, 25, 20, 0.025), 0 6px 18px rgba(28, 25, 20, 0.035); | |
| } | |
| @media (prefers-color-scheme: dark) { | |
| :root { | |
| --bg: #121312; | |
| --card: #1a1b19; | |
| --border: #30312e; | |
| --text: #eeeDE8; | |
| --muted: #aaa7a0; | |
| --faint: #77746e; | |
| --accent: #ff5a5f; | |
| --accent-soft: rgba(255, 90, 95, 0.16); | |
| --warn: #ff8a42; | |
| --warn-soft: rgba(255, 138, 66, 0.16); | |
| --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35); | |
| } | |
| } | |
| * { box-sizing: border-box; } | |
| html, body { margin: 0; } | |
| body { | |
| background: var(--bg); | |
| color: var(--text); | |
| font-family: var(--sans); | |
| line-height: 1.5; | |
| -webkit-font-smoothing: antialiased; | |
| } | |
| .wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; } | |
| .topbar { | |
| border-bottom: 1px solid var(--border); | |
| background: var(--card); | |
| } | |
| .topbar h1 { | |
| margin: 0; | |
| padding: 18px 0; | |
| } | |
| .brand { display: flex; align-items: center; gap: 18px; } | |
| .brand img { display: block; height: auto; } | |
| .llama-logo { width: 144px; } | |
| .amd-logo { width: 79px; } | |
| .brand-cross { font-size: 20px; font-weight: 400; color: var(--faint); } | |
| .brand-division { | |
| border-left: 1px solid var(--border); | |
| padding-left: 25px; | |
| font-family: var(--mono); | |
| font-size: 11px; | |
| font-weight: 400; | |
| color: var(--muted); | |
| } | |
| .status { margin: 10px 0 0; color: var(--faint); font-size: 12px; font-family: var(--mono); } | |
| .status:empty { display: none; } | |
| .controls { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 18px 28px; | |
| align-items: flex-end; | |
| margin: 26px 0 8px; | |
| } | |
| .field { | |
| position: relative; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 2px; | |
| width: fit-content; | |
| } | |
| .field[hidden] { display: none; } | |
| .field > span { | |
| font-size: 11px; | |
| font-weight: 600; | |
| color: var(--muted); | |
| text-transform: uppercase; | |
| letter-spacing: 0.08em; | |
| transition: color .15s; | |
| } | |
| .field select { | |
| display: block; | |
| appearance: none; | |
| -webkit-appearance: none; | |
| width: auto; | |
| max-width: 100%; | |
| min-width: 108px; | |
| padding: 2px 26px 6px 0; | |
| border: 0; | |
| border-radius: 0; | |
| background: transparent; | |
| background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); | |
| background-position: calc(100% - 10px) 50%, calc(100% - 5px) 50%; | |
| background-size: 5px 5px, 5px 5px; | |
| background-repeat: no-repeat; | |
| color: var(--text); | |
| font-family: var(--mono); | |
| font-size: 14px; | |
| font-weight: 600; | |
| outline: none; | |
| cursor: pointer; | |
| transition: color .15s; | |
| } | |
| .field::after { | |
| content: ""; | |
| position: absolute; | |
| right: 0; | |
| bottom: 0; | |
| left: 0; | |
| height: 1px; | |
| background: var(--interactive); | |
| transform: scaleX(0); | |
| transform-origin: left; | |
| transition: transform .2s ease; | |
| } | |
| .field:hover::after, | |
| .field:focus-within::after { transform: scaleX(1); } | |
| .field:hover select, | |
| .field:focus-within select, | |
| .field:hover > span, | |
| .field:focus-within > span { color: var(--interactive); } | |
| .results { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 14px 0 32px; } | |
| .card { | |
| background: var(--card); | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius); | |
| box-shadow: var(--shadow); | |
| overflow: hidden; | |
| } | |
| .card-head { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| gap: 12px; | |
| flex-wrap: wrap; | |
| padding: 16px 18px; | |
| border-bottom: 1px solid var(--border); | |
| } | |
| .card-head h2 { margin: 0; font-size: 15px; font-weight: 700; } | |
| .card-head .meta { color: var(--muted); font-size: 12px; font-family: var(--mono); } | |
| .card-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } | |
| .view-links { | |
| display: flex; | |
| align-items: center; | |
| gap: 18px; | |
| margin-left: auto; | |
| } | |
| .view-link { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 5px; | |
| padding: 2px 0; | |
| border: 0; | |
| background: none; | |
| color: var(--muted); | |
| font: inherit; | |
| font-size: 12px; | |
| font-weight: 500; | |
| white-space: nowrap; | |
| cursor: pointer; | |
| transition: color .15s; | |
| } | |
| .view-link span { transition: transform .15s; } | |
| .view-link:hover { color: var(--interactive); } | |
| .view-link:hover span { transform: translateX(3px); } | |
| .back-link { margin-left: auto; } | |
| .back-link:hover span { transform: translateX(-3px); } | |
| .legend-item { display: inline-flex; align-items: center; gap: 6px; } | |
| .legend-item i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; } | |
| .fa-legend { display: flex; gap: 14px; } | |
| .fa-legend i.on { background: var(--accent); } | |
| .fa-legend i.off { background: var(--warn); } | |
| .chart { padding: 8px 8px 14px; } | |
| .chart-svg { width: 100%; height: auto; display: block; } | |
| .chart-svg .grid { stroke: var(--border); stroke-width: 1; } | |
| .chart-svg .ax-x, .chart-svg .ax-y { fill: var(--muted); font-size: 11px; font-family: var(--mono); } | |
| .chart-svg .line-on { stroke: var(--accent); } | |
| .chart-svg .line-off { stroke: var(--warn); } | |
| .chart-svg .dot-on { fill: var(--accent); } | |
| .chart-svg .dot-off { fill: var(--warn); } | |
| /* hit target around each dot: invisible, larger than the 3px dot so a finger or | |
| a careless cursor still lands on it */ | |
| .chart-svg .dot-hit { fill: transparent; cursor: pointer; } | |
| .chart-svg:focus { outline: none; } | |
| /* the dot being read (hover, tap or keyboard) grows a halo */ | |
| .chart-svg .dot-hit.active { fill: var(--text); fill-opacity: .14; } | |
| /* hover readout for a data point */ | |
| .tooltip { | |
| position: fixed; | |
| z-index: 20; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 2px; | |
| padding: 7px 10px; | |
| background: var(--card); | |
| color: var(--text); | |
| border: 1px solid var(--border); | |
| border-radius: 8px; | |
| box-shadow: var(--shadow); | |
| font-size: 12px; | |
| line-height: 1.35; | |
| pointer-events: none; | |
| white-space: nowrap; | |
| transition: opacity .12s; | |
| } | |
| .tooltip[hidden] { display: none; } | |
| .tooltip .t-build { font-family: var(--mono); font-weight: 700; } | |
| .tooltip .t-vals { font-family: var(--mono); color: var(--muted); } | |
| .tooltip .t-vals b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; } | |
| table { width: 100%; border-collapse: collapse; font-size: 13px; } | |
| th, td { padding: 9px 18px; text-align: left; vertical-align: middle; } | |
| th { font-weight: 600; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; } | |
| tbody tr + tr td, tbody tr + tr th { border-top: 1px solid var(--border); } | |
| .quant { font-family: var(--mono); font-weight: 600; white-space: nowrap; width: 4%; min-width: 64px; } | |
| .metric { width: 48%; } | |
| td.metric .cell + .cell { margin-top: 5px; } | |
| .cell { display: flex; align-items: center; gap: 10px; } | |
| .bar { | |
| height: 9px; | |
| border-radius: 999px; | |
| flex: 1; | |
| overflow: hidden; | |
| min-width: 28px; | |
| } | |
| .bar.on { background: var(--accent-soft); } | |
| .bar.on > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; width: calc(var(--v) / var(--m) * 100%); } | |
| .bar.off { background: var(--warn-soft); } | |
| .bar.off > i { display: block; height: 100%; background: var(--warn); border-radius: 999px; width: calc(var(--v) / var(--m) * 100%); } | |
| .val { font-family: var(--mono); font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 9px; justify-content: flex-end; white-space: nowrap; flex: 0 0 6ch; min-width: 0; } | |
| .val .ts { flex: 0 0 5ch; min-width: 0; text-align: right; font-weight: 600; } | |
| .muted-cell { color: var(--faint); font-size: 12px; } | |
| /* ---- phone layout ----------------------------------------------------------- | |
| On narrow screens the 3-column table (Quant | PP512 | TG128) overflows, so | |
| each <tr> becomes a stacked block: the quant acts as a heading and the two | |
| metric cells drop into full-width rows labelled via their data-m attribute. | |
| */ | |
| @media (max-width: 560px) { | |
| .wrap { padding: 0 14px; } | |
| .topbar h1 { padding: 15px 0; } | |
| .brand { gap: 11px; } | |
| .llama-logo { width: 107px; } | |
| .amd-logo { width: 61px; } | |
| .brand-cross { font-size: 16px; } | |
| .brand-division { display: none; } | |
| .controls { margin: 18px 0 8px; gap: 14px 22px; } | |
| .field { flex: 1 1 140px; } | |
| .field select { width: 100%; min-width: 0; } | |
| .card-head { padding: 14px 16px; gap: 10px; } | |
| /* each table → block, each row → its own stacked sub-card */ | |
| table { display: block; } | |
| thead { display: none; } | |
| tbody, tr { display: block; } | |
| tbody tr + tr td, | |
| tbody tr + tr th { border-top: none; } | |
| tbody tr + tr { margin-top: 10px; } | |
| tbody th, tbody td { display: block; width: 100%; padding: 0; border: 0; } | |
| /* quant heading: compact bold title, not a stretched grey bar */ | |
| .quant { | |
| width: auto; | |
| display: block; | |
| padding: 11px 16px 9px; | |
| margin: 0; | |
| background: transparent; | |
| border-bottom: 1px solid var(--border); | |
| border-radius: 0; | |
| font-size: 14px; | |
| } | |
| tbody tr { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; } | |
| /* a metric block: label on top, full-width stacked bars below */ | |
| /* width:auto beats the desktop `.metric {width:48%}` (class-only specificity) | |
| so the cell spans the full row and bars can stretch as far as possible. */ | |
| td.metric { width: auto; padding: 12px 12px 13px; } | |
| td.metric + td.metric { border-top: 1px solid var(--border); } | |
| td.metric::before { | |
| content: attr(data-m) " · tok/s"; | |
| display: block; | |
| font-size: 11px; | |
| font-weight: 600; | |
| color: var(--muted); | |
| text-transform: uppercase; | |
| letter-spacing: 0.04em; | |
| margin-bottom: 7px; | |
| } | |
| /* let the bar fill the width: shrink the value column on phones */ | |
| .cell { gap: 8px; } | |
| .cell .bar { flex: 1 1 auto; min-width: 20px; height: 12px; } | |
| .val { gap: 6px; flex-basis: 8ch; } | |
| .val .ts { flex-basis: 7ch; font-size: 12px; } | |
| } | |
| .foot { | |
| color: var(--faint); | |
| font-size: 12px; | |
| padding: 20px 40px; | |
| } | |
| .foot a { color: var(--muted); } | |
| .empty { color: var(--muted); padding: 60px 0; text-align: center; font-size: 14px; } | |