mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
input: Rename Options to Batch
Options is no longer very descriptive of this struct.
This commit is contained in:
parent
ffbfe833da
commit
0c220935bd
14 changed files with 73 additions and 60 deletions
|
@ -52,7 +52,7 @@ type Cache interface {
|
|||
// StartForward is called before the start of the model's forward pass.
|
||||
// For each token in the coming batch, there must be a corresponding
|
||||
// entry in positions and seqs.
|
||||
StartForward(ctx ml.Context, opts input.Options) error
|
||||
StartForward(ctx ml.Context, batch input.Batch) error
|
||||
|
||||
// CopyPrefix copies tokens in the range [0, len) from srcSeq to dstSeq
|
||||
CopyPrefix(srcSeq, dstSeq int, len int32)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue