Docker is recommended for full capabilities on macOS. Metal GPU acceleration is not available inside Docker on macOS, but Docker supports CPU-based HuggingFace models. See the Docker install guide.
Install
Install Miniconda for Python 3.10
Download and install Miniconda for macOS.
Install OCR and document support (optional)
For Tesseract OCR and Word/Excel document support:For Word and Excel file support, download and install LibreOffice.
Run
Start h2oGPT with a GGUF model:run.sh script:
sh run.sh.
Open http://localhost:7860 in your browser after the server starts.
Verify Metal (M1/M2 only)
Run the following to confirm PyTorch can use the Metal Performance Shaders backend:Troubleshooting
ld: library not found for -lSystem
pip install commands from scratch.
Conda Rust issues
Install Rust natively instead:
clang: error: the clang compiler does not support '-march=native'
Set ARCHFLAGS before installing:
TypeError: Trying to convert BFloat16 to the MPS backend
BFloat16 support requires macOS Sonoma (14.0) or later. On older macOS versions, pin PyTorch: