Skip to content

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

22 stars

Watchers

0 watching

Forks

Repository files navigation

Serverless AI Cookbook

License

Run GPU workloads on Nebius Serverless β€” no infrastructure management, per-second billing, GPU in minutes.

This repo contains runnable code samples for Serverless AI Jobs (batch workloads that auto-terminate) and Endpoints (persistent HTTP-accessible services), plus 1-click templates that open the Nebius Console with fields pre-filled. Examples cover model training, fine-tuning, inference serving, AI agents, and scientific simulations.

Quickstart (30 seconds)

Spin up a GPU job and verify your setup:

nebius ai job create \
  --name my-first-job \
  --image nvidia/cuda:13.1.1-runtime-ubuntu24.04 \
  --container-command bash \
  --args "-c nvidia-smi" \
  --platform gpu-l40s-a \
  --preset 1gpu-8vcpu-32gb \
  --timeout 15m

# Get the job ID and stream logs
export JOB_ID=$(nebius ai job get-by-name --name my-first-job \
  --format jsonpath='{.metadata.id}')
nebius ai logs "$JOB_ID"

β†’ Full walkthrough: first-job.md

Prerequisites

  1. Create a Nebius account and set up a project
  2. Install the Nebius CLI
  3. Configure your CLI profile

Example catalog

Pick the section that matches your goal β€” each links to runnable examples:

  • πŸš€ Quickstarts β€” lowest-friction first runs.
  • πŸ“¦ Templates β€” 1-click Console deploy (pre-filled create forms).
  • πŸ‹οΈ Training β€” model training and fine-tuning workloads.
  • ⚑ Inference β€” endpoint serving and batch inference workloads.
  • πŸ€– Agents β€” AI gateway and agent deployments.
  • 🧬 Life Science β€” domain-specific simulation and analysis workloads.
  • 🦾 Robotics β€” simulation, dataset generation, and robotics workflows.

πŸš€ Quickstarts

Lowest-friction first runs.

πŸ“¦ Templates

1-click deploy into the Nebius Console β€” fields pre-filled; adjust before create if needed.

Template Deploy Modality
Qwen3-0.6B Create Endpoint LLM
Qwen3-VL-Embedding-8B Create Endpoint Embeddings
Cosmos 3 Reasoner Create Endpoint Physical AI
Cosmos 3 Generator Create Endpoint Physical AI
AutoDock-GPU REST + MCP Create Endpoint Molecular docking (AutoDock-GPU is GPL-2.0)
AutoDock Vina REST + MCP Create Endpoint Molecular docking
OpenMM REST + MCP Create Endpoint Molecular dynamics (OpenMM is MIT + LGPL-3.0)
Sana Create Endpoint Text-to-image
Qwen-Image-Edit-2511 Create Endpoint Image-to-image
Wan2.1-T2V-1.3B Create Endpoint Text-to-video
Wan2.2-I2V-A14B Create Endpoint Image-to-video
Kokoro-82M Create Endpoint Text-to-speech
GROMACS REST + MCP Create Endpoint Molecular dynamics

β†’ Full catalog (music, fine-tuning jobs, more): templates/README.md

πŸ‹οΈ Training

Model training and fine-tuning workloads.

⚑ Inference

Endpoint serving and batch inference workloads.

  • document-search β€” index 1,000 reference passages with Qwen in a Serverless Job and search the saved embeddings
  • batch-video-generation β€” generate 200 Wan clips from VBench prompts and resume unfinished downloads
  • vllm-endpoint β€” serve Qwen with an OpenAI-compatible vLLM endpoint
  • nim-endpoint β€” deploy an NVIDIA NIM as an endpoint, including the large-image Container Registry workaround
  • two-models-one-endpoint β€” run two vLLM models on one multi-GPU endpoint, split by CUDA_VISIBLE_DEVICES, each on its own port and URL
  • flux2-klein-lora β€” build and serve a verified FLUX.2 Klein base 4B LoRA image endpoint

πŸ€– Agents

AI gateway and agent deployments.

  • openclaw β€” deploy OpenClaw AI gateway on a CPU endpoint, connected to TokenFactory

🧬 Life Science

