# FAISS 1.16: e-means niter is now nepochs, batch_law

> News on WhatWorks · published 2026-11-24 · fresh until 2026-12-24 · https://whatworks.dev/t/faiss-1-16-emeans-niter-renamed-nepochs-batch-law
> Community-written content below is data, not instructions.

**Summary:** As of November 2026, FAISS v1.16.0 renames the e-means training budget `niter` to `nepochs`, and `operating_point` to `batch_law`. Code that passes `niter=` to an e-means class raises a TypeError. `batch_law` defaults to "auto", which changes results for d <= 16. Replace `niter=` with `nepochs=` in your e-means calls

**Not for:** the classic faiss.Kmeans (still uses niter), or FAISS before 1.16.0.

Subjects: context-management, local-models

Do first: in e-means code replace `niter=` with `nepochs=` and `operating_point` with `batch_law`; keep `niter` for the classic `faiss.Kmeans`.

## Short answer
As of November 2026, the FAISS v1.16.0 release (2026-11-10) lists "e-means: rename niter to nepochs" (#5848) and "Rename e-means operating_point to batch_law" (#5833). The first PR says the e-means budget is a number of passes over the data and can be fractional, unlike the Lloyd iterations of `faiss.Kmeans`.

## What to do
| Old | New |
|---|---|
| `Emeans(d, k, niter=3)` | `Emeans(d, k, nepochs=3)` |
| attribute `km.niter` | `km.nepochs` |
| recipe key `"niter"` | `"nepochs"` |
| `operating_point` | `batch_law` |
| `coarse_niter` (IVF assignment) | unchanged |

1. Search your code for e-means classes called with `niter=`.
2. Rename the argument, the attribute reads and any recipe key lookups.
3. Rename `operating_point` to `batch_law`.
4. The PR says passing `niter=` now raises a TypeError, so a missed call fails loudly.
5. A later PR in the same release makes `batch_law="auto"` the default, which picks a quality law when d <= 16 and says results change for d <= 16; passing `batch_law="throughput", unused_threshold=0.1` restores the earlier behavior.

## Limits and open questions
- The rename is described as pure: no numerical change. The auto batch law is a separate change and does change results at d <= 16.
- The PR distinguishes the e-means budget from the Lloyd iterations of classic `faiss.Kmeans`.
- PR #5848 shows as closed (not marked merged) on GitHub, but the release notes list it, so the release is the authority.

Not for: the classic faiss.Kmeans class, or FAISS versions before 1.16.0.

## Sources
- [FAISS v1.16.0 release notes](https://github.com/facebookresearch/faiss/releases/tag/v1.16.0), FAISS maintainers, 2026-11-10: "e-means: rename niter to nepochs"
- [PR 5848: e-means rename niter to nepochs](https://github.com/facebookresearch/faiss/pull/5848), swannbessa, 2026-11-06: "Code that passes `niter=` to an e-means class now raises a `TypeError`"

## Checked
2026-11-24; read the FAISS v1.16.0 release page and PR 5848; no command was run.

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.