Yeroyan commited on
Commit
2d72662
·
verified ·
1 Parent(s): 51cf2c0

Fix BFloat16 numpy conversion

Browse files
Files changed (1) hide show
  1. visual_rag/cli/main.py +1 -1
visual_rag/cli/main.py CHANGED
@@ -288,7 +288,7 @@ def cmd_search(args):
288
  )
289
 
290
  # Search
291
- query_np = query_embedding.detach().cpu().numpy()
292
  if args.strategy == "single_full":
293
  results = single_stage.search(
294
  query_embedding=query_np,
 
288
  )
289
 
290
  # Search
291
+ query_np = query_embedding.detach().cpu().float().numpy() # .float() for BFloat16
292
  if args.strategy == "single_full":
293
  results = single_stage.search(
294
  query_embedding=query_np,