mirror of
https://github.com/run-llama/semtools.git
synced 2026-07-21 03:05:31 -04:00
[PR #18] [MERGED] Increase batch size in search, refactor search tests
#27
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/run-llama/semtools/pull/18
Author: @logan-markewich
Created: 9/3/2025
Status: ✅ Merged
Merged: 9/3/2025
Merged by: @logan-markewich
Base:
main← Head:logan/increase_batch_size📝 Commits (3)
dbc9c35Increase the search encode batch size from 1024 to 16384a75ce5eimprove testingac38b1elinting📊 Changes
1 file changed (+70 additions, -35 deletions)
View changed files
📝
src/bin/search.rs(+70 -35)📄 Description
This PR does two things
search-- 1024 is quite small, and we can increase this with minimal impact to resource usage according to local testing. This should given some ok speedup in certain conditionssearchtests to use the actual model. This ensures less floating point error/differences due to use constant vectors, and also ensures more realistically that the model and similarity search works as expectedFixes #17
Fixes #15
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.