Runtime Environment (Image) Overview
Common Dependencies in Runtime Environments
HyperAI includes a large number of basic dependencies in the runtime environment by default to reduce the consumption of runtime resources for downloading and installing dependencies each time a container starts.
Note
Pre-installed dependencies and their versions may vary across different runtime images, tags, and update releases. The content on this page is best used as a reference for "common environments" and "dependency management practices." It is not recommended to treat the listed packages as a fixed inventory applicable to all runtimes.
The information below is based on a live runtime instance (verified as of March 2026):
- Ubuntu 22.04.5 LTS
- Conda Root Environment: Located at
/usr/local - Python
3.10.13 - JupyterLab
4.5.5 - Notebook
7.5.3 - CUDA Driver
13.0 nvcc12.9
To verify the actual environment inside your current container, it is recommended to run the following commands in the terminal:
python --version
pip list
conda list
jupyter --version
nvidia-smiNote
- The runtime provides the
pythoncommand (pointing to the Python in the Conda environment), which is ready for immediate use. - The Python version is managed by Conda, but it is recommended to use
pipfor installing most Python dependencies. condais primarily intended for creating new environments or installing conda-only packages.uvis not used for dependency management in the current runtime. Please usepiporcondato install your dependencies.
Pre-installed dependencies can be categorized into the following areas by purpose:
1. General Machine Learning Libraries
- scikit-learn General machine learning library containing numerous machine learning models, data analysis, data mining algorithms, and visualization tools.
- ONNX Deep learning model conversion library.
- ONNX Runtime ONNX model inference runtime.
- PyTorch Deep learning framework. Certain runtime environments include pre-installed versions of both
torchvisionandtorchaudio.
Note
The packages listed above are common machine learning libraries verified to exist in the current runtime instance. Whether other packages—such as xgboost, spaCy, LightGBM, or TensorFlow —are pre-installed depends entirely on the specific runtime image you select. It is recommended not to assume their presence by default.
2. Image Processing Tools
Commonly used graphics processing libraries
3. Data Analysis Libraries
- pandas
- SciPy
- Matplotlib
- NumPy
In addition to the libraries listed above, some runtimes may also include other scientific computing or inference-related dependencies. However, it is recommended to always rely on the actual contents of the current container as the authoritative source.
How to Add Dependencies Not in the List
The default HyperAI runtime environment has already installed a large number of dependencies for machine learning scenarios. If you still need additional dependencies, you can install them through the following methods.
info
The runtime environment is managed with Conda, which supports Conda installing additional dependencies.
warning
Each runtime environment has a different CUDA version installed. When installing additional dependencies, be sure to ensure they match the CUDA environment in the runtime environment.
Installing Python Libraries
If you need some additional dependencies when uploading code and running it in "Python script execution" mode, you can define a file named hyperai_requirements.txt or requirements.txt in the root directory of the uploaded code, add the required dependencies, and upload it along with other files. Before the code runs, the system will first install these dependencies before executing the "Python script".
The format of this file's content is consistent with Python's requirements.txt format. A typical hyperai_requirements.txt file content is as follows:
jieba
tqdm==4.11.2Where jieba and tqdm are two libraries that can be installed via pip. Using the above format will install these libraries first before executing the "Python script". The == after tqdm==4.11.2 specifies the specific version to be installed.
warning
Core dependencies in the system, such as tensorflow and torch , are not recommended to be modified arbitrarily. Different versions may have varying requirements for underlying CUDA, compiled artifacts, and other dependencies, which can easily lead to environment corruption or compatibility issues in the current runtime.
Dependency Management via Conda
For the "Workspace" section, see Managing Dependencies with Conda.
For "Python Script Execution", you can provide a file named conda-packages.txt in the root directory of the uploaded code. The file format follows:
[channel::]package[=version[=buildid]]
Here is an example:
conda-forge::rdkit
conda-forge::pygpuIf requirements.txt, hyperai_requirements.txt, and conda-packages.txt exist simultaneously, dependencies in conda-packages.txt will be installed first, followed by dependencies in hyperai_requirements.txt and requirements.txt.
Installing Other Dependencies
If you are in a "Jupyter Workspace", please refer to the next section. For "Python Script Execution" scenarios, you can install additional non-Python dependencies using the following methods:
-
Include dependency installation commands in the "Execution Command".
For example, if you want to download necessary git repositories before running the program, you can use the following "Execution Command":
$ git clone https://github.com/tensorflow/models.git && cd models && python ... -
Prepare a
dependencies.shscript.For dependencies that are not from Conda or PyPI, you can provide a file named
dependencies.shin the root directory. It will be executed bybashwhen "Python Script Execution" starts, and its execution will occur before the installation of dependencies fromhyperai_requirements.txt,requirements.txt, andconda-packages.txt.Here is a
dependencies.shscript example with the following content:dependencies.sh git clone https://github.com/tensorflow/models.git cd models pip install -r requirements.txt
info
Your runtime environment is Linux Ubuntu. If you want to install additional package dependencies, you can use the apt-get or apt command. Usually, you need to execute apt-get update or apt update before installation.
Installing Dependencies in Jupyter Workspace
In the “Jupyter Workspace,” you can install any dependencies you need, including both Python packages and system-level dependencies via apt.
It is recommended to use %pip install jieba first. Compared with !pip install jieba , it is better suited for Notebook environments because it explicitly installs the package into the Python environment used by the current kernel.
If you need to install system packages, you can run apt-get update && apt-get install -y <package>in the terminal, or execute !apt-get update && apt-get install -y <package>directly in the Notebook.
Persisting pip Dependencies
By default, dependencies installed via pip are usually stored in the system environment. After a container restart, they often need to be reinstalled.
If you install packages using the --user flag, the dependencies will be saved in the corresponding user directory. In the current runtime, PYTHONUSERBASE typically points to /output/.pylibs; and /hyperai/home is usually linked to /output, so you can think of it as being stored in the workspace. When the “workspace” is closed and later reopened, these dependencies are generally preserved along with the workspace.
1. Removing Unnecessary Dependencies
If you do not want to keep these dependencies, you can add the command rm -rf /output/.pylibs in the “run command” section. Since /hyperai/home is usually linked to /output, deleting /hyperai/home/.pylibs will achieve the same effect.
2. Requiring Different Python Versions
If you need a different Python version, you can create a new isolated environment under the /hyperai/home directory and install the full set of dependencies there. Please choose the appropriate documentation based on your runtime type:
- Conda-based runtimes (Ubuntu 22.04 and earlier): Dependency Management with Conda
- uv-based runtimes (Ubuntu 24.04 and newer, such as
vllm 0.20and later): Managing Python environments with uv
If you are not sure which runtime you are using, run conda --version in the terminal: if it returns a version number, it is a Conda runtime; if it shows command not found, it is a uv runtime.
The Python version in the current HyperAI runtime is not fixed. The example checked in this document shows Python 3.10.13, but your selected runtime may differ, so it is recommended to verify it using python --version.
Note
After creating a completely new environment using conda or uv venv, do not install dependencies with the pip --user flag. Once --user is used, dependencies will be placed under /hyperai/home/.pylibs instead of the newly created environment, which may lead to dependency conflicts.
Installing Jupyter Workspace Extensions
“Jupyter Workspace” supports installing extensions, but the installation method varies depending on the JupyterLab major version. Newer runtimes typically use JupyterLab 4, and many extensions have been migrated to Python package distribution. Installation methods commonly used in older versions, such as jupyter labextension install ..., may no longer be applicable.
It is recommended to first check the current environment:
jupyter --version
jupyter labextension listIf the official documentation of the target extension clearly states that it supports the current JupyterLab version, then install it using the corresponding method. For JupyterLab 4, it is more common to install the extension directly as a Python package, for example:
pip install <extension-package>After installation, you can run jupyter labextension list again to verify the extension status.
Open a .ipynb file again, and you can see the "Table of Contents" tab appears on the left side. Click it to see the directory of the current file.