docs/TROUBLESHOOTING.md
Common issues and solutions for mistral.rs.
Enable debug mode for more information:
MISTRALRS_DEBUG=1 mistralrs run -m <model>
Debug mode causes:
mistralrs_gguf_tensors.txt or mistralrs_ggml_tensors.txtRun the built-in diagnostics tool:
mistralrs doctor
This checks your system configuration and reports any issues.
Setting the CUDA compiler path:
NVCC_CCBIN environment variable during buildError: recompile with -fPIE:
-fPIECUDA_NVCC_FLAGS=-fPIE cargo build --release --features cudaError: CUDA_ERROR_NOT_FOUND or symbol not found:
f32, f16, bf16 or auto (auto chooses based on device)mistralrs run -m <model> -d autoMinimum CUDA compute capability:
CUDA_COMPUTE_CAP=80 cargo build --release --features cudaMetal not found (error: unable to find utility "metal"):
Install Xcode:
xcode-select --install
Set the active developer directory:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
error: cannot execute tool 'metal' due to missing Metal toolchain
xcodebuild -downloadComponent MetalToolchain
Disabling Metal kernel precompilation:
MISTRALRS_METAL_PRECOMPILE=0 cargo build --release --features metal
Disabling mmap loading:
MISTRALRS_NO_MMAP=1 to disable memory-mapped file loadingOut of memory errors:
--isq q4k or --isq q8_0-n 0:16;cpu:16--pa-context-len 4096Model type not auto-detected:
Chat template issues:
-c /path/to/template.jinjaIf you're still stuck:
When reporting issues, please include:
mistralrs doctor