Tutorials¶
Explore the following tutorials for a better understanding of how to use the RBLN SDK.
RBLN Compiler¶
These tutorials demonstrate how to use the RBLN Python API (Compile and Runtime APIs) for PyTorch and TensorFlow models. The TensorFlow tutorials target TensorFlow 2.18 with tf_keras (the Keras 2 API); Keras 3 is not supported.
-
PyTorch ResNet50 (Vision)
Compiling a TorchVisionResNet50model with the RBLN Compile API and running inference. -
PyTorch BERT (NLP)
Compiling a PyTorchBERT-basemodel with the RBLN Compile API and running inference. -
TensorFlow EfficientNetB0 (Vision)
Compiling a TF Keras ApplicationsEfficientNet-B0model with the RBLN Compile API and running inference. -
Concurrent Processing
Running models asynchronously with the RBLN Runtime API (AsyncRuntime). -
Bucketing
Compiling a model that supports multiple input shapes with a single runtime.
RBLN C/C++ Runtime API¶
These tutorials demonstrate how to deploy precompiled models using the RBLN C/C++ Runtime API.
-
Image Classification
Deploying the PyTorchResNet50model with the RBLN C/C++ Runtime API. -
Object Detection
Deploying the PyTorchYOLOv8model with the RBLN C/C++ Runtime API.
RBLN Optimum (HuggingFace Model Support)¶
These tutorials demonstrate how to compile and run inference on HuggingFace models with RBLN Optimum.
-
Llama3-8B (Chatbot)
Compiling and deploying theLlama3-8Bmodel on a single Rebel100™ NPU with RBLN Optimum. -
Qwen3-VL-2B (VLM)
Running a Vision-Language Model effectively on Rebel100™ with RBLN Optimum. -
Gemma-4-31B (Bucketing)
Compiling the denseGemma4model with bucketing, so one runtime handles several input shapes.
-
SDXL-Turbo (Image Generation)
Compiling and deployingSDXL-Turboand generating images with RBLN Optimum. -
Llama3-8B (Chatbot)
Compiling and deploying theLlama3-8Bmodel across multiple RBLN NPUs with RBLN Optimum. -
Qwen3-VL-2B (VLM)
Running a Vision-Language Model effectively on RBLN NPUs with RBLN Optimum. -
Gemma-4-31B (Bucketing)
Compiling the denseGemma4model across multiple RBLN NPUs with bucketing, so one runtime handles several input shapes. -
Cosmos WFMs (World Foundation Models)
Compiling the Cosmos world foundation models for physical AI and running video generation and reasoning with RBLN Optimum.
RBLN Profiler¶
These tutorials demonstrate how to profile and analyze models during inference using the RBLN Runtime.
-
Model Profiling
Profiling models during inference using the RBLN Runtime. -
Analyze with Perfetto
Analyzing the profiling results with the visualization tool Perfetto.
-
Qwen3-1.7B (Text Generation)
ProfilingQwen3-1.7Band analyzing computation distributed across the chiplets of a Rebel100™ device. -
gpt-oss-20b
Profilinggpt-oss-20bserved with RBLN vLLM and analyzing its execution on Rebel100™. -
gpt-oss-20b (Data Parallelism)
Profiling agpt-oss-20brun divided across several ranks by data parallelism.
-
YOLOv8 (Object Detection)
ProfilingYOLOv8land analyzing the results with Perfetto. -
Stable Diffusion 3 (Image Generation)
Profilingstable-diffusion-3-text-to-imageand analyzing the results with Perfetto. -
Llama3-8B (Text Generation)
ProfilingLlama3-8Band analyzing the results with Perfetto.
RBLN PyTorch¶
These tutorials demonstrate how to run PyTorch code on RBLN NPUs with torch-rbln.
-
Running and Debugging with torch-rbln
Running a simple example consisting oftorch.addand debugging it. -
Profiling on Rebel100™
Measuring device time per program withtorch.profileron Rebel100™. -
Collectives across Cards with rbln-ccl
Exchanging tensors between Rebel100™ cards throughtorch.distributedwith therbln-cclbackend. -
Llama3.2-1B
Running atransformersmodel withtorch-rbln.
Model Serving¶
These tutorials demonstrate how to serve models with RBLN vLLM, NVIDIA Triton Inference Server, Ray Serve, and TorchServe.