Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Meta Engineering 3 min read Announcement easyNovice

Accelerating GPU indexes in Faiss with NVIDIA cuVS

Faiss 1.10 integrates NVIDIA cuVS GPU algorithms, including the GPU graph index CAGRA, and ships a conda package that lets users choose between classic Faiss GPU implementations and cuVS. Benchmarks on an H100 versus a Xeon 8480CL at 95% recall@10 used 100M×96 Deep1B vectors and 5M×1536 ada-002 embeddings. cuVS IVF builds up to 4.7x faster with up to 8.1x lower search latency than classic GPU IVF. CAGRA builds up to 12.3x faster than CPU HNSW, with up to 4.7x lower latency.

Assumes: approximate nearest neighbor searchIVF and HNSW indexes

Related posts

  • pgvector v0.5.0: Faster semantic search with HNSW indexes

    Supabase mediumAdept

    pgvector v0.5.0 adds HNSW indexes, which combine skip-list-style layering with navigable small world proximity graphs to do approximate nearest-neighbor search over embeddings. In Supabase benchmarks on 1536-dimension OpenAI vectors, HNSW delivered about 3x the QPS of IVFFlat on 224K vectors and over 6x on 1M vectors at equal accuracy. Tuning ef_search, m and ef_construction trades speed against recall; raising ef_construction to 80 reached 0.99 accuracy@10 with ef_search 100 and 35% more QPS. HNSW can be built on an empty table and stays optimal as data arrives, but it builds more slowly and uses more memory than IVFFlat, whose build times dropped over 50% thanks to parallel list assignment and float-based FMA distance math.

  • Understanding vector search and HNSW index with pgvector

    Neon mediumAdept

    pgvector 0.5.0 adds an HNSW (Hierarchical Navigable Small Worlds) index for approximate nearest neighbor search in Postgres, replacing O(N) sequential exact scans with a multi-layer graph traversal that trades a little accuracy for much faster queries. A walkthrough covers vector embeddings, L2 and cosine distance with worked examples, and pgvector SQL for storing and querying vectors with the <=> operator. Index tuning hinges on m (graph degree), ef_construction (build-time candidate list) and ef_search (query-time beam size): higher values improve recall at the cost of build time, memory or query latency. HNSW is faster and higher-recall than IVF but resource-intensive to build, often requiring more RAM and a larger maintenance_work_mem.

  • Key research and product announcements at the AI Native Conf

    Together AI hardMaster

    Together AI announced seven research and product releases spanning GPU kernels, reinforcement learning infrastructure and inference optimization. FlashAttention-4 targets NVIDIA Blackwell and is reported 2.7x faster than Triton and 1.3x faster than cuDNN 9.13. A single-kernel Megakernel cut a voice agent's time-to-first-64-tokens from 281ms to 77ms, and together.compile beats torch.compile by 41% on a Flux Kontext benchmark. ThunderAgent schedules whole agentic workflows to avoid KV cache thrashing and leaked tool sandboxes, ATLAS-2 retrains speculative decoders online from live traffic, and cache-aware prefill-decode disaggregation sends warm and cold requests to separate tiers over an RDMA KV cache for 35-40% higher QPS.

  • We reverse-engineered Flash Attention 4

    Modal hardMaster

    Flash Attention 4, Tri Dao's attention kernel for Nvidia Blackwell GPUs, reportedly runs about 20% faster than cuDNN's closed-source attention kernels. Its main change is a far more complex warp-specialized asynchronous pipeline: Load, MMA, Softmax, Correction and Epilogue warps hand tiles through shared and Tensor Memory, synchronized by producer/consumer barriers. Two math tricks add to the gain. A cubic polynomial exponential runs on CUDA Cores to avoid queueing on the scarce Special Function Units, and a smarter online softmax rescales only when the running max changes enough to matter, reportedly cutting rescaling work by 10x. The authors read the released source and argue that programmer-managed asynchrony is pushing GPU programming toward tile-based DSLs such as CuTe, CUTLASS, Gluon and CuTile.

  • ParallelKernelBench: Frontier LLMs can't write fast multi-GPU kernels (yet)

    Together AI hardMaster

    ParallelKernelBench is a benchmark of 87 multi-GPU problems drawn from Megatron-LM, DeepSpeed, DeepEP, TensorRT-LLM, NeMo-RL and non-LLM workloads. In each problem a model must replace a PyTorch + NCCL reference with a CUDA kernel that moves data directly over NVLink using symmetric memory. Frontier models do poorly: the best (GPT-5.5) solves 28 problems zero-shot and only 31% beat the baseline even with three samples. Strong models fail mainly on rank coordination, collective ordering and the choice of transfer mechanism, and they rarely use TMA or NVLS. An agentic compile-test-benchmark loop lifted Gemini 3 Pro to 35 correct and 26 faster solutions before plateauing at about 20 steps, though models did produce some novel fast kernels, such as a fused vocab-parallel log-prob for NeMo-RL's GRPO.

The quest for software engineering knowledge.

Look:
Layout: