mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2025-08-27 18:10:39 +00:00
Minor typo: pply -> Apply (#749)
This commit is contained in:
parent
068751c053
commit
b74ab9611e
@ -1083,7 +1083,7 @@
|
|||||||
" min_val = top_logits[:, -1]\n",
|
" min_val = top_logits[:, -1]\n",
|
||||||
" logits = torch.where(logits < min_val, torch.tensor(-torch.inf).to(logits.device), logits)\n",
|
" logits = torch.where(logits < min_val, torch.tensor(-torch.inf).to(logits.device), logits)\n",
|
||||||
"\n",
|
"\n",
|
||||||
" # pply temperature scaling\n",
|
" # Apply temperature scaling\n",
|
||||||
" if temperature > 0.0:\n",
|
" if temperature > 0.0:\n",
|
||||||
" logits = logits / temperature\n",
|
" logits = logits / temperature\n",
|
||||||
"\n",
|
"\n",
|
||||||
@ -1201,7 +1201,7 @@
|
|||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.10.16"
|
"version": "3.11.9"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user