File size: 18,603 Bytes
65ff72e
 
 
 
 
6587afa
07cfcb7
65ff72e
6587afa
65ff72e
 
 
 
 
 
6587afa
65ff72e
6587afa
 
 
 
65ff72e
 
 
6587afa
65ff72e
 
 
6587afa
65ff72e
 
6587afa
65ff72e
6587afa
 
 
 
 
 
65ff72e
 
 
6587afa
 
 
65ff72e
 
6587afa
 
 
 
65ff72e
 
6587afa
 
 
 
 
 
 
 
 
65ff72e
 
6587afa
 
 
 
 
 
65ff72e
 
6587afa
 
 
 
 
 
 
65ff72e
 
6587afa
 
 
 
 
65ff72e
 
6587afa
 
 
65ff72e
 
6587afa
 
 
 
 
 
 
65ff72e
 
6587afa
 
 
 
65ff72e
 
6587afa
 
 
 
 
 
65ff72e
 
6587afa
 
 
 
 
 
 
 
65ff72e
 
6587afa
 
 
65ff72e
 
6587afa
 
 
65ff72e
 
6587afa
 
 
65ff72e
 
6587afa
 
 
 
 
 
 
65ff72e
 
6587afa
65ff72e
6587afa
65ff72e
 
 
6587afa
65ff72e
 
6587afa
 
65ff72e
 
6587afa
 
65ff72e
6587afa
 
 
 
65ff72e
 
6587afa
 
 
65ff72e
 
6587afa
 
 
65ff72e
 
6587afa
 
 
65ff72e
 
6587afa
 
 
65ff72e
 
6587afa
 
 
 
 
 
 
 
 
 
 
 
65ff72e
 
 
 
6587afa
 
 
 
 
 
 
65ff72e
 
 
 
 
 
 
6587afa
 
 
65ff72e
 
6587afa
 
 
 
 
65ff72e
 
 
6587afa
 
 
 
65ff72e
 
 
6587afa
 
 
 
65ff72e
 
 
6587afa
 
 
 
65ff72e
 
6587afa
65ff72e
6587afa
 
 
 
 
 
 
 
 
 
 
 
 
a784255
6587afa
 
 
 
e252947
65ff72e
6587afa
65ff72e
6587afa
 
 
 
e252947
 
 
 
6587afa
 
e252947
 
 
 
6587afa
 
 
e252947
 
 
65ff72e
 
 
6587afa
 
 
 
65ff72e
 
 
6587afa
 
 
 
 
a784255
6587afa
 
 
e252947
23f9c70
6587afa
 
 
 
 
e252947
23f9c70
6587afa
 
 
 
 
 
65ff72e
 
 
 
07cfcb7
65ff72e
23f9c70
65ff72e
6587afa
 
 
 
 
65ff72e
07cfcb7
65ff72e
6587afa
 
23f9c70
6587afa
 
23f9c70
6587afa
 
65ff72e
07cfcb7
6587afa
 
 
 
23f9c70
07cfcb7
65ff72e
23f9c70
6587afa
 
 
65ff72e
6587afa
 
 
 
 
 
 
 
 
 
a784255
6587afa
 
e252947
23f9c70
 
6587afa
 
 
 
 
 
 
 
 
65ff72e
6587afa
 
 
 
 
 
 
07cfcb7
6587afa
 
 
07cfcb7
6587afa
 
 
 
 
 
 
 
 
07cfcb7
 
6587afa
 
 
 
65ff72e
 
 
07cfcb7
6587afa
07cfcb7
6587afa
 
 
 
 
a784255
6587afa
 
 
e252947
23f9c70
6587afa
 
07cfcb7
6587afa
 
e252947
23f9c70
6587afa
 
 
 
 
 
 
 
 
 
 
 
 
07cfcb7
6587afa
 
 
 
 
07cfcb7
6587afa
 
 
 
 
 
 
 
 
07cfcb7
6587afa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
07cfcb7
6587afa
07cfcb7
6587afa
 
 
 
 
a784255
6587afa
 
e252947
23f9c70
 
6587afa
 
 
 
 
 
 
 
 
07cfcb7
6587afa
 
 
 
 
 
 
 
 
 
 
 
 
 
07cfcb7
6587afa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65ff72e
 
 
 
