Replace Moxie Demo leaderboard with 'Our models, your setup' section

- Two model cards: Moxie-CPU (8B, Qwen 3.6 + GLM 5.2 + Gemma 4 merge) and
  Moxie-GPU (27B, Qwen 3.8 + GLM 5.3 + Gemma 4 merge), both built with the
  Moxiegen Method for consumer hardware
- Run instructions pulled from the Hugging Face model cards: llama.cpp
  (serve/cli) and Ollama commands with one-click copy buttons, plus
  LM Studio/Jan/vLLM/Docker mention and HF links
- Added legacy #moxy anchor to preserve old deep links
- Mobile: commands wrap fully visible with copy button on its own row
- Removed leaderboard CSS/JS (lb-* styles, initLeaderboard) and replaced
  with model-chip/cmd-row styles + initCopyButtons
This commit is contained in:
Z User 2026-10-07 04:43:47 +00:00
parent 564a558579
commit e9e5ec34f4

View File

@ -675,111 +675,104 @@
transform: translateX(-50%);
}
.lb-row {
display: grid;
grid-template-columns: 28px 1fr 52px;
.model-chip {
display: inline-flex;
align-items: center;
gap: 10px;
padding: 5px 0;
border-radius: 8px;
transition: background 200ms ease;
}
.lb-row:hover {
background: rgba(148, 163, 184, 0.06);
}
.lb-row.is-moxie {
background: rgba(52, 211, 153, 0.08);
padding: 6px 8px;
margin: 2px -8px;
border: 1px solid rgba(52, 211, 153, 0.25);
border-radius: 10px;
}
.lb-rank {
font-size: 0.75rem;
font-weight: 600;
color: #64748b;
text-align: center;
}
.lb-row.is-moxie .lb-rank {
color: #34d399;
}
.lb-bar-wrap {
display: flex;
flex-direction: column;
gap: 3px;
min-width: 0;
}
.lb-model-line {
display: flex;
align-items: baseline;
gap: 6px;
font-size: 0.75rem;
font-weight: 500;
color: #94a3b8;
background: rgba(148, 163, 184, 0.08);
border: 1px solid rgba(148, 163, 184, 0.18);
padding: 5px 14px;
border-radius: 9999px;
white-space: nowrap;
}
.model-chip.accent {
color: #34d399;
background: rgba(52, 211, 153, 0.08);
border-color: rgba(52, 211, 153, 0.3);
}
.cmd-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
background: #020617;
border: 1px solid #1e293b;
border-radius: 16px;
padding: 14px 18px;
transition: border-color 200ms ease;
}
.cmd-row:hover {
border-color: rgba(52, 211, 153, 0.35);
}
.cmd-row code {
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
font-size: 0.85rem;
color: #6ee7b7;
white-space: nowrap;
overflow-x: auto;
scrollbar-width: none;
min-width: 0;
}
.lb-model-name {
font-size: 0.8rem;
font-weight: 500;
color: #e2e8f0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
.cmd-row code::-webkit-scrollbar {
display: none;
}
.lb-row.is-moxie .lb-model-name {
color: #34d399;
font-weight: 700;
.cmd-row .cmd-prompt {
color: #475569;
user-select: none;
}
.lb-provider {
font-size: 0.65rem;
color: #64748b;
white-space: nowrap;
}
.lb-row.is-moxie .lb-provider {
color: #6ee7b7;
}
.lb-bar-track {
width: 100%;
height: 6px;
background: rgba(148, 163, 184, 0.08);
border-radius: 3px;
overflow: hidden;
}
.lb-bar-fill {
height: 100%;
border-radius: 3px;
transition: width 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
width: 0;
}
.lb-row.is-moxie .lb-bar-fill {
background: linear-gradient(90deg, #34d399, #6ee7b7);
box-shadow: 0 0 12px rgba(52, 211, 153, 0.4);
}
.lb-score {
font-size: 0.8rem;
.copy-btn {
flex-shrink: 0;
font-size: 0.68rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.1em;
color: #94a3b8;
text-align: right;
font-variant-numeric: tabular-nums;
background: rgba(148, 163, 184, 0.08);
border: 1px solid rgba(148, 163, 184, 0.22);
border-radius: 9999px;
padding: 7px 16px;
cursor: pointer;
transition: all 200ms ease;
}
.lb-row.is-moxie .lb-score {
.copy-btn:hover {
color: #34d399;
background: rgba(52, 211, 153, 0.1);
border-color: rgba(52, 211, 153, 0.45);
}
.lb-medal {
font-size: 0.7rem;
.copy-btn.copied {
color: #34d399;
background: rgba(52, 211, 153, 0.12);
border-color: rgba(52, 211, 153, 0.55);
}
@media (max-width: 640px) {
.cmd-row {
flex-wrap: wrap;
row-gap: 10px;
}
.cmd-row code {
flex: 1 1 100%;
order: -1;
white-space: normal;
overflow-wrap: anywhere;
}
.copy-btn {
margin-left: auto;
}
}
</style>
</head>
@ -879,26 +872,131 @@
</div>
</header>
<section id="moxy" class="py-20 border-b border-slate-800 scroll-animate">
<span id="moxy" class="sr-only"></span>
<section id="models" class="py-20 border-b border-slate-800 scroll-animate">
<div class="max-w-screen-2xl mx-auto px-8">
<div class="flex flex-col md:flex-row items-center justify-between gap-8">
<div class="max-w-md">
<h2 class="text-5xl font-semibold tracking-[-1px] mb-3"
style="font-family: 'Space Grotesk', sans-serif;">Moxie Demo.</h2>
<p class="text-slate-400 text-xl">Real-time performance leaderboard</p>
<div class="max-w-3xl mb-14">
<h2 class="text-5xl font-semibold tracking-[-1px] mb-4"
style="font-family: 'Space Grotesk', sans-serif;">Our models, your setup.</h2>
<p class="text-slate-400 text-xl">Open-weight Moxie builds, merged and optimized with the Moxiegen
Method to run natively on consumer hardware. Pull one from Hugging Face and start chatting in
minutes — no data center required.</p>
</div>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
<div
class="bg-slate-900 border border-slate-700 rounded-3xl p-8 hover:border-emerald-400/40 transition-colors flex flex-col scroll-animate">
<div class="flex items-start justify-between gap-4 mb-6">
<div class="flex items-center gap-4">
<div
class="h-12 w-12 bg-emerald-400/10 text-emerald-400 rounded-2xl flex items-center justify-center text-2xl">
💻</div>
<div>
<h3 class="text-2xl font-semibold"
style="font-family: 'Space Grotesk', sans-serif;">Moxie-CPU</h3>
<p class="text-slate-500 text-sm">8B params · GGUF · imatrix quant</p>
</div>
</div>
<span class="model-chip accent">CPU BUILD</span>
</div>
<p class="text-slate-400 mb-8">A three-way merge of <span
class="text-white font-medium">Qwen 3.6</span>, <span class="text-white font-medium">GLM
5.2</span> and <span class="text-white font-medium">Gemma 4</span>, optimized by the
Moxiegen Method to run natively on everyday consumer CPUs.</p>
<div class="space-y-6 mb-8">
<div>
<div
class="flex items-center gap-2 text-xs font-semibold uppercase tracking-widest text-slate-500 mb-2">
<span class="text-emerald-400">▸</span> Run with llama.cpp</div>
<div class="cmd-row">
<code><span class="cmd-prompt">$ </span>llama serve -hf Moxiegen/Moxie-Cpu</code>
<button class="copy-btn" type="button"
data-copy="llama serve -hf Moxiegen/Moxie-Cpu">Copy</button>
</div>
<p class="text-slate-500 text-sm mt-2">Local OpenAI-compatible server with a web UI — or go
terminal-only with <code class="text-slate-400">llama cli -hf
Moxiegen/Moxie-Cpu</code>.</p>
<p class="text-slate-500 text-sm mt-1">Install: <code
class="text-slate-400">curl -LsSf https://llama.app/install.sh | sh</code>
(macOS/Linux) · <code class="text-slate-400">winget install llama.cpp</code> (Windows)
</p>
</div>
<div>
<div
class="flex items-center gap-2 text-xs font-semibold uppercase tracking-widest text-slate-500 mb-2">
<span class="text-emerald-400">▸</span> Run with Ollama</div>
<div class="cmd-row">
<code><span class="cmd-prompt">$ </span>ollama run hf.co/Moxiegen/Moxie-Cpu</code>
<button class="copy-btn" type="button"
data-copy="ollama run hf.co/Moxiegen/Moxie-Cpu">Copy</button>
</div>
</div>
</div>
<div class="mt-auto flex flex-col sm:flex-row sm:items-center justify-between gap-4">
<p class="text-slate-500 text-sm">Also runs in LM Studio, Jan, vLLM & Docker.</p>
<a href="https://huggingface.co/Moxiegen/Moxie-Cpu" target="_blank" rel="noopener"
class="inline-flex items-center gap-2 text-emerald-400 hover:text-white font-medium transition-colors whitespace-nowrap">Hugging
Face <span>→</span></a>
</div>
</div>
<div
class="bg-slate-900 border border-slate-700 rounded-3xl p-8 max-w-2xl w-full md:w-auto scroll-animate">
<div class="flex items-center justify-between mb-6">
<div class="text-emerald-400 font-medium flex items-center gap-x-2"><span
class="text-2xl">🏆</span> LMARENA LEADERBOARD</div>
class="bg-slate-900 border border-slate-700 rounded-3xl p-8 hover:border-emerald-400/40 transition-colors flex flex-col scroll-animate">
<div class="flex items-start justify-between gap-4 mb-6">
<div class="flex items-center gap-4">
<div
class="text-xs uppercase tracking-widest bg-slate-800 text-slate-400 px-4 py-1 rounded-3xl">
Internal Testing</div>
</div>
<div id="leaderboard-chart" class="space-y-1.5"></div>
class="h-12 w-12 bg-emerald-400/10 text-emerald-400 rounded-2xl flex items-center justify-center text-2xl">
⚡</div>
<div>
<h3 class="text-2xl font-semibold"
style="font-family: 'Space Grotesk', sans-serif;">Moxie-GPU</h3>
<p class="text-slate-500 text-sm">27B params · GGUF · BF16 weights</p>
</div>
</div>
<span class="model-chip accent">GPU BUILD</span>
</div>
<p class="text-slate-400 mb-8">A three-way merge of <span class="text-white font-medium">Qwen
3.8</span>, <span class="text-white font-medium">GLM 5.3</span> and <span
class="text-white font-medium">Gemma 4</span>, optimized by the Moxiegen Method to deliver
full-precision inference on consumer GPUs.</p>
<div class="space-y-6 mb-8">
<div>
<div
class="flex items-center gap-2 text-xs font-semibold uppercase tracking-widest text-slate-500 mb-2">
<span class="text-emerald-400">▸</span> Run with llama.cpp</div>
<div class="cmd-row">
<code><span class="cmd-prompt">$ </span>llama serve -hf Moxiegen/Moxie-GPU:BF16</code>
<button class="copy-btn" type="button"
data-copy="llama serve -hf Moxiegen/Moxie-GPU:BF16">Copy</button>
</div>
<p class="text-slate-500 text-sm mt-2">Local OpenAI-compatible server with a web UI — or go
terminal-only with <code class="text-slate-400">llama cli -hf
Moxiegen/Moxie-GPU:BF16</code>.</p>
<p class="text-slate-500 text-sm mt-1">Install: <code
class="text-slate-400">curl -LsSf https://llama.app/install.sh | sh</code>
(macOS/Linux) · <code class="text-slate-400">winget install llama.cpp</code> (Windows)
</p>
</div>
<div>
<div
class="flex items-center gap-2 text-xs font-semibold uppercase tracking-widest text-slate-500 mb-2">
<span class="text-emerald-400">▸</span> Run with Ollama</div>
<div class="cmd-row">
<code><span class="cmd-prompt">$ </span>ollama run hf.co/Moxiegen/Moxie-GPU:BF16</code>
<button class="copy-btn" type="button"
data-copy="ollama run hf.co/Moxiegen/Moxie-GPU:BF16">Copy</button>
</div>
</div>
</div>
<div class="mt-auto flex flex-col sm:flex-row sm:items-center justify-between gap-4">
<p class="text-slate-500 text-sm">Also runs in LM Studio, Jan, vLLM & Docker.</p>
<a href="https://huggingface.co/Moxiegen/Moxie-GPU" target="_blank" rel="noopener"
class="inline-flex items-center gap-2 text-emerald-400 hover:text-white font-medium transition-colors whitespace-nowrap">Hugging
Face <span>→</span></a>
</div>
</div>
</div>
<p class="text-slate-500 text-center mt-10 text-lg">Both builds were created with the <span
class="text-emerald-400 font-medium">Moxiegen Method</span> — lossless pointer-based weight mapping
that strips redundant weight so merged models run natively on the hardware you already own.</p>
</div>
</section>
@ -2034,48 +2132,30 @@
});
}
function initLeaderboard() {
const data = [
{ rank: 1, model: 'Claude Opus 4.7 Thinking', provider: 'Anthropic', score: 1503 },
{ rank: 2, model: 'Claude Opus 4.6 Thinking', provider: 'Anthropic', score: 1502 },
{ rank: 3, model: 'Claude Opus 4.6', provider: 'Anthropic', score: 1498 },
{ rank: 4, model: 'Gemini 3.1 Pro Preview', provider: 'Google', score: 1492 },
{ rank: 5, model: 'Claude Opus 4.7', provider: 'Anthropic', score: 1491 },
{ rank: 6, model: 'Muse Spark', provider: 'Meta', score: 1490 },
{ rank: 7, model: 'Moxie', provider: 'Moxiegen', score: 1488 },
{ rank: 8, model: 'Gemini 3 Pro', provider: 'Google', score: 1486 },
{ rank: 9, model: 'GPT-5.5 High', provider: 'OpenAI', score: 1484 },
{ rank: 10, model: 'Grok 4.20 Beta', provider: 'xAI', score: 1480 },
{ rank: 11, model: 'GPT-5.2 Chat', provider: 'OpenAI', score: 1477 },
{ rank: 12, model: 'GPT-5.4 High', provider: 'OpenAI', score: 1477 },
{ rank: 13, model: 'Grok 4.20 Reasoning', provider: 'xAI', score: 1477 },
{ rank: 14, model: 'GPT-5.5', provider: 'OpenAI', score: 1475 },
{ rank: 15, model: 'ERNIE 5.1', provider: 'Baidu', score: 1474 },
];
const minScore = 1470, maxScore = 1505, range = maxScore - minScore;
const medals = ['🥇', '🥈', '🥉'];
const barColors = ['linear-gradient(90deg, #fbbf24, #f59e0b)', 'linear-gradient(90deg, #d1d5db, #9ca3af)', 'linear-gradient(90deg, #d97706, #b45309)'];
const container = document.getElementById('leaderboard-chart');
if (!container) return;
container.innerHTML = data.map((item, i) => {
const isMoxie = item.provider === 'Moxiegen';
const pct = ((item.score - minScore) / range) * 100;
const medal = i < 3 ? `<span class="lb-medal">${medals[i]}</span>` : '';
const barBg = isMoxie ? '' : (i < 3 ? `background:${barColors[i]};` : 'background:rgba(148,163,184,0.25);');
return `
<div class="lb-row${isMoxie ? ' is-moxie' : ''}">
<div class="lb-rank">${medal || item.rank}</div>
<div class="lb-bar-wrap">
<div class="lb-model-line"><span class="lb-model-name">${item.model}</span><span class="lb-provider">${item.provider}</span></div>
<div class="lb-bar-track"><div class="lb-bar-fill" data-width="${pct}" style="${barBg}"></div></div>
</div>
<div class="lb-score">${item.score}</div>
</div>`;
}).join('');
requestAnimationFrame(() => {
function initCopyButtons() {
document.querySelectorAll('.copy-btn').forEach(btn => {
btn.addEventListener('click', async () => {
const text = btn.dataset.copy || '';
if (!text) return;
try {
await navigator.clipboard.writeText(text);
} catch (err) {
const ta = document.createElement('textarea');
ta.value = text;
ta.style.position = 'fixed';
ta.style.opacity = '0';
document.body.appendChild(ta);
ta.select();
document.execCommand('copy');
ta.remove();
}
btn.textContent = 'Copied ✓';
btn.classList.add('copied');
setTimeout(() => {
container.querySelectorAll('.lb-bar-fill').forEach(bar => { bar.style.width = bar.dataset.width + '%'; });
}, 200);
btn.textContent = 'Copy';
btn.classList.remove('copied');
}, 1600);
});
});
}
@ -2084,7 +2164,7 @@
initBalloon();
initAuth();
initContactForm();
initLeaderboard();
initCopyButtons();
});
</script>
<script src="js/config.js"></script>