Installation on Kunlunxin P800#

This document describes how to build the LoongForge image that can run on Kunlunxin P800.

2. Install from Source#

If you already have a working Kunlun XPU + XPyTorch environment, you can install LoongForge directly:

git clone --recurse-submodules https://github.com/baidu-baige/LoongForge.git
cd LoongForge
uv venv .venv
source .venv/bin/activate
uv pip install -e ".[xpu]"

Note: TransformerEngine is not required for XPU. For additional XPU-specific dependencies (e.g. XPyTorch, DeepSpeed), refer to docker/Dockerfile.xpu for exact versions and build steps.