996422a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>SnowflakeCore vs GPT-2: Benchmark Results</title>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.9.1/chart.min.js"></script>
    <style>
        /* Basic Reset */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* Body Styling - Dark Theme */
        body {
            font-family: 'Inter', sans-serif; /* Using Inter for a modern, clean look */
            background-color: #1a1a2e; /* Dark background */
            min-height: 100vh;
            color: #e0e0e0; /* Light text for contrast */
            line-height: 1.6;
        }

        /* Container for overall layout */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        /* Header Section */
        .header {
            text-align: center;
            margin-bottom: 40px;
            background-color: #2a2a4a; /* Slightly lighter dark background for header */
            padding: 30px;
            border-radius: 10px; /* Softer rounded corners */
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Subtle shadow */
        }

        .header h1 {
            font-size: 2.5em;
            margin-bottom: 10px;
            color: #8be9fd; /* A cool blue for the title */
        }

        .header p {
            font-size: 1.1em;
            color: #b3b3b3; /* Lighter grey for subtitle */
            margin-bottom: 20px;
        }

        /* Highlight/Key Takeaway */
        .highlight {
            display: inline-block;
            background-color: #4CAF50; /* Green for positive highlight */
            color: white;
            padding: 8px 18px;
            border-radius: 5px; /* Less rounded, more serious */
            font-weight: bold;
            font-size: 0.9em;
        }

        /* Charts Grid Layout */
        .charts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); /* Adjusted min-width for better fit */
            gap: 30px;
            margin-bottom: 40px;
        }

        /* Individual Chart Container */
        .chart-container {
            background-color: #2a2a4a; /* Consistent background with header */
            padding: 25px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            transition: none; /* Removed hover animation */
        }

        .chart-container h3 {
            margin-bottom: 20px;
            font-size: 1.2em;
            text-align: center;
            color: #e0e0e0;
        }

        .chart-wrapper {
            position: relative;
            height: 350px; /* Slightly reduced height for compactness */
        }

        /* Summary Section */
        .summary {
            background-color: #2a2a4a;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            margin-top: 30px;
        }

        .summary h2 {
            margin-bottom: 20px;
            color: #e0e0e0;
            text-align: center;
        }

        /* Metrics Grid */
        .metrics-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 20px;
            margin: 20px 0;
        }

        /* Metric Card */
        .metric-card {
            background-color: #3a3a5a; /* Darker card background */
            color: #e0e0e0;
            padding: 20px;
            border-radius: 8px;
            text-align: center;
            border: 1px solid #4a4a6a; /* Subtle border */
        }

        .metric-card.winner {
            background-color: #388e3c; /* Darker green for winner */
            border-color: #4CAF50;
        }

        .metric-card h4 {
            margin-bottom: 8px;
            font-size: 1em;
        }

        .metric-card p {
            font-size: 0.85em;
            opacity: 0.9;
        }

        /* Model Specifications Section */
        .model-specs {
            background-color: #2a2a4a;
            padding: 25px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            margin-top: 30px;
        }

        .model-specs h2 {
            text-align: center;
            color: #e0e0e0;
            margin-bottom: 20px;
        }

        .specs-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        /* Individual Spec Item */
        .spec-item {
            text-align: center;
            padding: 15px;
            border: 1px solid #4a4a6a; /* Subtle border */
            border-radius: 8px;
            background-color: #3a3a5a;
        }

        .spec-item h4 {
            color: #e0e0e0;
            margin-bottom: 5px;
        }

        .spec-item p {
            font-size: 0.9em;
            color: #b3b3b3;
        }

        .spec-item.snowflake {
            border-color: #4CAF50; /* Green border for SnowflakeCore */
            background-color: #3a4a3a; /* Darker green tint */
        }

        .spec-item.gpt2 {
            border-color: #d32f2f; /* Red border for GPT-2 */
            background-color: #4a3a3a; /* Darker red tint */
        }

        /* Footer */
        .footer {
            text-align: center;
            margin-top: 40px;
            padding: 20px;
            background-color: #2a2a4a;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            color: #e0e0e0;
        }

        /* Responsive Adjustments */
        @media (max-width: 768px) {
            .charts-grid {
                grid-template-columns: 1fr;
            }

            .header h1 {
                font-size: 2em;
            }

            .chart-wrapper {
                height: 300px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>SnowflakeCore vs GPT-2</h1>
            <p>Comprehensive Benchmark Comparison</p>
            <div class="highlight">SnowflakeCore Demonstrates Strong Performance in Text Quality Metrics</div>
        </div>

        <div class="charts-grid">
            <div class="chart-container">
                <h3>N-gram Diversity Comparison</h3>
                <div class="chart-wrapper">
                    <canvas id="ngramChart"></canvas>
                </div>
            </div>

            <div class="chart-container">
                <h3>Text Generation Speed</h3>
                <div class="chart-wrapper">
                    <canvas id="speedChart"></canvas>
                </div>
            </div>

            <div class="chart-container">
                <h3>N-gram Repetition Rate</h3>
                <div class="chart-wrapper">
                    <canvas id="repetitionChart"></canvas>
                </div>
            </div>

            <div class="chart-container">
                <h3>Vocabulary Diversity</h3>
                <div class="chart-wrapper">
                    <canvas id="vocabChart"></canvas>
                </div>
            </div>
        </div>

        <div class="summary">
            <h2>Key Results Summary</h2>
            <div class="metrics-grid">
                <div class="metric-card winner">
                    <h4>Improved N-gram Diversity</h4>
                    <p>SnowflakeCore models show higher distinct bigram and trigram ratios.</p>
                </div>
                <div class="metric-card winner">
                    <h4>Reduced Repetition</h4>
                    <p>Significantly lower n-gram repetition rates, especially for trigrams.</p>
                </div>
                <div class="metric-card winner">
                    <h4>Enhanced Vocabulary Usage</h4>
                    <p>G1-Tiny2 achieves the highest vocabulary diversity ratio.</p>
                </div>
                <div class="metric-card">
                    <h4>Speed Comparison</h4>
                    <p>GPT-2 is faster at ~47 tok/sec compared to SnowflakeCore's ~22-23 tok/sec.</p>
                </div>
            </div>
        </div>

        <div class="model-specs">
            <h2>Model Specifications</h2>
            <div class="specs-grid">
                <div class="spec-item snowflake">
                    <h4>SnowflakeCore-G1-Tiny</h4>
                    <p><strong>Parameters:</strong> 355,871,744</p>
                    <p><strong>Size:</strong> 1357.54 MB</p>
                    <p><strong>Speed:</strong> 22.12 tok/sec</p>
                </div>
                <div class="spec-item snowflake">
                    <h4>SnowflakeCore-G1-Tiny2</h4>
                    <p><strong>Parameters:</strong> 355,871,744</p>
                    <p><strong>Size:</strong> 1357.54 MB</p>
                    <p><strong>Speed:</strong> 22.13 tok/sec</p>
                </div>
                <div class="spec-item gpt2">
                    <h4>GPT-2</h4>
                    <p><strong>Parameters:</strong> 124,439,808</p>
                    <p><strong>Size:</strong> 474.70 MB</p>
                    <p><strong>Speed:</strong> 47.73 tok/sec</p>
                </div>
            </div>
        </div>

        <div class="footer">
            <p><strong>Conclusion:</strong> SnowflakeCore demonstrates superior text quality metrics with comparable parameter efficiency, indicating architectural advancements over GPT-2 in these specific areas.</p>
        </div>
    </div>

    <script>
        // N-gram Diversity Chart
        const ngramCtx = document.getElementById('ngramChart').getContext('2d');
        new Chart(ngramCtx, {
            type: 'bar',
            data: {
                labels: ['G1-Tiny', 'G1-Tiny2', 'GPT-2'],
                datasets: [
                    {
                        label: 'Bigram',
                        data: [0.6111, 0.7408, 0.6408], /* Updated data */
                        backgroundColor: 'rgba(139, 233, 253, 0.7)', /* Consistent light blue */
                        borderColor: 'rgba(139, 233, 253, 1)',
                        borderWidth: 1
                    },
                    {
                        label: 'Trigram',
                        data: [0.7421, 0.8834, 0.7946], /* Updated data */
                        backgroundColor: 'rgba(80, 250, 123, 0.7)', /* Consistent green */
                        borderColor: 'rgba(80, 250, 123, 1)',
                        borderWidth: 1
                    }
                ]
            },
            options: {
                responsive: true,
                maintainAspectRatio: false,
                plugins: {
                    legend: {
                        position: 'top',
                        labels: {
                            color: '#e0e0e0'
                        }
                    },
                    tooltip: {
                        backgroundColor: 'rgba(0,0,0,0.8)',
                        titleColor: '#e0e0e0',
                        bodyColor: '#e0e0e0'
                    }
                },
                scales: {
                    x: {
                        ticks: {
                            color: '#e0e0e0'
                        },
                        grid: {
                            color: 'rgba(255, 255, 255, 0.1)'
                        }
                    },
                    y: {
                        beginAtZero: true,
                        max: 1,
                        title: {
                            display: true,
                            text: 'Distinct N-gram Ratio',
                            color: '#e0e0e0'
                        },
                        ticks: {
                            color: '#e0e0e0'
                        },
                        grid: {
                            color: 'rgba(255, 255, 255, 0.1)'
                        }
                    }
                }
            }
        });

        // Speed Chart
        const speedCtx = document.getElementById('speedChart').getContext('2d');
        new Chart(speedCtx, {
            type: 'bar',
            data: {
                labels: ['G1-Tiny', 'G1-Tiny2', 'GPT-2'],
                datasets: [{
                    label: 'Tokens per Second',
                    data: [22.12, 22.13, 47.73], /* Updated data */
                    backgroundColor: 'rgba(139, 233, 253, 0.7)', /* Single color for all bars */
                    borderColor: 'rgba(139, 233, 253, 1)',
                    borderWidth: 1
                }]
            },
            options: {
                responsive: true,
                maintainAspectRatio: false,
                plugins: {
                    legend: {
                        display: false
                    },
                    tooltip: {
                        backgroundColor: 'rgba(0,0,0,0.8)',
                        titleColor: '#e0e0e0',
                        bodyColor: '#e0e0e0'
                    }
                },
                scales: {
                    x: {
                        ticks: {
                            color: '#e0e0e0'
                        },
                        grid: {
                            color: 'rgba(255, 255, 255, 0.1)'
                        }
                    },
                    y: {
                        beginAtZero: true,
                        title: {
                            display: true,
                            text: 'Average Tokens per Second',
                            color: '#e0e0e0'
                        },
                        ticks: {
                            color: '#e0e0e0'
                        },
                        grid: {
                            color: 'rgba(255, 255, 255, 0.1)'
                        }
                    }
                }
            }
        });

        // Repetition Chart
        const repetitionCtx = document.getElementById('repetitionChart').getContext('2d');
        new Chart(repetitionCtx, {
            type: 'bar',
            data: {
                labels: ['G1-Tiny', 'G1-Tiny2', 'GPT-2'],
                datasets: [
                    {
                        label: 'Bigram',
                        data: [0.3889, 0.2592, 0.3592], /* Updated data */
                        backgroundColor: 'rgba(189, 147, 249, 0.7)', /* Consistent purple */
                        borderColor: 'rgba(189, 147, 249, 1)',
                        borderWidth: 1
                    },
                    {
                        label: 'Trigram',
                        data: [0.2579, 0.1166, 0.2054], /* Updated data */
                        backgroundColor: 'rgba(255, 85, 85, 0.7)', /* Consistent red */
                        borderColor: 'rgba(255, 85, 85, 1)',
                        borderWidth: 1
                    }
                ]
            },
            options: {
                responsive: true,
                maintainAspectRatio: false,
                plugins: {
                    legend: {
                        position: 'top',
                        labels: {
                            color: '#e0e0e0'
                        }
                    },
                    tooltip: {
                        backgroundColor: 'rgba(0,0,0,0.8)',
                        titleColor: '#e0e0e0',
                        bodyColor: '#e0e0e0'
                    }
                },
                scales: {
                    x: {
                        ticks: {
                            color: '#e0e0e0'
                        },
                        grid: {
                            color: 'rgba(255, 255, 255, 0.1)'
                        }
                    },
                    y: {
                        beginAtZero: true,
                        max: 0.45,
                        title: {
                            display: true,
                            text: 'Repetition Rate',
                            color: '#e0e0e0'
                        },
                        ticks: {
                            color: '#e0e0e0'
                        },
                        grid: {
                            color: 'rgba(255, 255, 255, 0.1)'
                        }
                    }
                }
            }
        });

        // Vocabulary Chart
        const vocabCtx = document.getElementById('vocabChart').getContext('2d');
        new Chart(vocabCtx, {
            type: 'bar',
            data: {
                labels: ['G1-Tiny', 'G1-Tiny2', 'GPT-2'],
                datasets: [{
                    label: 'Vocabulary Diversity Ratio',
                    data: [0.2780, 0.3440, 0.2590], /* Updated data */
                    backgroundColor: 'rgba(80, 250, 123, 0.7)', /* Single color for all bars */
                    borderColor: 'rgba(80, 250, 123, 1)',
                    borderWidth: 1
                }]
            },
            options: {
                responsive: true,
                maintainAspectRatio: false,
                plugins: {
                    legend: {
                        display: false
                    },
                    tooltip: {
                        backgroundColor: 'rgba(0,0,0,0.8)',
                        titleColor: '#e0e0e0',
                        bodyColor: '#e0e0e0'
                    }
                },
                scales: {
                    x: {
                        ticks: {
                            color: '#e0e0e0'
                        },
                        grid: {
                            color: 'rgba(255, 255, 255, 0.1)'
                        }
                    },
                    y: {
                        beginAtZero: true,
                        max: 0.4,
                        title: {
                            display: true,
                            text: 'Vocabulary Diversity Ratio',
                            color: '#e0e0e0'
                        },
                        ticks: {
                            color: '#e0e0e0'
                        },
                        grid: {
                            color: 'rgba(255, 255, 255, 0.1)'
                        }
                    }
                }
            }
        });
    </script>
</body>
</html>