SeaWolf-AI commited on
Commit
5af4f5c
·
verified ·
1 Parent(s): 5603963

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +46 -1
index.html CHANGED
@@ -92,6 +92,10 @@ input[type=range]::-webkit-slider-thumb:hover{transform:scale(1.2);}
92
  .clear-btn{width:100%;padding:8px;border-radius:var(--r-xs);background:var(--fog);border:1.5px solid var(--line);color:var(--ink3);font-family:var(--fb);font-size:11px;font-weight:600;cursor:pointer;transition:all .2s;margin-top:4px;}
93
  .clear-btn:hover{border-color:rgba(225,29,72,.3);color:var(--rose);}
94
 
 
 
 
 
95
  .section-lbl{font-size:9px;font-weight:700;letter-spacing:2.5px;text-transform:uppercase;color:var(--ink4);margin-bottom:10px;padding:0 2px;}
96
 
97
  /* MAIN CHAT */
@@ -260,6 +264,21 @@ input[type=range]::-webkit-slider-thumb:hover{transform:scale(1.2);}
260
  </div>
261
  </div>
262
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
263
  <!-- Single Model Card -->
264
  <div class="model-card">
265
  <div class="mc-top">
@@ -274,6 +293,7 @@ input[type=range]::-webkit-slider-thumb:hover{transform:scale(1.2);}
274
  </div>
275
  <div class="mc-desc">MRI-guided evolutionary merge · Surpassed both parents · 201 languages · 262K context</div>
276
  <a href="https://huggingface.co/FINAL-Bench/Darwin-35B-A3B-Opus" target="_blank" style="display:inline-flex;align-items:center;gap:5px;margin-top:8px;font-size:10px;font-weight:700;color:var(--v);text-decoration:none;padding:4px 10px;border-radius:16px;background:var(--vg);border:1px solid rgba(109,40,217,.15);transition:all .2s;">🤗 Model Card ↗</a>
 
277
  <div style="display:flex;flex-wrap:wrap;gap:4px;margin-top:6px;">
278
  <a href="https://huggingface.co/spaces/FINAL-Bench/Leaderboard" target="_blank" style="display:inline-flex;align-items:center;gap:3px;font-size:8px;font-weight:700;color:#059669;text-decoration:none;padding:3px 8px;border-radius:12px;background:rgba(16,185,129,.08);border:1px solid rgba(16,185,129,.15);transition:all .2s;">🏆 FINAL Bench</a>
279
  <a href="https://huggingface.co/spaces/FINAL-Bench/all-bench-leaderboard" target="_blank" style="display:inline-flex;align-items:center;gap:3px;font-size:8px;font-weight:700;color:var(--amber);text-decoration:none;padding:3px 8px;border-radius:12px;background:rgba(217,119,6,.08);border:1px solid rgba(217,119,6,.15);transition:all .2s;">📊 ALL Bench</a>
@@ -404,7 +424,7 @@ input[type=range]::-webkit-slider-thumb:hover{transform:scale(1.2);}
404
  <div class="input-hint">
405
  <span><span class="kbd">Enter</span> send</span>
406
  <span><span class="kbd">Shift+Enter</span> new line</span>
407
- <span class="model-hint">35B MoE · 3B active · 262K ctx</span>
408
  </div>
409
  </div>
410
  </main>
@@ -414,6 +434,7 @@ input[type=range]::-webkit-slider-thumb:hover{transform:scale(1.2);}
414
 
415
  <script>
