Skip to content

Instantly share code, notes, and snippets.

View lowener's full-sized avatar

Micka lowener

  • NVIDIA
  • Paris
  • 17:11 (UTC +02:00)
View GitHub Profile
@lowener
lowener / bbq_rabitq_convert.py
Last active July 20, 2026 13:51
Compare BBQ and RaBitQ
#!/usr/bin/env python3
"""Compare BBQ and RaBitQ quantization by converting one to the other and measuring error.
Forward: make_blobs -> BBQ -> convert -> RaBitQ
Inverse: make_blobs -> RaBitQ -> convert -> BBQ
Two conversion modes:
(default) re-quantize: dequantize source, then quantize into the target format
--direct: remapping of packed 1-bit codes + factor heuristics only
(no float reconstruction). Lossy / approximate: BBQ and
@lowener
lowener / kmeans_benchmark.py
Last active July 1, 2026 14:05
Micro-Benchmark of KMeans for FAISS and cuVS
#!/usr/bin/env python3
"""
Benchmark script for comparing faiss kmeans (CPU/GPU) and cuvs kmeans
on a 1Mx1024 dataset.
"""
import argparse
from pathlib import Path
import sys
import time
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lowener
lowener / VectorSearch_QuestionRetrieval.ipynb
Last active October 9, 2024 13:51
Question retrieval task using NVIDIA cuVS for Vector search
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lowener
lowener / image_search.ipynb
Created July 17, 2023 12:37
Similarity image search with RAPIDS Raft Vector Search
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.