-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
souzatharsis
committed
Dec 26, 2024
1 parent
07f6240
commit b82c32c
Showing
56 changed files
with
2,914 additions
and
2,362 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+815 Bytes
(100%)
tamingllms/_build/.doctrees/notebooks/structured_output.doctree
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,58 @@ | ||
import React from 'react'; | ||
import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer } from 'recharts'; | ||
|
||
const MemoryUsageChart = () => { | ||
const data = [ | ||
{ name: 'F16', value: 141.1 }, | ||
{ name: 'Q8_0', value: 75.0 }, | ||
{ name: 'Q6_K', value: 59.9 }, | ||
{ name: 'Q5_K_M', value: 49.9 }, | ||
{ name: 'Q4_K_M', value: 42.5 }, | ||
{ name: 'Q3_K_M', value: 34.3 }, | ||
{ name: 'Q2_K', value: 26.4 } | ||
]; | ||
|
||
return ( | ||
<div className="w-full h-96 p-4"> | ||
<ResponsiveContainer width="100%" height="100%"> | ||
<LineChart data={data} margin={{ top: 20, right: 30, left: 20, bottom: 5 }}> | ||
<CartesianGrid strokeDasharray="3 3" /> | ||
<XAxis | ||
dataKey="name" | ||
tick={{ fontSize: 12, fontWeight: 'bold' }} | ||
/> | ||
<YAxis | ||
label={{ | ||
value: 'Model Size (GB)', | ||
angle: -90, | ||
position: 'insideLeft', | ||
style: { | ||
textAnchor: 'middle', | ||
fontWeight: 'bold' | ||
} | ||
}} | ||
tick={{ fontSize: 12, fontWeight: 'bold' }} | ||
/> | ||
<Tooltip | ||
formatter={(value) => [`${value} GB`, 'Model Size']} | ||
contentStyle={{ | ||
backgroundColor: '#fff', | ||
border: '1px solid #ccc', | ||
fontWeight: 'bold' | ||
}} | ||
/> | ||
<Line | ||
type="monotone" | ||
dataKey="value" | ||
stroke="#3eaf7c" | ||
strokeWidth={2} | ||
dot={{ fill: '#3eaf7c', r: 4 }} | ||
activeDot={{ r: 6 }} | ||
/> | ||
</LineChart> | ||
</ResponsiveContainer> | ||
</div> | ||
); | ||
}; | ||
|
||
export default MemoryUsageChart; |
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
Oops, something went wrong.