This section introduces how to complete the environment deployment required for the D-Robotics-LLM model on both the development machine and the end-side device.
Download the D-Robotics_LLM_{version}.tar.gz installation package provided by us and extract it correctly.
If you have already installed the Conda environment, please skip this step.
To facilitate the management of the Python environment, we recommend using Miniforge3 as the Python package management tool.
Download the Miniforge3 installation package:
Install the Miniforge3:
Enter the Conda base environment, refer to the following command:
Create a python3.10 environment and switch to the environment, refer to the following command:
Enter the oellm conda environment:
Install the required Python environment:
After setting up the Conda environment, you need to continue installing the model quantization, conversion, and compilation toolkits included in the LLM deployment package. Refer to the following commands:
At this point, we have completed the installation and setup of the development environment.
At this stage, it is necessary to verify the availability of the runtime environment to ensure it can be used for actual on-board program execution.
The LLM deployment package includes an installer for the cross-compilation toolchain. On the target device, simply create a directory and extract the installer, using the following commands as a reference:
Please note that this process requires root privileges.
After extraction, configure the environment variables to check the build toolchain, using the following commands as a reference:
So far, we have completed the installation and deployment of the development environment. Please refer to the subsequent sections to learn how to use D-Robotics-LLM for the quantization conversion and board-side deployment of large models.