362 lines
9.5 KiB
JSON
362 lines
9.5 KiB
JSON
|
|
{
|
||
|
|
"type": "excalidraw",
|
||
|
|
"version": 2,
|
||
|
|
"source": "https://marketplace.visualstudio.com/items?itemName=pomdtr.excalidraw-editor",
|
||
|
|
"elements": [
|
||
|
|
{
|
||
|
|
"id": "EcT-dGsjmfW571ov8Gg4F",
|
||
|
|
"type": "text",
|
||
|
|
"x": 425.5,
|
||
|
|
"y": 130,
|
||
|
|
"width": 506,
|
||
|
|
"height": 550,
|
||
|
|
"angle": 0,
|
||
|
|
"strokeColor": "#1e1e1e",
|
||
|
|
"backgroundColor": "transparent",
|
||
|
|
"fillStyle": "solid",
|
||
|
|
"strokeWidth": 2,
|
||
|
|
"strokeStyle": "solid",
|
||
|
|
"roughness": 1,
|
||
|
|
"opacity": 100,
|
||
|
|
"groupIds": [
|
||
|
|
"4rCC2-N1thmII8_dwNhe1"
|
||
|
|
],
|
||
|
|
"frameId": null,
|
||
|
|
"index": "a3V",
|
||
|
|
"roundness": null,
|
||
|
|
"seed": 523521109,
|
||
|
|
"version": 758,
|
||
|
|
"versionNonce": 383976373,
|
||
|
|
"isDeleted": false,
|
||
|
|
"boundElements": [
|
||
|
|
{
|
||
|
|
"id": "OA_NKjb3n3NLtUo_tKmPS",
|
||
|
|
"type": "arrow"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"updated": 1758823931674,
|
||
|
|
"link": null,
|
||
|
|
"locked": false,
|
||
|
|
"text": "class NanoSocratesBPE:\n - vocabulary: Vocabulary\n\n - max_iterations: int\n - max_vocabulary_size: int\n - merge_treshold: int\n\n - reserve_capacity: float\n - token_length: int\n\n + fit(\n data: [[int]], \n memory: NanoSocratesBPE_BatchMemory, \n last_batch: bool\n ) -> (Self, NanoSocratesBPE_BatchMemory)\n\n + encode(word: [byte]) -> [int]\n\n + decode(token: [int]) -> [byte]\n\n \n",
|
||
|
|
"fontSize": 20,
|
||
|
|
"fontFamily": 8,
|
||
|
|
"textAlign": "left",
|
||
|
|
"verticalAlign": "top",
|
||
|
|
"containerId": null,
|
||
|
|
"originalText": "class NanoSocratesBPE:\n - vocabulary: Vocabulary\n\n - max_iterations: int\n - max_vocabulary_size: int\n - merge_treshold: int\n\n - reserve_capacity: float\n - token_length: int\n\n + fit(\n data: [[int]], \n memory: NanoSocratesBPE_BatchMemory, \n last_batch: bool\n ) -> (Self, NanoSocratesBPE_BatchMemory)\n\n + encode(word: [byte]) -> [int]\n\n + decode(token: [int]) -> [byte]\n\n \n",
|
||
|
|
"autoResize": true,
|
||
|
|
"lineHeight": 1.25
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "74i4oK-JpcM4CgAqhz_x_",
|
||
|
|
"type": "rectangle",
|
||
|
|
"x": 382.5,
|
||
|
|
"y": 104,
|
||
|
|
"width": 592.5,
|
||
|
|
"height": 555,
|
||
|
|
"angle": 0,
|
||
|
|
"strokeColor": "#1e1e1e",
|
||
|
|
"backgroundColor": "transparent",
|
||
|
|
"fillStyle": "solid",
|
||
|
|
"strokeWidth": 2,
|
||
|
|
"strokeStyle": "solid",
|
||
|
|
"roughness": 1,
|
||
|
|
"opacity": 100,
|
||
|
|
"groupIds": [
|
||
|
|
"4rCC2-N1thmII8_dwNhe1"
|
||
|
|
],
|
||
|
|
"frameId": null,
|
||
|
|
"index": "a4",
|
||
|
|
"roundness": {
|
||
|
|
"type": 3
|
||
|
|
},
|
||
|
|
"seed": 50827893,
|
||
|
|
"version": 212,
|
||
|
|
"versionNonce": 692313525,
|
||
|
|
"isDeleted": false,
|
||
|
|
"boundElements": null,
|
||
|
|
"updated": 1758822941942,
|
||
|
|
"link": null,
|
||
|
|
"locked": false
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "s8I1JoKulE3Vnti9a374p",
|
||
|
|
"type": "text",
|
||
|
|
"x": 1113,
|
||
|
|
"y": 128,
|
||
|
|
"width": 440,
|
||
|
|
"height": 250,
|
||
|
|
"angle": 0,
|
||
|
|
"strokeColor": "#1e1e1e",
|
||
|
|
"backgroundColor": "transparent",
|
||
|
|
"fillStyle": "solid",
|
||
|
|
"strokeWidth": 2,
|
||
|
|
"strokeStyle": "solid",
|
||
|
|
"roughness": 1,
|
||
|
|
"opacity": 100,
|
||
|
|
"groupIds": [
|
||
|
|
"M6w9efVFwOZHkJGgwkyEw"
|
||
|
|
],
|
||
|
|
"frameId": null,
|
||
|
|
"index": "a5",
|
||
|
|
"roundness": null,
|
||
|
|
"seed": 2091174261,
|
||
|
|
"version": 442,
|
||
|
|
"versionNonce": 1108352309,
|
||
|
|
"isDeleted": false,
|
||
|
|
"boundElements": null,
|
||
|
|
"updated": 1758822765308,
|
||
|
|
"link": null,
|
||
|
|
"locked": false,
|
||
|
|
"text": "class Vocabulary:\n\n - vocabulary: dict<int, int>\n - reverse_vocabulary: dict<int, int>\n\n + add_word(int) -> int\n + encode(int) -> int\n + decode(int) -> int\n\n",
|
||
|
|
"fontSize": 20,
|
||
|
|
"fontFamily": 8,
|
||
|
|
"textAlign": "left",
|
||
|
|
"verticalAlign": "top",
|
||
|
|
"containerId": null,
|
||
|
|
"originalText": "class Vocabulary:\n\n - vocabulary: dict<int, int>\n - reverse_vocabulary: dict<int, int>\n\n + add_word(int) -> int\n + encode(int) -> int\n + decode(int) -> int\n\n",
|
||
|
|
"autoResize": true,
|
||
|
|
"lineHeight": 1.25
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "BY_Why7XDNftdMzPcwjVZ",
|
||
|
|
"type": "rectangle",
|
||
|
|
"x": 1086.5,
|
||
|
|
"y": 104,
|
||
|
|
"width": 504.5,
|
||
|
|
"height": 260.5,
|
||
|
|
"angle": 0,
|
||
|
|
"strokeColor": "#1e1e1e",
|
||
|
|
"backgroundColor": "transparent",
|
||
|
|
"fillStyle": "solid",
|
||
|
|
"strokeWidth": 2,
|
||
|
|
"strokeStyle": "solid",
|
||
|
|
"roughness": 1,
|
||
|
|
"opacity": 100,
|
||
|
|
"groupIds": [
|
||
|
|
"M6w9efVFwOZHkJGgwkyEw"
|
||
|
|
],
|
||
|
|
"frameId": null,
|
||
|
|
"index": "a6",
|
||
|
|
"roundness": {
|
||
|
|
"type": 3
|
||
|
|
},
|
||
|
|
"seed": 153939611,
|
||
|
|
"version": 153,
|
||
|
|
"versionNonce": 1903356469,
|
||
|
|
"isDeleted": false,
|
||
|
|
"boundElements": [
|
||
|
|
{
|
||
|
|
"id": "WcDks9DR8UqeZEaxAcRf9",
|
||
|
|
"type": "arrow"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"updated": 1758822805382,
|
||
|
|
"link": null,
|
||
|
|
"locked": false
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "JCPDhuTKRx4MN950Q3jL-",
|
||
|
|
"type": "text",
|
||
|
|
"x": 1116.411067193676,
|
||
|
|
"y": 535.1519268774704,
|
||
|
|
"width": 427.72826086956525,
|
||
|
|
"height": 99.70355731225297,
|
||
|
|
"angle": 0,
|
||
|
|
"strokeColor": "#1e1e1e",
|
||
|
|
"backgroundColor": "transparent",
|
||
|
|
"fillStyle": "solid",
|
||
|
|
"strokeWidth": 2,
|
||
|
|
"strokeStyle": "solid",
|
||
|
|
"roughness": 1,
|
||
|
|
"opacity": 100,
|
||
|
|
"groupIds": [
|
||
|
|
"DbtlKVF_9SjH2-9iMq9zy"
|
||
|
|
],
|
||
|
|
"frameId": null,
|
||
|
|
"index": "a7",
|
||
|
|
"roundness": null,
|
||
|
|
"seed": 1326854235,
|
||
|
|
"version": 345,
|
||
|
|
"versionNonce": 592556603,
|
||
|
|
"isDeleted": false,
|
||
|
|
"boundElements": null,
|
||
|
|
"updated": 1758822845014,
|
||
|
|
"link": null,
|
||
|
|
"locked": false,
|
||
|
|
"text": "class NanoSocrateBPE_BatchMemory:\n\n + max_word_length: int\n + frequency: dict<(int, int), int> ",
|
||
|
|
"fontSize": 19.940711462450594,
|
||
|
|
"fontFamily": 8,
|
||
|
|
"textAlign": "left",
|
||
|
|
"verticalAlign": "top",
|
||
|
|
"containerId": null,
|
||
|
|
"originalText": "class NanoSocrateBPE_BatchMemory:\n\n + max_word_length: int\n + frequency: dict<(int, int), int> ",
|
||
|
|
"autoResize": true,
|
||
|
|
"lineHeight": 1.25
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "l-O0rMS3SruV22_MPX9Jz",
|
||
|
|
"type": "rectangle",
|
||
|
|
"x": 1086.5,
|
||
|
|
"y": 509.22900197628456,
|
||
|
|
"width": 504.49999999999994,
|
||
|
|
"height": 154.04199604743084,
|
||
|
|
"angle": 0,
|
||
|
|
"strokeColor": "#1e1e1e",
|
||
|
|
"backgroundColor": "transparent",
|
||
|
|
"fillStyle": "solid",
|
||
|
|
"strokeWidth": 2,
|
||
|
|
"strokeStyle": "solid",
|
||
|
|
"roughness": 1,
|
||
|
|
"opacity": 100,
|
||
|
|
"groupIds": [
|
||
|
|
"DbtlKVF_9SjH2-9iMq9zy"
|
||
|
|
],
|
||
|
|
"frameId": null,
|
||
|
|
"index": "a8",
|
||
|
|
"roundness": {
|
||
|
|
"type": 3
|
||
|
|
},
|
||
|
|
"seed": 1490898171,
|
||
|
|
"version": 186,
|
||
|
|
"versionNonce": 1953870555,
|
||
|
|
"isDeleted": false,
|
||
|
|
"boundElements": [
|
||
|
|
{
|
||
|
|
"id": "OA_NKjb3n3NLtUo_tKmPS",
|
||
|
|
"type": "arrow"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"updated": 1758822845014,
|
||
|
|
"link": null,
|
||
|
|
"locked": false
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "WcDks9DR8UqeZEaxAcRf9",
|
||
|
|
"type": "arrow",
|
||
|
|
"x": 773.5,
|
||
|
|
"y": 167,
|
||
|
|
"width": 298.5,
|
||
|
|
"height": 30,
|
||
|
|
"angle": 0,
|
||
|
|
"strokeColor": "#1e1e1e",
|
||
|
|
"backgroundColor": "transparent",
|
||
|
|
"fillStyle": "solid",
|
||
|
|
"strokeWidth": 2,
|
||
|
|
"strokeStyle": "solid",
|
||
|
|
"roughness": 1,
|
||
|
|
"opacity": 100,
|
||
|
|
"groupIds": [],
|
||
|
|
"frameId": null,
|
||
|
|
"index": "aB",
|
||
|
|
"roundness": {
|
||
|
|
"type": 2
|
||
|
|
},
|
||
|
|
"seed": 1681364149,
|
||
|
|
"version": 205,
|
||
|
|
"versionNonce": 1154753851,
|
||
|
|
"isDeleted": false,
|
||
|
|
"boundElements": [],
|
||
|
|
"updated": 1758823291274,
|
||
|
|
"link": null,
|
||
|
|
"locked": false,
|
||
|
|
"points": [
|
||
|
|
[
|
||
|
|
0,
|
||
|
|
0
|
||
|
|
],
|
||
|
|
[
|
||
|
|
144.5,
|
||
|
|
-1.5
|
||
|
|
],
|
||
|
|
[
|
||
|
|
177.5,
|
||
|
|
-30
|
||
|
|
],
|
||
|
|
[
|
||
|
|
298.5,
|
||
|
|
-29.5
|
||
|
|
]
|
||
|
|
],
|
||
|
|
"lastCommittedPoint": null,
|
||
|
|
"startBinding": null,
|
||
|
|
"endBinding": {
|
||
|
|
"elementId": "BY_Why7XDNftdMzPcwjVZ",
|
||
|
|
"focus": 0.7285094931977862,
|
||
|
|
"gap": 14.5
|
||
|
|
},
|
||
|
|
"startArrowhead": null,
|
||
|
|
"endArrowhead": "triangle",
|
||
|
|
"elbowed": false
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "OA_NKjb3n3NLtUo_tKmPS",
|
||
|
|
"type": "arrow",
|
||
|
|
"x": 941,
|
||
|
|
"y": 440.7646462573778,
|
||
|
|
"width": 132.9833600541258,
|
||
|
|
"height": 105.33206183359624,
|
||
|
|
"angle": 0,
|
||
|
|
"strokeColor": "#1e1e1e",
|
||
|
|
"backgroundColor": "transparent",
|
||
|
|
"fillStyle": "solid",
|
||
|
|
"strokeWidth": 2,
|
||
|
|
"strokeStyle": "solid",
|
||
|
|
"roughness": 1,
|
||
|
|
"opacity": 100,
|
||
|
|
"groupIds": [],
|
||
|
|
"frameId": null,
|
||
|
|
"index": "aD",
|
||
|
|
"roundness": {
|
||
|
|
"type": 2
|
||
|
|
},
|
||
|
|
"seed": 1871768059,
|
||
|
|
"version": 402,
|
||
|
|
"versionNonce": 462603541,
|
||
|
|
"isDeleted": false,
|
||
|
|
"boundElements": [],
|
||
|
|
"updated": 1758823931675,
|
||
|
|
"link": null,
|
||
|
|
"locked": false,
|
||
|
|
"points": [
|
||
|
|
[
|
||
|
|
0,
|
||
|
|
0
|
||
|
|
],
|
||
|
|
[
|
||
|
|
53,
|
||
|
|
8.23535374262218
|
||
|
|
],
|
||
|
|
[
|
||
|
|
63,
|
||
|
|
97.73535374262218
|
||
|
|
],
|
||
|
|
[
|
||
|
|
132.9833600541258,
|
||
|
|
105.33206183359624
|
||
|
|
]
|
||
|
|
],
|
||
|
|
"lastCommittedPoint": null,
|
||
|
|
"startBinding": {
|
||
|
|
"elementId": "EcT-dGsjmfW571ov8Gg4F",
|
||
|
|
"focus": -0.01598303536344995,
|
||
|
|
"gap": 9.500000000000114
|
||
|
|
},
|
||
|
|
"endBinding": {
|
||
|
|
"elementId": "l-O0rMS3SruV22_MPX9Jz",
|
||
|
|
"focus": 0.10931526948750278,
|
||
|
|
"gap": 13.22003639101672
|
||
|
|
},
|
||
|
|
"startArrowhead": null,
|
||
|
|
"endArrowhead": "triangle",
|
||
|
|
"elbowed": false
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"appState": {
|
||
|
|
"gridSize": 20,
|
||
|
|
"gridStep": 5,
|
||
|
|
"gridModeEnabled": false,
|
||
|
|
"viewBackgroundColor": "#ffffff"
|
||
|
|
},
|
||
|
|
"files": {}
|
||
|
|
}
|