Skip to content

Commit 02779f5

Browse files
henrythe9thrasbt
andauthored
updated exercise 5.3 (#615)
* updated exercise 5.3 temperature can be set to 0 to regardless of top_k setting to force deterministic behavior * fix notebook json --------- Co-authored-by: Sebastian Raschka <[email protected]>
1 parent 72efebd commit 02779f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ch05/01_main-chapter-code/exercise-solutions.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268
"source": [
269269
"There are multiple ways to force deterministic behavior with the `generate` function:\n",
270270
"\n",
271-
"1. Setting to `top_k=None` and applying no temperature scaling;\n",
271+
"1. Setting to `temperature=0.0`;\n",
272272
"2. Setting `top_k=1`."
273273
]
274274
},
@@ -1008,7 +1008,7 @@
10081008
"name": "python",
10091009
"nbconvert_exporter": "python",
10101010
"pygments_lexer": "ipython3",
1011-
"version": "3.10.6"
1011+
"version": "3.10.16"
10121012
}
10131013
},
10141014
"nbformat": 4,

0 commit comments

Comments
 (0)