This guide provides step-by-step instructions for installing the Singularity container build of the Cerebras Software Development Kit (SDK). This is the way to use the SDK if you’re running the fabric simulator locally on your own machine, or you’re using a legacy Cerebras system installation. For information about using the SDK on Cerebras Wafer-Scale Clusters running in appliance mode, see Running SDK on a Wafer-Scale Cluster.Documentation Index
Fetch the complete documentation index at: https://sdk.cerebras.ai/llms.txt
Use this file to discover all available pages before exploring further.
Getting Access
The Cerebras SDK Singularity container is available upon request at this link. A repository of example programs can be found on GitHub.Summary
The files you downloaded from Cerebras will contain the SDK software consisting of several scripts, folders, and other files such as the EULA. The SDK software is composed of a Singularity Image File namedsdk-cbcore-{build id}.sif.
There are helper scripts to access the relevant functionality of the SIF: cslc, cs_python,
csdb, cs_readelf, and sdk_debug_shell.
Requirements
- Apptainer or SingularityCE: Apptainer, SingularityCE or another container platform capable of running Singularity containers is required for hosting the Cerebras SDK container image. See the Apptainer Quick Start or SingularityCE Quick Start guide for instructions on how to set up Singularity.
- Overlay Filesystem: The SDK requires that the overlay filesystem functionality is available on your Linux system. If your Linux kernel version is 3.18 or later then the overlay filesystem functionality is already available.
- Bash: The SDK requires Bash on your Linux system.
(Optional) Hash check with sha256sum
After downloading the files on Dropbox, you should have the following files in the same directory:
Cerebras-SDK-2.10.0-{build_id}.tar.gz: The tarball containing the Singularity container.sha256sum.txt: A text file containing the hash of all the tarball.
OK, then the downloaded files are not corrupted and are good to use.
Extract the files
-
To extract the SDK contents, first set the following environment variables.
The
SDK_INSTALL_LOCATIONis the location you want to install the Cerebras SDK. This can be any (writable) directory.SDK_INSTALL_LOCATIONandSDK_TAR_PATHshould be absolute paths.
- Create the directory where you will install the Cerebras SDK, and extract the files from the downloaded tar file into that directory.
Extracted files
Verify that the following files are present in the$SDK_INSTALL_PATH directory:
sdk-cbcore-{build id}.sif: This is the SDK software. This file is about 3GB.cerebras-software-eula.pdf: This is the End User License Agreement.csdb: This is a script for running hardware debug tools.cslc: This is a script for running the CSL compiler.cs_python: This is a script for running Python code using the version of Python provided in the.sif.cs_readelf: This is a script for running a Cerebras alternative toreadelf.sdk_debug_shell: This is a script for running simulation debug tools, including the smoke test and the SDK GUI.sdk-gui-LICENSE.txt: This is the license for the GUI tool included.csl-extras-{build id}.tar.gz: This is a tarball containing example programs and additional extras.examples/: This is a folder containing SDK example programs, including tutorials.syntax_highlight/: This is a folder containing a CSL syntax highlighter for vi/vim and VS Code IDE.
Installing the SDK software
Continue with the below steps to install the SDK software.- Add the Cerebras SDK to your PATH.
- Add PATH update command to .bashrc:
Test
- Make sure you are in the install directory by running the below command:
- Untar the examples if you have not done so already, and run a basic smoke test to verify that the included examples compile and run as expected:
SINGULARITYENV_CSL_SUPPRESS_SIMFAB_TRACE=1
when running the smoke test to prevent the generation of simfab_traces for use with the
SDK GUI.
This will greatly decrease wall clock time and disk space used by the smoke test.
Note that you will need to unset this environment variable before
running examples for use with the SDK GUI.
This smoke test will run all example programs in the simulator. If successful, your final output should be as below:
smoke test indicates that the package is installed and setup correctly.
-
(Optional) Test for verifying SDK Debug GUI tool using the
gemm-collectives_2dexample:- Run the
gemm-collectives_2dtest:
- Run the
- Run the SDK Debug GUI:
- Navigate to this URL in your browser:

Apple Silicon Mac Installation
The recommended method for running the Cerebras SDK on an Apple Silicon Mac is via a Lima Linux virtual machine. The documentation for Lima can be found here. Either Rosetta or QEMU can be used to run the SDK. If available, Rosetta is recommended for much better performance.Rosetta-based installation
First, install Lima viabrew:
config.yml is provided as an example,
with your Mac’s home directory and /tmp/lima mounted as writeable directories:
QEMU-based installation
First, install Lima and the QEMU emulator viabrew:
config.yml is provided as an example,
with your Mac’s home directory and /tmp/lima mounted as writeable directories:
Common setup
Saving the above contents (either QEMU or Rosetta) into a file namedconfig.yml or using your own configuration,
create a new Lima virtual machine:
PATH, and run:
127.0.0.1:8000/sdk-gui.
Using Additional Python Packages
The providedcs_python script runs the host code from the Python environment
located within the container.
Occasionally, you may want to add additional external packages to this Python environment.
To do this, save the following script as sdk_install_python_package.sh:
MY_LOCAL_PY_PATH:
cs_python, set SINGULARITYENV_PYTHONPATH with your installed package’s
location:

