dark-mode
#82
by
serhany
- opened
- dist/index.html +72 -0
- src/index.html +72 -0
dist/index.html
CHANGED
|
@@ -5,14 +5,86 @@
|
|
| 5 |
<script src="distill.bundle.js" type="module" fetchpriority="high" blocking></script>
|
| 6 |
<script src="main.bundle.js" type="module" fetchpriority="low" defer></script>
|
| 7 |
<script src="https://cdn.plot.ly/plotly-3.0.0.min.js" charset="utf-8"></script>
|
|
|
|
| 8 |
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 9 |
<meta charset="utf8">
|
| 10 |
<base target="_blank">
|
| 11 |
<title>The Ultra-Scale Playbook: Training LLMs on GPU Clusters</title>
|
| 12 |
<link rel="stylesheet" href="style.css">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
</head>
|
| 14 |
|
| 15 |
<body>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
<d-front-matter>
|
| 17 |
<script id='distill-front-matter' type="text/json">{
|
| 18 |
"title": "The Ultra-Scale Playbook: Training LLMs on GPU Clusters",
|
|
|
|
| 5 |
<script src="distill.bundle.js" type="module" fetchpriority="high" blocking></script>
|
| 6 |
<script src="main.bundle.js" type="module" fetchpriority="low" defer></script>
|
| 7 |
<script src="https://cdn.plot.ly/plotly-3.0.0.min.js" charset="utf-8"></script>
|
| 8 |
+
<script src="https://unpkg.com/darkreader/darkreader.js"></script>
|
| 9 |
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 10 |
<meta charset="utf8">
|
| 11 |
<base target="_blank">
|
| 12 |
<title>The Ultra-Scale Playbook: Training LLMs on GPU Clusters</title>
|
| 13 |
<link rel="stylesheet" href="style.css">
|
| 14 |
+
<style>
|
| 15 |
+
.toggle-button {
|
| 16 |
+
position: fixed;
|
| 17 |
+
top: 20px;
|
| 18 |
+
left: 20px;
|
| 19 |
+
width: 40px;
|
| 20 |
+
height: 40px;
|
| 21 |
+
background-color: transparent;
|
| 22 |
+
border: none;
|
| 23 |
+
cursor: pointer;
|
| 24 |
+
display: flex;
|
| 25 |
+
align-items: center;
|
| 26 |
+
justify-content: center;
|
| 27 |
+
z-index: 1000;
|
| 28 |
+
outline: none;
|
| 29 |
+
}
|
| 30 |
+
.toggle-button svg {
|
| 31 |
+
width: 24px;
|
| 32 |
+
height: 24px;
|
| 33 |
+
}
|
| 34 |
+
</style>
|
| 35 |
</head>
|
| 36 |
|
| 37 |
<body>
|
| 38 |
+
<button id="darkModeToggle" class="toggle-button">
|
| 39 |
+
<!-- sun icon -->
|
| 40 |
+
<svg id="sunIcon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
| 41 |
+
<circle cx="12" cy="12" r="5"></circle>
|
| 42 |
+
<line x1="12" y1="1" x2="12" y2="3"></line>
|
| 43 |
+
<line x1="12" y1="21" x2="12" y2="23"></line>
|
| 44 |
+
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
|
| 45 |
+
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
|
| 46 |
+
<line x1="1" y1="12" x2="3" y2="12"></line>
|
| 47 |
+
<line x1="21" y1="12" x2="23" y2="12"></line>
|
| 48 |
+
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
|
| 49 |
+
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
|
| 50 |
+
</svg>
|
| 51 |
+
<!-- moon icon -->
|
| 52 |
+
<svg id="moonIcon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display: none;">
|
| 53 |
+
<path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"></path>
|
| 54 |
+
</svg>
|
| 55 |
+
</button>
|
| 56 |
+
|
| 57 |
+
<script>
|
| 58 |
+
// check localStorage to see if the user had a preference from before
|
| 59 |
+
let darkModeEnabled = localStorage.getItem('darkModeEnabled') === 'true';
|
| 60 |
+
|
| 61 |
+
const toggleButton = document.getElementById('darkModeToggle');
|
| 62 |
+
const sunIcon = document.getElementById('sunIcon');
|
| 63 |
+
const moonIcon = document.getElementById('moonIcon');
|
| 64 |
+
|
| 65 |
+
const updateDarkMode = () => {
|
| 66 |
+
if (darkModeEnabled) {
|
| 67 |
+
DarkReader.enable({ brightness: 100, contrast: 90, sepia: 10 });
|
| 68 |
+
sunIcon.style.display = 'none';
|
| 69 |
+
moonIcon.style.display = 'block';
|
| 70 |
+
} else {
|
| 71 |
+
DarkReader.disable();
|
| 72 |
+
sunIcon.style.display = 'block';
|
| 73 |
+
moonIcon.style.display = 'none';
|
| 74 |
+
}
|
| 75 |
+
};
|
| 76 |
+
|
| 77 |
+
// initialize dark mode based on the stored preference
|
| 78 |
+
document.addEventListener('DOMContentLoaded', updateDarkMode);
|
| 79 |
+
|
| 80 |
+
// toggle dark mode and update localStorage on button click
|
| 81 |
+
toggleButton.addEventListener('click', () => {
|
| 82 |
+
darkModeEnabled = !darkModeEnabled;
|
| 83 |
+
localStorage.setItem('darkModeEnabled', darkModeEnabled);
|
| 84 |
+
updateDarkMode();
|
| 85 |
+
});
|
| 86 |
+
</script>
|
| 87 |
+
|
| 88 |
<d-front-matter>
|
| 89 |
<script id='distill-front-matter' type="text/json">{
|
| 90 |
"title": "The Ultra-Scale Playbook: Training LLMs on GPU Clusters",
|
src/index.html
CHANGED
|
@@ -5,14 +5,86 @@
|
|
| 5 |
<script src="distill.bundle.js" type="module" fetchpriority="high" blocking></script>
|
| 6 |
<script src="main.bundle.js" type="module" fetchpriority="low" defer></script>
|
| 7 |
<script src="https://cdn.plot.ly/plotly-3.0.0.min.js" charset="utf-8"></script>
|
|
|
|
| 8 |
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 9 |
<meta charset="utf8">
|
| 10 |
<base target="_blank">
|
| 11 |
<title>The Ultra-Scale Playbook: Training LLMs on GPU Clusters</title>
|
| 12 |
<link rel="stylesheet" href="style.css">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
</head>
|
| 14 |
|
| 15 |
<body>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
<d-front-matter>
|
| 17 |
<script id='distill-front-matter' type="text/json">{
|
| 18 |
"title": "The Ultra-Scale Playbook: Training LLMs on GPU Clusters",
|
|
|
|
| 5 |
<script src="distill.bundle.js" type="module" fetchpriority="high" blocking></script>
|
| 6 |
<script src="main.bundle.js" type="module" fetchpriority="low" defer></script>
|
| 7 |
<script src="https://cdn.plot.ly/plotly-3.0.0.min.js" charset="utf-8"></script>
|
| 8 |
+
<script src="https://unpkg.com/darkreader/darkreader.js"></script>
|
| 9 |
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 10 |
<meta charset="utf8">
|
| 11 |
<base target="_blank">
|
| 12 |
<title>The Ultra-Scale Playbook: Training LLMs on GPU Clusters</title>
|
| 13 |
<link rel="stylesheet" href="style.css">
|
| 14 |
+
<style>
|
| 15 |
+
.toggle-button {
|
| 16 |
+
position: fixed;
|
| 17 |
+
top: 20px;
|
| 18 |
+
left: 20px;
|
| 19 |
+
width: 40px;
|
| 20 |
+
height: 40px;
|
| 21 |
+
background-color: transparent;
|
| 22 |
+
border: none;
|
| 23 |
+
cursor: pointer;
|
| 24 |
+
display: flex;
|
| 25 |
+
align-items: center;
|
| 26 |
+
justify-content: center;
|
| 27 |
+
z-index: 1000;
|
| 28 |
+
outline: none;
|
| 29 |
+
}
|
| 30 |
+
.toggle-button svg {
|
| 31 |
+
width: 24px;
|
| 32 |
+
height: 24px;
|
| 33 |
+
}
|
| 34 |
+
</style>
|
| 35 |
</head>
|
| 36 |
|
| 37 |
<body>
|
| 38 |
+
<button id="darkModeToggle" class="toggle-button">
|
| 39 |
+
<!-- sun icon -->
|
| 40 |
+
<svg id="sunIcon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
| 41 |
+
<circle cx="12" cy="12" r="5"></circle>
|
| 42 |
+
<line x1="12" y1="1" x2="12" y2="3"></line>
|
| 43 |
+
<line x1="12" y1="21" x2="12" y2="23"></line>
|
| 44 |
+
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
|
| 45 |
+
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
|
| 46 |
+
<line x1="1" y1="12" x2="3" y2="12"></line>
|
| 47 |
+
<line x1="21" y1="12" x2="23" y2="12"></line>
|
| 48 |
+
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
|
| 49 |
+
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
|
| 50 |
+
</svg>
|
| 51 |
+
<!-- moon icon -->
|
| 52 |
+
<svg id="moonIcon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display: none;">
|
| 53 |
+
<path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"></path>
|
| 54 |
+
</svg>
|
| 55 |
+
</button>
|
| 56 |
+
|
| 57 |
+
<script>
|
| 58 |
+
// check localStorage to see if the user had a preference from before
|
| 59 |
+
let darkModeEnabled = localStorage.getItem('darkModeEnabled') === 'true';
|
| 60 |
+
|
| 61 |
+
const toggleButton = document.getElementById('darkModeToggle');
|
| 62 |
+
const sunIcon = document.getElementById('sunIcon');
|
| 63 |
+
const moonIcon = document.getElementById('moonIcon');
|
| 64 |
+
|
| 65 |
+
const updateDarkMode = () => {
|
| 66 |
+
if (darkModeEnabled) {
|
| 67 |
+
DarkReader.enable({ brightness: 100, contrast: 90, sepia: 10 });
|
| 68 |
+
sunIcon.style.display = 'none';
|
| 69 |
+
moonIcon.style.display = 'block';
|
| 70 |
+
} else {
|
| 71 |
+
DarkReader.disable();
|
| 72 |
+
sunIcon.style.display = 'block';
|
| 73 |
+
moonIcon.style.display = 'none';
|
| 74 |
+
}
|
| 75 |
+
};
|
| 76 |
+
|
| 77 |
+
// initialize dark mode based on the stored preference
|
| 78 |
+
document.addEventListener('DOMContentLoaded', updateDarkMode);
|
| 79 |
+
|
| 80 |
+
// toggle dark mode and update localStorage on button click
|
| 81 |
+
toggleButton.addEventListener('click', () => {
|
| 82 |
+
darkModeEnabled = !darkModeEnabled;
|
| 83 |
+
localStorage.setItem('darkModeEnabled', darkModeEnabled);
|
| 84 |
+
updateDarkMode();
|
| 85 |
+
});
|
| 86 |
+
</script>
|
| 87 |
+
|
| 88 |
<d-front-matter>
|
| 89 |
<script id='distill-front-matter' type="text/json">{
|
| 90 |
"title": "The Ultra-Scale Playbook: Training LLMs on GPU Clusters",
|