Skip to content

Commit

Permalink
chore: revert batch longest
Browse files Browse the repository at this point in the history
  • Loading branch information
Anush008 committed Jan 31, 2024
1 parent c7fdcce commit 25993ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastembed.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ func loadTokenizer(modelPath string, maxLength int) (*tokenizer.Tokenizer, error
Stride: 0,
})

paddingStrategy := tokenizer.NewPaddingStrategy(tokenizer.WithBatchLongest())
paddingStrategy := tokenizer.NewPaddingStrategy(tokenizer.WithFixed(maxLength))

paddingParams := tokenizer.PaddingParams{
Strategy: *paddingStrategy,
Expand Down

0 comments on commit 25993ce

Please sign in to comment.