Bundle the wheels and the embedding model on a connected machine with the target’s Python version, carry both across, and install with no index. With the model restored to its cache, the first build makes no network request.
# On a connected machine: the wheels, then warm the model cache
$ pip download neuralmind --dest ./offline-bundle
$ python -c "from neuralmind.onnx_embedder import OnnxMiniLMEmbedder as E; E()(['warm'])"
# Bundle the wheels and the cached model together
$ tar czf neuralmind-offline.tgz ./offline-bundle -C ~/.cache/neuralmind onnx_models
# On the air-gapped machine
$ tar xzf neuralmind-offline.tgz
$ pip install --no-index --find-links offline-bundle neuralmind
$ mkdir -p ~/.cache/neuralmind && cp -r onnx_models ~/.cache/neuralmind/
# Or point at a model directory you manage (model.onnx and tokenizer.json)
$ export NEURALMIND_ONNX_MODEL_DIR=/opt/models/all-MiniLM-L6-v2/onnx
The full procedure, platform pinning and verifying the bundle before it crosses: running air-gapped →