NER image optimization
ecodb-ner image: 8.36 GB → 1.77 GB (−79%, −6.59 GB)
GLiNER runs CPU-only inference — the full CUDA stack (~5.3 GB of nvidia-cublas, nvidia-cuda-runtime, triton, etc.) was dead weight pulled as a transitive dependency of torch. This release pins torch==2.12.1+cpu via the official PyTorch CPU wheel index.
What changed
ner/Dockerfile: installs fromrequirements.txtwith--extra-index-url https://download.pytorch.org/whl/cpuner/requirements.txt: explicittorch==2.12.1+cpupin
Verified
- Full regression: 7/7 containers healthy, 0 regressions
- Entity extraction (GLiNER): end-to-end verified (save_memory → entity extraction → graph)
- Semantic search (GAMR 8-stage): verified
- Graph traversal: 1270 nodes, 3776 triples, 181 predicates
- 5 MCP tools confirmed operational
- Revert anchor:
sha256:7504899c22d3(pre-pin image)
Upgrade
docker compose build ner
docker compose up -d ner
# Wait ~30s for GLiNER model load, then verify:
docker compose ps # ner should be healthyNo schema changes. No configuration changes. Drop-in replacement.