Installation

Last updated: 2025-11-8

This guide will walk you through setting up dFactory and installing its dependencies.

Prerequisites

  • Git

  • Python 3.10 or higher

  • CUDA 12.4 or higher

Clone the Repository

First, clone the project repository from GitHub. The --recursive flag is important as it ensures that all necessary submodules are downloaded as well.

git clone --recursive https://code.alipay.com/xbox/nexus_veomni.git
cd nexus_veomni

Environment Setup and Dependencies

We offer two methods for installation. We recommend using uv for its speed, but you can also use pip with a standard virtual environment.

Option B: Using pip and venv

This is the classic approach using Python’s built-in tools.

Create Virtual Environment

# From the project root directory (dFactory)
python -m venv .venv

Activate Virtual Environment

source .venv/bin/activate

Install Project in Editable Mode

We will install the VeOmni package. The -e flag (editable mode) allows you to make changes to the source code without needing to reinstall. The [gpu] part installs the extra dependencies for GPU support.

pip install -e "VeOmni[gpu]"

Next Steps

You are now ready to use dFactory.