RUNLOCALAIv38
->Will it run?Best GPUCompareTroubleshootStartLearnPulseModelsHardwareToolsBench
Run check
RUNLOCALAI

Independently operated catalog for local-AI hardware and software. Hand-written verdicts. Source-cited claims. Reproducible commands when we have them.

OP·Eruo Fredoline
DIR
  • Models
  • Hardware
  • Tools
  • Benchmarks
TOOLS
  • Will it run?
  • Compare hardware
  • Cost vs cloud
  • Choose my GPU
  • Prompting kits
  • Quick answers
REF
  • All buyer guides
  • Learn local AI
  • Methodology
  • Glossary
  • Errors KB
  • Trust
EDITOR
  • About
  • Author
  • How we make money
  • Editorial policy
  • Contact
LEGAL
  • Privacy
  • Terms
  • Sitemap
MAIL · MONTHLY DIGEST
Get monthly local AI changes
Monthly recap. No spam.
DISCLOSURE

Some links on this site are affiliate links (Amazon Associates and other first-class retailers). When you buy through them, we earn a small commission at no extra cost to you. Affiliate links do not influence our verdicts — there are cards we rate highly that we don't have affiliate relationships with, and cards that sell well that we refuse to recommend. Read more →

© 2026 runlocalai.coIndependently operated
RUNLOCALAI · v38
Errors / Build / compile failures / exllamav2 ImportError: cannot import name 'ExLlamaV2' / undefined symbol
Build / compile failures

exllamav2 ImportError: cannot import name 'ExLlamaV2' / undefined symbol

ImportError: cannot import name 'ExLlamaV2' from 'exllamav2'
By Eruo Fredoline · Last verified May 8, 2026

Cause

exllamav2 ships pre-built wheels for specific CUDA + PyTorch + Python combinations. A mismatch on any of those falls back to source compile, which fails (or imports a broken extension) in many environments.

Common forms: undefined symbol errors mean the .so was built against a different PyTorch ABI; ImportError means the C extension didn't build at all and the Python package is half-installed.

Solution

1. Match wheel to environment. The exllamav2 release page lists wheels by CUDA/torch/Python:

# Identify your stack
python -c "import torch; print(torch.version.cuda, torch.__version__)"
python --version

# Pick the matching wheel from https://github.com/turboderp-org/exllamav2/releases
pip install exllamav2 \
  --extra-index-url https://github.com/turboderp-org/exllamav2/releases/download/v0.2.4/exllamav2-0.2.4+cu124.torch2.4.0-cp311-cp311-linux_x86_64.whl

2. Or build from source against your exact PyTorch:

pip uninstall exllamav2 -y
pip install exllamav2 --no-binary exllamav2

Requires CUDA toolkit (nvcc) installed and on PATH.

3. Use TabbyAPI if you just want an OpenAI-compatible server — it bundles exllamav2 with the right wheels and avoids the manual matching:

git clone https://github.com/theroyallab/tabbyAPI && cd tabbyAPI
./start.sh

4. Confirm the version after install:

python -c "from exllamav2 import ExLlamaV2; print('ok')"

Related errors

  • llama.cpp build fails: nvcc not found
  • llama.cpp build fails: nvcc not found / CUDA toolkit missing
  • llama.cpp CUDA build: unsupported GNU version! gcc versions later than X are not supported
  • flash-attn install fails on Windows / no precompiled wheel

Did this fix it?

If your case was different, email Contact support with what you saw and we'll update the page. If it worked but took different commands on your platform, we want to know that too.