Installation
From source
cargo install --path .
Or directly from GitHub:
cargo install --git https://github.com/crossmem/crossmem-rs
Dependencies
crossmem requires the following tools for PDF capture and compilation:
| Tool | Purpose | Install |
|---|---|---|
pdftotext | Fallback PDF text extraction | brew install poppler |
marker | PDF parsing with bounding boxes (default) | pip install marker-pdf or uvx marker-pdf |
| Ollama | Local LLM for paraphrase/implication | ollama.com |
Ollama model setup
crossmem uses llama3.2:3b by default. Pull the model before your first compile:
ollama pull llama3.2:3b
Override the model with the CROSSMEM_OLLAMA_MODEL environment variable:
CROSSMEM_OLLAMA_MODEL=mistral crossmem compile vaswani2017attention
Verify installation
crossmem --version