Standalone executable distribution of Apple's ml-sharp for zero-dependency deployment in Spacedrive.
This repository builds platform-specific standalone executables of ml-sharp using PyInstaller, enabling runtime download without requiring users to install Python or manage dependencies.
- macOS ARM64 (Apple Silicon)
- macOS x64 (Intel)
- Windows x64
- Linux x64
Each platform produces a compressed archive containing:
sharporsharp.exe- Standalone executable with bundled PyTorch and dependencies.sha256- Checksum file for integrity verification
Expected sizes:
- macOS ARM64: ~700 MB (executable only)
- macOS x64: ~750 MB
- Windows x64: ~800 MB
- Linux x64: ~700 MB
- Python 3.11+
- Git
python scripts/build.pyArtifacts will be created in dist/:
- Executable:
dist/sharp(orsharp.exe) - Archive:
dist/sharp-{platform}.tar.gz(or.zipfor Windows) - Checksum:
dist/sharp-{platform}.sha256
# macOS/Linux
./dist/sharp --help
./dist/sharp predict --help
# Windows
.\dist\sharp.exe --helpGitHub Actions automatically builds for all platforms on tag push:
git tag v0.1.0
git push origin v0.1.0Workflow creates a draft release with all platform artifacts.
Spacedrive's model download system fetches executables from:
https://github.com/spacedriveapp/ml-sharp-dist/releases/latest/download/sharp-{platform}.{tar.gz|zip}
The executable is stored in {data_dir}/models/sharp/ alongside the model weights.
- CPU-only PyTorch (excludes CUDA/ROCm)
- Excluded modules: tests, docs, notebooks, CUDA libs
- UPX compression (Windows/Linux)
- Debug symbol stripping
This distribution tool is MIT licensed. The ml-sharp project and model weights are subject to Apple's original license terms.