Spaces:
Running
Running
Fix BFloat16 numpy conversion
Browse files- 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,
|