[BUG] MemPalace mining fails — ONNX CoreML compilation error on Apple Silicon #373
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
mempalace minefails with ONNX CoreML compilation error:This is NOT a disk space issue (300GB free). It's a CoreML model compilation failure on Apple Silicon where the intermediate
.mlmodelcfile can't be written.Environment
What Works
mempalace status— works (shows 0 drawers after palace reset)mempalace search— works on existing datamempalace wake-up— works, shows identity.txtWhat Fails
mempalace mine <any_dir>— ONNX embedding model compilation crashesProposed Fix
pip install onnxruntime==1.17.0Acceptance Criteria
mempalace mine ~/.timmy/completes without errormempalace search "sovereignty"returns resultsmempalace wake-upshows identity + L1 contextRESOLVED
Patched mempalace to use Ollama embeddings instead of ONNX/CoreML.
Fix: Created
embedding_helper.pyin the mempalace package that routes throughOllamaEmbeddingFunction(hermes3:8b, 4096-dim vectors). Patched all 6 modules: miner.py, convo_miner.py, cli.py, layers.py, searcher.py, mcp_server.py.Result:
mempalace mine✓ (291 drawers from sovereign + skills)mempalace search✓ (semantic search working)mempalace wake-up✓ (identity + context)mempalace status✓