Skip to content

fix: use non-AVX LanceDB wheel on Linux x86_64 - #45

Open
mikemikimike wants to merge 1 commit into
Jatin-Roopchandani:mainfrom
mikemikimike:fix/issue-43-avx-fallback
Open

mikemikimike wants to merge 1 commit into
Jatin-Roopchandani:mainfrom
mikemikimike:fix/issue-43-avx-fallback

Conversation

@mikemikimike

Copy link
Copy Markdown

Summary

  • Use the published lancedb-compat distribution on Linux x86_64, which avoids requiring AVX/AVX2 on older Intel CPUs such as the Celeron J4125.
  • Keep the standard lancedb distribution for Linux ARM64 and Windows AMD64.
  • Add a regression test covering the platform markers and lock the compatible wheel in uv.lock.

Fixes #43

Issue: #43

Validation

  • uv lock --check
  • uv run --locked pytest -q tests/test_lance_store.py tests/test_dependency_platforms.py (13 passed)
  • npx tsc --noEmit
  • npm run build

The full Python suite cannot collect on Windows because the existing test setup imports the Unix-only fcntl module; the clean base has the same collection failure. The web suite reaches 872 passing tests with one unchanged date-fixture assertion failing on the current date.

@Jatin-Roopchandani

Copy link
Copy Markdown
Owner

Thanks for tracking this down! I confirmed lancedb-compat is LanceDB's official non-AVX build (same maintainers and repo, released alongside each version), and I like that it's scoped to Linux x86-64 only.

CI (Linux x86-64, so the first run that actually installs the compat wheel) fails at import, though: lancedb-compat 0.37.1 ships lancedb/__init__.py with __version__ = importlib.metadata.version("lancedb"), and there is no lancedb distribution installed alongside it, so it raises PackageNotFoundError and every module that imports lancedb fails to load.

0.42.1 fixes that upstream (it reads the version from the native module: from ._lancedb import __version__). Could you bump the requirement to lancedb-compat>=0.42.1, and ideally lancedb to the same 0.42.1, so every platform runs the same version, and re-lock? Then CI will tell us whether anything in LORE needs adjusting for 0.42.

One more thing we can't check from here: Kuzu also ships native code, so if the NAS still crashes after this, Kuzu is the next suspect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exit code 132 (SIGILL) on 'migrate' container on CPUs without AVX/AVX2 (Intel Celeron / NAS)

2 participants