Recommended runtime environment:
OS: Ubuntu 22.04
Python: 3.10
PyTorch >= 2.0
GPU: MetaX C500
Driver/SDK Version: 2.31.0.4 or higger
RAM: >= 128GB
-
Go to the MetaX Developer Center to register an account.
-
Download MetaX C500 Driver and SDK, version: 2.31.0.4 or higger. Please download the local install version.
-
Follow the instructions on the webpage to complete the installation.
-
Update
.bashrcfile.vi ~/.bashrcAdd the following environment variables
export MACA_PATH=/opt/maca export MACA_CLANG_PATH=${MACA_PATH}/mxgpu_llvm/bin export PATH=${MACA_PATH}/bin:${MACA_PATH}/tools/cu-bridge/bin:${MACA_PATH}/tools/cu-bridge/tools:${MACA_CLANG_PATH}:${PATH} export LD_LIBRARY_PATH=${MACA_PATH}/lib:${MACA_PATH}/mxgpu_llvm/lib:${MACA_PATH}/ompi/lib:${LD_LIBRARY_PATH} export MXLOG_LEVEL=err
Update environment variables
source ~/.bashrc -
Add current user to video group.
sudo usermod -aG video $USER newgrp video -
Reboot your server.
-
You can use the
mx-smicommand to check GPU information.
# create conda environment
conda create -n online python=3.10
conda activate onlineNote Please download the version that matches the Driver, such as 2.31.x.x.
PyTorch: link
You will receive tar archives. After extracting them, navigate to the wheel directory and install using pip.
# install PyTorch
tar -xvf maca-pytorch2.4-py310-2.31.0.4-x86_64.tar.xz
cd 2.31.0.4/wheel/
pip install ./*.whlcd ./mataxrl
pip install -r online_requirements.txtRecommended runtime environment:
OS: Ubuntu 22.04
Python: 3.8
PyTorch == 2.0
GPU: MetaX C500
Driver/SDK Version: 2.31.0.4 or higger
RAM: >= 128GB
-
Go to the MetaX Developer Center to register an account.
-
Download MetaX C500 Driver and SDK, version: 2.31.0.4 or higger. Please download the local install version.
-
Follow the instructions on the webpage to complete the installation.
-
Update
.bashrcfile.vi ~/.bashrcAdd the following environment variables
export MACA_PATH=/opt/maca export MACA_CLANG_PATH=${MACA_PATH}/mxgpu_llvm/bin export PATH=${MACA_PATH}/bin:${MACA_PATH}/tools/cu-bridge/bin:${MACA_PATH}/tools/cu-bridge/tools:${MACA_CLANG_PATH}:${PATH} export LD_LIBRARY_PATH=${MACA_PATH}/lib:${MACA_PATH}/mxgpu_llvm/lib:${MACA_PATH}/ompi/lib:${LD_LIBRARY_PATH} export MXLOG_LEVEL=err
Update environment variables
source ~/.bashrc -
Add current user to video group.
sudo usermod -aG video $USER newgrp video -
Reboot your server.
-
You can use the
mx-smicommand to check GPU information.
# create conda environment
conda create -n offline python=3.8
conda activate offlineNote Please download the version that matches the Driver, such as 2.31.x.x.
PyTorch: link
You will receive tar archives. After extracting them, navigate to the wheel directory and install using pip.
# install PyTorch
tar -xvf maca-pytorch2.4-py38-2.31.0.4-x86_64.tar.xz
cd 2.31.0.4/wheel/
pip install ./*.whlcd ./mataxrl
pip install -r offline_requirements.txtsudo apt-get update
sudo apt-get install patchelf
d3rlpy install d4rl