mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2025-08-28 02:20:13 +00:00
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 <mail@sebastianraschka.com>
This commit is contained in:
parent
48e98abc8e
commit
88250d953d
@ -268,7 +268,7 @@
|
||||
"source": [
|
||||
"There are multiple ways to force deterministic behavior with the `generate` function:\n",
|
||||
"\n",
|
||||
"1. Setting to `top_k=None` and applying no temperature scaling;\n",
|
||||
"1. Setting to `temperature=0.0`;\n",
|
||||
"2. Setting `top_k=1`."
|
||||
]
|
||||
},
|
||||
@ -1008,7 +1008,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.10.6"
|
||||
"version": "3.10.16"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
Loading…
x
Reference in New Issue
Block a user