Troubleshoot¶
This page lists common issues in RBLN Optimum and their resolutions.
Runtime creation fails after compilation¶
from_pretrained creates runtimes on the NPU immediately after compilation. Device memory exhaustion is not the only possible cause, so inspect the original exception at the top of the message first. To skip runtime creation:
Load the saved artifacts separately:
Device / num_devices configuration errors¶
Validation of device and num_devices may raise any of these errors:
A device ID that does not exist on the host. When device is not set, it defaults to 0 … num_devices - 1, so asking for more NPUs than the host has also ends here, at the first missing ID.
The device list and num_devices disagree in length.
Every listed ID exists, but there are fewer NPUs than num_devices, which happens only when the device list repeats an ID (for example device=[0, 0] on a host with one NPU).
Run rbln-smi to list available devices, then verify the following:
- The specified device IDs exist on the system.
num_devices≤ the number of available devices.- The
devicelist length equalsnum_devices.
Flash attention configuration errors¶
Flash attention is enabled by setting attn_impl="flash_attn" or kvcache_partition_len. Compilation fails when any of the following constraints is violated:
max_seq_lenmust be a multiple ofkvcache_partition_lenand at least2 × kvcache_partition_len.kvcache_partition_lenmust be within the range of the target NPU, somax_seq_lenis at least 2,048 on every NPU.
The limits follow the target NPU: npu in rbln_config when it is set, otherwise the NPU attached to the host. On a host with no NPU and no npu set, the ATOM™ limits apply, so set npu (for example rbln_npu="RBLN-CR13") when compiling for Rebel100™ there.
Rebel100™ (RBLN-CR*) | |
|---|---|
kvcache_partition_len | 1,024 – 16,384 |
max_seq_len | ≥ 2,048 |
Default kvcache_partition_len when only attn_impl="flash_attn" is set | 8,192 |
A partition outside the range fails with:
With the default partition of 8,192, max_seq_len must be at least 16,384. The Model Zoo compiles Qwen3-8B for Rebel100™ with max_seq_len=40_960 and kvcache_partition_len=8_192.
ATOM™ (RBLN-CA*) | |
|---|---|
kvcache_partition_len | 1,024 – 32,768 |
max_seq_len | ≥ 2,048 |
Default kvcache_partition_len when only attn_impl="flash_attn" is set | 16,384 |
A partition outside the range fails with:
With the default partition of 16,384, max_seq_len must be at least 32,768. The Model Zoo compiles Qwen3-8B for ATOM™ with max_seq_len=40_960 and kvcache_partition_len=8_192.
Logging and debugging¶
Control log verbosity with the OPTIMUM_RBLN_VERBOSE environment variable (default info):
Supported levels: debug, info, warning, error, critical.