Installation
OpenGround can be installed with different embedding backends depending on your needs and hardware.Prerequisites
- Python 3.10, 3.11, or 3.12
- pip or uv package manager
- Git (for cloning documentation repositories)
Installation Methods
Recommended: Install with uv
uv is the fastest Python package installer. Choose the variant that matches your hardware:- Full Support (Recommended)
- Lightweight CPU
- Experimental GPU
Includes sentence-transformers with automatic GPU/MPS/CPU detection:Pros:
- Automatic hardware detection (GPU, MPS, CPU)
- Best performance on all platforms
- Most tested and stable
- Larger package size (~2GB)
- Longer installation time
Alternative: Install with pip
If you don’t use uv, you can install with pip:Backend Comparison
| Feature | sentence-transformers | fastembed | fastembed-gpu |
|---|---|---|---|
| Package Size | ~2GB | ~200MB | ~500MB |
| GPU Support | ✅ CUDA, MPS, CPU | ❌ CPU only | ✅ CUDA only |
| Stability | ⭐⭐⭐ | ⭐⭐⭐ | ⭐⭐ |
| Speed (GPU) | Fast | N/A | Fast |
| Speed (CPU) | Medium | Fast | N/A |
Verify Installation
After installation, verify that OpenGround is working:GPU Setup (Optional)
If you installed the default package or fastembed-gpu variant, you may want to verify GPU support.NVIDIA GPU (CUDA)
Check NVIDIA drivers
For fastembed-gpu: Verify CUDA
The fastembed-gpu variant requires CUDA 11.x or 12.x with matching cuDNN:See ONNX Runtime CUDA requirements for compatibility.
Apple Silicon (MPS)
The default package (sentence-transformers) automatically uses Apple’s Metal Performance Shaders on M1/M2/M3 Macs:True on Apple Silicon Macs.
fastembed and fastembed-gpu do not support Apple Silicon GPU acceleration. Use the default package for MPS support.
Troubleshooting
ModuleNotFoundError: No module named 'openground'
ModuleNotFoundError: No module named 'openground'
The package is not installed in your current Python environment.Solution:
- If using uv: Make sure you used
uv tool installnotuv pip install - If using pip: Try
python -m pip install openground - Verify with
which opengroundorwhere openground(Windows)
GPU detected but CUDA is not functional
GPU detected but CUDA is not functional
You have an NVIDIA GPU but CUDA is not working.Solution for fastembed-gpu:
- Ensure CUDA 11.x or 12.x is installed
- Install matching cuDNN version
- Verify with
python -c "import onnxruntime as ort; print(ort.get_available_providers())" - Should include ‘CUDAExecutionProvider’
- Reinstall PyTorch with CUDA support:
- Verify with
python -c "import torch; print(torch.cuda.is_available())"
Installation takes forever
Installation takes forever
The default package includes PyTorch and sentence-transformers which are large.Solutions:
- Use
openground[fastembed]for a lighter install - Ensure you have a good internet connection
- The download is large but only happens once
Permission denied on Windows
Permission denied on Windows
Windows may require administrator privileges.Solution:
- Run your terminal as administrator
- Or use
--userflag:pip install --user openground
Switching Backends
If you want to switch backends after installation, see the Embedding Backends guide.Upgrading
To upgrade to the latest version:Uninstalling
To remove OpenGround:Uninstalling does not remove your configuration or embedded documentation. To remove all data, run
openground nuke all before uninstalling.