Skip to content

Commit bd33d18

Browse files
committed
Remove not used code
1 parent 9d78f71 commit bd33d18

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

LLama/Batched/Conversation.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ public sealed class Conversation
2323
/// </summary>
2424
private bool _forked;
2525
private readonly List<SafeMtmdEmbed> _mtmdEmbeds = new();
26-
private int _pendingMtmdPositions;
2726
private int? _mtmdLogitsIndex;
2827
private MtmdChunkSequence? _pendingMtmdSequence;
2928
private readonly List<LLamaToken> _embed_inps = new();
@@ -417,7 +416,6 @@ private void PromptMultimodal(string text, bool addBos)
417416

418417
var sequence = MtmdChunkSequence.Create(chunks, Executor.ClipModel);
419418
_pendingMtmdSequence = sequence;
420-
_pendingMtmdPositions = sequence.TotalPositions;
421419

422420
var epoch = Executor.QueueMtmdBatch(this, sequence);
423421
chunks = null;
@@ -514,7 +512,6 @@ internal void OnMtmdEvaluationCompleted(long newPast, MtmdChunkSequence sequence
514512
_pendingMtmdSequence = null;
515513

516514
_end = (LLamaPos)checked((int)newPast);
517-
_pendingMtmdPositions = 0;
518515

519516
if (_batchSampleIndices.Length == 0)
520517
_batchSampleIndices = new int[4];
@@ -544,7 +541,6 @@ internal void OnMtmdEvaluationFailed(int status)
544541
{
545542
_pendingMtmdSequence?.Dispose();
546543
_pendingMtmdSequence = null;
547-
_pendingMtmdPositions = 0;
548544
_mtmdLogitsIndex = null;
549545
_requiredEpoch = Executor.Epoch;
550546
DisposeQueuedMedia();

0 commit comments

Comments
 (0)