-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add conditional formatting, methodology, sources.
Added custom logic to add color formatting to the columns. Removed less important columns. Added sections for methodology and sources.
- Loading branch information
Showing
11 changed files
with
170 additions
and
41 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
import Section from './Section.astro'; | ||
--- | ||
|
||
<Section> | ||
<div class="text-base"> | ||
<p id="methodology" class="text-xl font-bold mb-4">Methodology</p> | ||
<p class="py-2"><b>Distributed Footprint → </b>We run our tools daily in multiple data centers using <a class="underline hover:text-orange-600" href="https://fly.io/docs/reference/regions/" target="_blank">Fly.io</a>. Currently we run in cdg, iad, and sea.</p> | ||
<p class="py-2"><b>Short Requests → </b>Input requests are a short, single message (~20 tokens) and ask for a brief output response.</p> | ||
<p class="py-2"><b>Max Output → </b>Max output tokens is set to 100 to avoid distortion of TPS values from long outputs.</p> | ||
<p class="py-2"><b>Warmup for Consistent Setup → </b>A warmup connection is made to remove any connection setup latency.</p> | ||
<p class="py-2"><b>TTFT Roundtrip → </b>The TTFT clock starts when the HTTP request is made and stops when the first token result is received in the response stream.</p> | ||
<p class="py-2"><b>Try 3, Keep 1 → </b>For each provider, three separate inferences are done, and the best result is kept (to remove any outliers due to queuing etc).</p> | ||
</div> | ||
</Section> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
import Section from './Section.astro'; | ||
--- | ||
|
||
<Section> | ||
<div class="text-base"> | ||
<p id="source" class="text-xl font-bold">Source</p> | ||
<p class="py-2"><b>Raw Data → </b>All data is in this public <a class="underline hover:text-orange-600" href="https://storage.googleapis.com/thefastest-data" target="_blank">GCS bucket.</a></p> | ||
<p class="py-2"><b>Benchmarking Tools → </b>The full test suite is available in the <a class="underline hover:text-orange-600" href="https://github.com/fixie-ai/ai-benchmarks" target="_blank">ai-benchmarks repo.</a></p> | ||
<p class="py-2"><b>Website → </b>Full source code for this site is on <a class="underline hover:text-orange-600" href="https://github.com/fixie-ai/fastest.ai" target="_blank">GitHub.</a></p> | ||
</div> | ||
</Section> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
function hex (c) { | ||
var s = "0123456789abcdef"; | ||
var i = parseInt (c); | ||
if (i == 0 || isNaN (c)) | ||
return "00"; | ||
i = Math.round (Math.min (Math.max (0, i), 255)); | ||
return s.charAt ((i - i % 16) / 16) + s.charAt (i % 16); | ||
} | ||
|
||
/* Convert an RGB triplet to a hex string */ | ||
function convertToHex (rgb) { | ||
return hex(rgb[0]) + hex(rgb[1]) + hex(rgb[2]); | ||
} | ||
|
||
/* Remove '#' in color hex string */ | ||
function trim (s) { return (s.charAt(0) == '#') ? s.substring(1, 7) : s } | ||
|
||
/* Convert a hex string to an RGB triplet */ | ||
function convertToRGB (hex) { | ||
var color = []; | ||
color[0] = parseInt ((trim(hex)).substring (0, 2), 16); | ||
color[1] = parseInt ((trim(hex)).substring (2, 4), 16); | ||
color[2] = parseInt ((trim(hex)).substring (4, 6), 16); | ||
return color; | ||
} | ||
|
||
export function generateColor(colorStart,colorEnd,colorCount,index){ | ||
// The beginning of your gradient | ||
var start = convertToRGB (colorStart); | ||
|
||
// The end of your gradient | ||
var end = convertToRGB (colorEnd); | ||
|
||
// The number of colors to compute | ||
var len = colorCount; | ||
|
||
//Alpha blending amount | ||
var alpha = 0.0; | ||
|
||
var saida = []; | ||
|
||
for (let i = 0; i < len; i++) { | ||
var c = []; | ||
alpha += (1.0/len); | ||
|
||
c[0] = start[0] * alpha + (1 - alpha) * end[0]; | ||
c[1] = start[1] * alpha + (1 - alpha) * end[1]; | ||
c[2] = start[2] * alpha + (1 - alpha) * end[2]; | ||
|
||
saida.push(convertToHex (c)); | ||
|
||
} | ||
|
||
return saida[index]; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters