Skip to content

Commit 67aa40b

Browse files
authored
Merge pull request #153 from uw-ssec/workshop-m1p4-tweaks
Tweaks to module 1 page 4
2 parents 078336f + 9cc7b4b commit 67aa40b

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

AI_Postdoc_Workshop/module1/4-algorithms-prompting-with-olmo.ipynb

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"* Which search algorithms are better choices for sorted data vs for unsorted data, and why?\n",
2323
"* Explain why binary search's time complexity is O(logn) on a sorted set.\n",
2424
"* Does recursion make space complexity a more or less important consideration, and why?\n",
25-
"* Which data structures have the most efficient lookup time?"
25+
"* Which data structures have the most efficient lookup time?\n",
26+
"* What is circuit satisfiability?"
2627
]
2728
},
2829
{
@@ -48,7 +49,7 @@
4849
},
4950
{
5051
"cell_type": "code",
51-
"execution_count": 1,
52+
"execution_count": null,
5253
"metadata": {},
5354
"outputs": [],
5455
"source": [
@@ -85,8 +86,8 @@
8586
" callbacks=[StreamingStdOutCallbackHandler()],\n",
8687
" temperature=0.8,\n",
8788
" verbose=False,\n",
88-
" n_ctx=2048,\n",
89-
" max_tokens=512,\n",
89+
" n_ctx=2048, # input context length\n",
90+
" max_tokens=512, # max tokens to generate\n",
9091
")"
9192
]
9293
},
@@ -100,7 +101,7 @@
100101
},
101102
{
102103
"cell_type": "code",
103-
"execution_count": 5,
104+
"execution_count": null,
104105
"metadata": {},
105106
"outputs": [],
106107
"source": [
@@ -109,7 +110,7 @@
109110
},
110111
{
111112
"cell_type": "code",
112-
"execution_count": 6,
113+
"execution_count": null,
113114
"metadata": {},
114115
"outputs": [],
115116
"source": [
@@ -151,7 +152,7 @@
151152
},
152153
{
153154
"cell_type": "code",
154-
"execution_count": 8,
155+
"execution_count": null,
155156
"metadata": {},
156157
"outputs": [],
157158
"source": [
@@ -168,7 +169,7 @@
168169
},
169170
{
170171
"cell_type": "code",
171-
"execution_count": 9,
172+
"execution_count": null,
172173
"metadata": {},
173174
"outputs": [],
174175
"source": [
@@ -208,7 +209,7 @@
208209
},
209210
{
210211
"cell_type": "code",
211-
"execution_count": 11,
212+
"execution_count": null,
212213
"metadata": {},
213214
"outputs": [],
214215
"source": [
@@ -266,7 +267,7 @@
266267
},
267268
{
268269
"cell_type": "code",
269-
"execution_count": 13,
270+
"execution_count": null,
270271
"metadata": {},
271272
"outputs": [],
272273
"source": [
@@ -300,7 +301,7 @@
300301
},
301302
{
302303
"cell_type": "code",
303-
"execution_count": 15,
304+
"execution_count": null,
304305
"metadata": {},
305306
"outputs": [],
306307
"source": [
@@ -334,7 +335,7 @@
334335
},
335336
{
336337
"cell_type": "code",
337-
"execution_count": 17,
338+
"execution_count": null,
338339
"metadata": {},
339340
"outputs": [],
340341
"source": [
@@ -359,7 +360,7 @@
359360
},
360361
{
361362
"cell_type": "code",
362-
"execution_count": 19,
363+
"execution_count": null,
363364
"metadata": {},
364365
"outputs": [],
365366
"source": [
@@ -393,7 +394,7 @@
393394
},
394395
{
395396
"cell_type": "code",
396-
"execution_count": 21,
397+
"execution_count": null,
397398
"metadata": {},
398399
"outputs": [],
399400
"source": [
@@ -404,16 +405,16 @@
404405
},
405406
{
406407
"cell_type": "code",
407-
"execution_count": 22,
408+
"execution_count": null,
408409
"metadata": {},
409410
"outputs": [],
410411
"source": [
411-
"question = \"What is the runtime of mergeSort?\""
412+
"question = \"How can you prove that a problem is NP-Hard?\""
412413
]
413414
},
414415
{
415416
"cell_type": "code",
416-
"execution_count": 23,
417+
"execution_count": null,
417418
"metadata": {},
418419
"outputs": [],
419420
"source": [
@@ -445,7 +446,7 @@
445446
},
446447
{
447448
"cell_type": "code",
448-
"execution_count": 24,
449+
"execution_count": null,
449450
"metadata": {},
450451
"outputs": [],
451452
"source": [

0 commit comments

Comments
 (0)