mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2026-04-10 12:33:42 +00:00
Add defensive context trimming for multiturn (#815)
* Add defensive context trimming for multiturn * add all mods
This commit is contained in:
committed by
GitHub
parent
215abdbcdd
commit
c7a4362ca4
@@ -3,6 +3,7 @@
|
||||
# - https://www.manning.com/books/build-a-large-language-model-from-scratch
|
||||
# Code: https://github.com/rasbt/LLMs-from-scratch
|
||||
|
||||
from ..generate import trim_input_tensor # noqa: F401
|
||||
from .utils import KVCache
|
||||
import torch
|
||||
|
||||
|
||||
Reference in New Issue
Block a user