fixed failing lint

This commit is contained in:
nicole pardal
2025-10-30 16:29:45 -07:00
parent ecbbd8b8a0
commit 2b8c4a2f67
2 changed files with 0 additions and 4 deletions

View File

@@ -136,7 +136,6 @@ func (s *Server) NewSequence(prompt string, images []llm.ImageData, params NewSe
// TODO: EOG token handling should be moved to tokenizer // TODO: EOG token handling should be moved to tokenizer
if params.embedding { if params.embedding {
// If the original prompt ended with an EOG token, add it back after truncation // If the original prompt ended with an EOG token, add it back after truncation
lastIsEOG := false lastIsEOG := false
@@ -163,7 +162,6 @@ func (s *Server) NewSequence(prompt string, images []llm.ImageData, params NewSe
if lastIsEOG { if lastIsEOG {
newInputs = append(newInputs, input{token: eogToken}) newInputs = append(newInputs, input{token: eogToken})
} }
} else { } else {
// Otherwise, truncate in the middle // Otherwise, truncate in the middle
newInputs = inputs[:params.numKeep] newInputs = inputs[:params.numKeep]

View File

@@ -140,7 +140,6 @@ func (s *Server) NewSequence(prompt string, images []llm.ImageData, params NewSe
var newInputs []*input.Input var newInputs []*input.Input
if params.embedding { if params.embedding {
var lastIsEOG bool var lastIsEOG bool
eogToken := int32(0) eogToken := int32(0)
@@ -170,7 +169,6 @@ func (s *Server) NewSequence(prompt string, images []llm.ImageData, params NewSe
if lastIsEOG { if lastIsEOG {
newInputs = append(newInputs, &input.Input{Token: eogToken}) newInputs = append(newInputs, &input.Input{Token: eogToken})
} }
} else { } else {
// Otherwise, truncate in the middle // Otherwise, truncate in the middle
promptStart := params.numKeep + discard promptStart := params.numKeep + discard