416
  const S={vision:true,history:[],msgCount:0,totalTok:0,pending:null,busy:false,searchResults:null,
 
417
  presets:{
418
  general:'You are Darwin-35B-A3B-Opus, a highly capable reasoning model created by VIDRAFT via evolutionary merge. Think step by step for complex questions.',
419
  code:'You are an expert software engineer. Write clean, efficient, well-commented code. Explain your approach before writing.',
@@ -426,6 +447,29 @@ const S={vision:true,history:[],msgCount:0,totalTok:0,pending:null,busy:false,se
426
 
427
  function apiBase(){return'/gradio';}
428
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
429
  // Toggles
430
  document.getElementById('visionToggle').addEventListener('change',function(){
431
  S.vision=this.checked;
@@ -556,6 +600,7 @@ async function sendMsg(){
556
  parseInt(document.getElementById('tokSl').value),
557
  parseFloat(document.getElementById('tempSl').value),
558
  parseFloat(document.getElementById('topPSl').value),
 
559
  ];
560
 
561
  const botDiv=appendBot();
 
92
  .clear-btn{width:100%;padding:8px;border-radius:var(--r-xs);background:var(--fog);border:1.5px solid var(--line);color:var(--ink3);font-family:var(--fb);font-size:11px;font-weight:600;cursor:pointer;transition:all .2s;margin-top:4px;}
93
  .clear-btn:hover{border-color:rgba(225,29,72,.3);color:var(--rose);}
94
 
95
+ .model-sel-btn{flex:1;padding:8px 6px;border-radius:var(--r-xs);border:1.5px solid var(--line);background:var(--fog);color:var(--ink3);font-family:var(--fb);font-size:10px;cursor:pointer;transition:all .22s;display:flex;flex-direction:column;align-items:center;gap:2px;}
96
+ .model-sel-btn:hover{border-color:rgba(109,40,217,.25);background:rgba(109,40,217,.04);}
97
+ .model-sel-btn.active{border-color:rgba(109,40,217,.5);background:linear-gradient(135deg,rgba(109,40,217,.08),rgba(16,185,129,.04));color:var(--v);box-shadow:0 2px 8px rgba(109,40,217,.12);}
98
+
99
  .section-lbl{font-size:9px;font-weight:700;letter-spacing:2.5px;text-transform:uppercase;color:var(--ink4);margin-bottom:10px;padding:0 2px;}
100
 
101
  /* MAIN CHAT */
 
264
  </div>
265
  </div>
266
 
267
+ <!-- Model Selector -->
268
+ <div style="padding:0 14px;margin-bottom:4px;">
269
+ <span class="field-lbl">Model</span>
270
+ <div id="modelSelector" style="display:flex;gap:6px;">
271
+ <button class="model-sel-btn active" data-model="Darwin-35B-A3B-Opus" onclick="selectModel(this)">
272
+ <span style="font-weight:700;">Original</span>
273
+ <span style="font-size:8px;opacity:.7;">BF16 · Vision ✅</span>
274
+ </button>
275
+ <button class="model-sel-btn" data-model="Darwin-35B-A3B-Opus-Q8-GGUF" onclick="selectModel(this)">
276
+ <span style="font-weight:700;">Q8 GGUF</span>
277
+ <span style="font-size:8px;opacity:.7;">37GB · llama.cpp</span>
278
+ </button>
279
+ </div>
280
+ </div>
281
+
282
  <!-- Single Model Card -->
283
  <div class="model-card">
284
  <div class="mc-top">
 
293
  </div>
294
  <div class="mc-desc">MRI-guided evolutionary merge · Surpassed both parents · 201 languages · 262K context</div>
295
  <a href="https://huggingface.co/FINAL-Bench/Darwin-35B-A3B-Opus" target="_blank" style="display:inline-flex;align-items:center;gap:5px;margin-top:8px;font-size:10px;font-weight:700;color:var(--v);text-decoration:none;padding:4px 10px;border-radius:16px;background:var(--vg);border:1px solid rgba(109,40,217,.15);transition:all .2s;">🤗 Model Card ↗</a>
296
+ <a href="https://huggingface.co/FINAL-Bench/Darwin-35B-A3B-Opus-Q8-GGUF" target="_blank" style="display:inline-flex;align-items:center;gap:5px;margin-top:4px;font-size:10px;font-weight:700;color:#d97706;text-decoration:none;padding:4px 10px;border-radius:16px;background:rgba(217,119,6,.08);border:1px solid rgba(217,119,6,.18);transition:all .2s;">📦 Q8 GGUF ↗</a>
297
  <div style="display:flex;flex-wrap:wrap;gap:4px;margin-top:6px;">
298
  <a href="https://huggingface.co/spaces/FINAL-Bench/Leaderboard" target="_blank" style="display:inline-flex;align-items:center;gap:3px;font-size:8px;font-weight:700;color:#059669;text-decoration:none;padding:3px 8px;border-radius:12px;background:rgba(16,185,129,.08);border:1px solid rgba(16,185,129,.15);transition:all .2s;">🏆 FINAL Bench</a>
299
  <a href="https://huggingface.co/spaces/FINAL-Bench/all-bench-leaderboard" target="_blank" style="display:inline-flex;align-items:center;gap:3px;font-size:8px;font-weight:700;color:var(--amber);text-decoration:none;padding:3px 8px;border-radius:12px;background:rgba(217,119,6,.08);border:1px solid rgba(217,119,6,.15);transition:all .2s;">📊 ALL Bench</a>
 
424
  <div class="input-hint">
425
  <span><span class="kbd">Enter</span> send</span>
426
  <span><span class="kbd">Shift+Enter</span> new line</span>
427
+ <span class="model-hint" id="modelHint">35B MoE · 3B active · 262K ctx</span>
428
  </div>
429
  </div>
430
  </main>
 
434
 
435
  <script>
436
  const S={vision:true,history:[],msgCount:0,totalTok:0,pending:null,busy:false,searchResults:null,
437
+ selectedModel:'Darwin-35B-A3B-Opus',
438
  presets:{
439
  general:'You are Darwin-35B-A3B-Opus, a highly capable reasoning model created by VIDRAFT via evolutionary merge. Think step by step for complex questions.',
440
  code:'You are an expert software engineer. Write clean, efficient, well-commented code. Explain your approach before writing.',
 
447
 
448
  function apiBase(){return'/gradio';}
449
 
450
+ // Model selector
451
+ function selectModel(btn){
452
+ document.querySelectorAll('.model-sel-btn').forEach(b=>b.classList.remove('active'));
453
+ btn.classList.add('active');
454
+ S.selectedModel=btn.dataset.model;
455
+ const isGGUF=S.selectedModel.includes('GGUF');
456
+ document.getElementById('hdrModel').textContent=S.selectedModel;
457
+ // GGUF doesn't support vision
458
+ if(isGGUF){
459
+ document.getElementById('visionToggle').checked=false;
460
+ document.getElementById('visionToggle').disabled=true;
461
+ S.vision=false;
462
+ const l=document.getElementById('fileLabel');l.style.opacity='.35';l.style.pointerEvents='none';
463
+ removeImg();
464
+ }else{
465
+ document.getElementById('visionToggle').disabled=false;
466
+ document.getElementById('visionToggle').checked=true;
467
+ S.vision=true;
468
+ const l=document.getElementById('fileLabel');l.style.opacity='1';l.style.pointerEvents='auto';
469
+ }
470
+ showToast(isGGUF?'📦 Q8 GGUF model selected':'🧬 Original BF16 model selected');
471
+ }
472
+
473
  // Toggles
474
  document.getElementById('visionToggle').addEventListener('change',function(){
475
  S.vision=this.checked;
 
600
  parseInt(document.getElementById('tokSl').value),
601
  parseFloat(document.getElementById('tempSl').value),
602
  parseFloat(document.getElementById('topPSl').value),
603
+ S.selectedModel,
604
  ];
605
 
606
  const botDiv=appendBot();