Skip to main content

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.

This section presents the SDK Appliance API reference for running SDK programs on a Cerebras Wafer-Scale Cluster (WSC). See Running SDK on a Wafer-Scale Cluster for an introduction to running in appliance mode on a Wafer-Scale Cluster.

SdkCompiler

Python API for compiling SDK programs on a Cerebras Wafer-Scale Cluster.
class cerebras.sdk.client.SdkCompiler(**kwargs)
Bases: object
Manages the generation of compile artifacts on a Cerebras Wafer-Scale Cluster using the CSL compiler.SdkCompiler must be used via a context manager.

SdkLauncher

class cerebras.sdk.client.SdkLauncher(artifact_path: str, **kwargs)
Bases: object
The SdkLauncher API can be used to upload artifacts, run custom commands in the appliance, and use custom scripts written as if the system was not in appliance mode and the user were running directly from a worker node.The user must use the %CMADDR% template string to pass the system address to a run script.

SdkRuntime

Note
The SdkRuntime appliance bindings are deprecated. Use SdkLauncher to wrap an SDK host Python script instead.
class cerebras.sdk.client.SdkRuntime(artifact_path: str, **kwargs)
Bases: object
Manages the execution of SDK programs on the Cerebras Wafer-Scale Cluster appliance. The constructor analyzes the WSE ELFs in the bindir and prepares the WSE or simfabric for a run.SdkRuntime must be used via a context manager.

Task

class cerebras.sdk.client.Task
Handle to a task launched by SdkRuntime.

MemcpyDataType

class cerebras.appliance.pb.sdk.sdk_common_pb2.MemcpyDataType
Bases: Enum
Specifies the data size for transfers using SdkRuntime.memcpy_d2h() and SdkRuntime.memcpy_h2d() copy mode.
Values:
  • MEMCPY_16BIT
  • MEMCPY_32BIT

MemcpyOrder

class cerebras.appliance.pb.sdk.sdk_common_pb2.MemcpyOrder
Bases: Enum
Specifies mapping of data for transfers using SdkRuntime.memcpy_d2h() and SdkRuntime.memcpy_h2d().
Values:
  • ROW_MAJOR
  • COL_MAJOR

sdk_utils

Utility functions for common operations with SdkRuntime. Import from cerebras.sdk.client.sdk_utils. See sdk_utils module.

debug_util

Utilities for parsing debug output and core files of a simulator run. Import from cerebras.sdk.client.debug_util. See debug_util module.