Skip to content

Latest commit

 

History

History
87 lines (59 loc) · 1.95 KB

installation.md

File metadata and controls

87 lines (59 loc) · 1.95 KB

Installation

To install mmore, run the following:

  1. Clone the repository

    git clone https://github.com/swiss-ai/mmore
  2. Install the package

    pip install -e .

Note that you can specify to install certain parts of the pipeline. In example, to install only the processor-related dependencies, put '.[processor]'. We support processor, rag, all.

Alternative #1: uv

Step 1: Install system dependencies
sudo apt update
sudo apt install -y ffmpeg libsm6 libxext6 chromium-browser libnss3 \
  libgconf-2-4 libxi6 libxrandr2 libxcomposite1 libxcursor1 libxdamage1 \
  libxext6 libxfixes3 libxrender1 libasound2 libatk1.0-0 libgtk-3-0 libreoffice
Step 2: Install uv

Refer to the uv installation guide for detailed instructions.

curl -LsSf https://astral.sh/uv/install.sh | sh
Step 3: Clone this repository
git clone https://github.com/swiss-ai/mmore
cd mmore
Step 4: Install project and dependencies
uv sync

For CPU-only installation, use:

uv sync --extra cpu
Step 5: Run a test command

Activate the virtual environment before running commands:

source .venv/bin/activate

Alternative #2: Docker

Note: For manual installation without Docker, refer to the section below.

Step 1: Install Docker

Follow the official Docker installation guide.

Step 2: Build the Docker image
docker build . --tag mmore

To build for CPU-only platforms (results in a smaller image size):

docker build --build-arg PLATFORM=cpu -t mmore .
Step 3: Start an interactive session
docker run -it -v ./test_data:/app/test_data mmore

Note: The test_data folder is mapped to /app/test_data inside the container, corresponding to the default path in examples/process_config.yaml.