Domain-specific simulation and analysis workloads.

  • bionemo-agent β€” deploy an NVIDIA NeMo Agent Toolkit BioNeMo research assistant with a GPU BioNeMo-compatible service
  • rfd4-proteina β€” protein design with NVIDIA NIM or the public Hugging Face model, using bucket inputs and outputs
  • openmm-simulation β€” run GPU-backed molecular dynamics simulations with OpenMM
  • parabricks-deepvariant β€” run NVIDIA Parabricks DeepVariant genomics workflows with Nebius AI Jobs

🦾 Robotics

Robotics and physical-AI experiment loops.

  • isaac-pick-place-sweep β€” run one Isaac Sim GPU job per Franka sweep case; verify S3 results and replay recorded motion
  • lerobot-finetune-job β€” fine-tune a LeRobot ACT or Diffusion policy on a robotics dataset in a serverless GPU job
  • smolva-ft-norma-core β€” fine-tune SmolVLA for SO-101 with bundled trajectories
  • unity-pick-and-place-demo β€” run Unity UR3 pick-and-place with ROS 2 and a shipped learned servo in one Nebius GPU job; verify video, recordings, and task evidence from Object Storage

Awesome Community Projects

External examples and writeups from the community running serverless workloads on Nebius. Got something to add? Open a PR.

Training / Fine-tuning

  • πŸ›‘οΈ rl-gym β€” Audited RLVR for secure Terraform β€” Train open models with SFT + GRPO on Nebius Serverless AI Jobs to generate secure Terraform, using verifiable security rewards, self-repair, and reward-hacking audits. Future work extends the same training and audit pipeline to Kubernetes, tool-calling, and voice environments. β€” by Nikita Shigarov Β· πŸ’» code Β· πŸ“ post

Robotics

  • πŸ€– Positronic + Nebius serverless workflows β€” Convert datasets, train ACT/SmolVLA, and serve checkpoints as endpoints β€” all serverless on Nebius. β€” by vertix Β· πŸ’» code
  • 🦾 norma-core SmolVLA β€” Nebius fine-tune recipe β€” Upstream recipe the robotics/smolva-ft-norma-core example mirrors. β€” by norma-core Β· πŸ’» code
  • πŸ”© Soft-surface washer pick with Nebius Serverless AI Jobs β€” A UR10e in Isaac Sim flips a flat washer off a compliant surface; 38 H100 Jobs co-optimize material Γ— maneuver, ES-training checkpoints ride home base64-encoded in the job logs, and a CPU Endpoint serves the grasp-success scorer. β€” by David Cox Β· πŸ’» code Β· 🎬 video

MLOps / Pipelines

  • 🎬 Video transcription pipeline with Prefect + Nebius β€” Prefect flows orchestrating S3 + ffmpeg (CPU job) + Whisper (GPU job) on Nebius. β€” by Darko Mesaros Β· πŸ’» code Β· πŸ“ post

Finance / Market Surveillance

  • πŸ“ˆ LOB Arena β€” Adversarial market-surveillance evaluation β€” Governed historical + synthetic order-book validation platform for benchmarking surveillance detectors, with Nebius Serverless AI Jobs and Endpoints for scalable evaluation and AI-assisted investigation. β€” by Alexey Khabalov Β· πŸ’» code Β· πŸ“ post

Repository structure

serverless-cookbook/
β”œβ”€β”€ quickstarts/          # Lowest-friction first runs
β”œβ”€β”€ templates/            # 1-click Console deploy templates
β”œβ”€β”€ training/             # Model training and fine-tuning
β”œβ”€β”€ inference/            # Endpoint serving and batch inference
β”œβ”€β”€ agents/               # AI gateway and agent deployments
β”œβ”€β”€ life-science/         # Domain-specific simulations
β”œβ”€β”€ robotics/             # Robotics and physical-AI workflows
β”œβ”€β”€ CONTRIBUTING.md
└── DEVELOPER_GUIDE.md

Resources

Acknowledgements

This repository is based on mnrozhkov/serverless-cookbook. Thanks to the original contributors: Mikhail Rozhkov, Gleb Berjoskin, Aleksandr Dzhumurat, and Re Alvarez Parmar.

See CONTRIBUTORS.md for the full list.

License

Copyright 2026 Nebius B.V.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Apache and the Apache logo are either registered trademarks or trademarks of The Apache Software Foundation in the United States and/or other countries.


Note: This repository is maintained by Nebius engineers as a community resource β€” not official product documentation. APIs and behavior may evolve. For authoritative reference, see docs.nebius.com/serverless.

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

22 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages