FAQ¶
Common questions and solutions for vLLM QAIC.
Installation & Setup¶
Can I run AOT and PYT modes in the same environment?
No. The two modes require different torch versions and conflicting packages. Use separate virtual environments.
ModuleNotFoundError: No module named 'torch_qaic'
This means you're trying to use PYT mode without torch_qaic installed.
Fix: Ensure the Apps SDK was installed with --install-torch-qaic and run:
uv rejects torch==2.7.0+cpu during install
uv does not support PEP 440 +local version labels from remote indexes.
Fix: Use python -m pip install for torch instead of uv pip install.
Runtime & Errors¶
QAIC device not found
Verify device access step-by-step:
- Check SDK/drivers are installed:
- Check device visibility:
- Ensure
/dev/accel/exists and has correct permissions:
Out of memory on device
Reduce workload parameters:
| Parameter | Effect |
|---|---|
max_num_seqs |
Lower decode batch size |
max_model_len |
Reduce context length |
num_cores in additional_config |
Free cores if using SpD |
See Device Management for core allocation details.
Model compilation takes too long
QPC compilation is a one-time cost. Pre-compiled QPCs are cached in $QEFF_HOME
(default: ~/.cache/qefficient/).
Skip compilation entirely by pointing to a pre-compiled QPC directory:
enforce_eager has no effect
enforce_eager=True is only meaningful in PYT mode. In AOT mode, execution is
always through pre-compiled QPCs — the flag is a no-op.
Performance Tuning¶
Why is speculative decoding slower than expected?
SpD is most effective when:
Output tokens are predictable (summarization, code completion with long context)
Acceptance rate is high (> 60%)
Batch size is moderate (1-4 sequences)
At high batch sizes, the hardware may already be saturated and SpD adds overhead.
Diagnose: See Profiling for step-by-step analysis.
How do I check which QPC was loaded?
Enable verbose logging:
The log output will show the QPC path and compilation parameters used.
Still stuck?¶
If your issue isn't covered here:
- Check the Verification page for post-install diagnostics
- Review Environment Variables for relevant settings
- Open an issue on GitHub with:
- Your SDK version (
qaic-util -V) - Python environment info (
pip list | grep -E "vllm|torch|qaic") - Full error traceback
- Your SDK version (