# CoreWeave Docs: English SUNK > Learn how to deploy, manage, and observe your AI training and inference workloads on CoreWeave. ## SUNK - [About SUNK](https://docs.coreweave.com/products/sunk.md): Run Slurm on Kubernetes with SUNK, in the SUNK Standard or SUNK Self-Service operation mode - [Choose a SUNK operation mode](https://docs.coreweave.com/products/sunk/choose-operation-mode.md): Pick SUNK Standard or SUNK Self-Service based on who operates the control plane and what you need to configure - [About SUNK Self-Service](https://docs.coreweave.com/products/sunk/about-self-service-sunk.md): The operation mode in which CoreWeave runs SUNK for you on CKS. Declare a Slurm cluster as one SunkCluster resource. ### Concepts - [Compute and login nodes](https://docs.coreweave.com/products/sunk/discover_sunk/compute_and_login_nodes.md): Understand the roles of SUNK compute nodes and login nodes as Kubernetes Pods running Slurm - [Three-layer orchestration model](https://docs.coreweave.com/products/sunk/discover_sunk/three-layers-of-orchestration.md): Understand CoreWeave's three-layer orchestration model - [SUNK Self-Service cluster lifecycle and reconciliation](https://docs.coreweave.com/products/sunk/discover_sunk/cluster-lifecycle-and-reconciliation.md): How a SUNK Self-Service cluster is created and reconciled, and how to read its status conditions to track progress - [SUNK Self-Service architecture](https://docs.coreweave.com/products/sunk/discover_sunk/self-service-architecture.md): The two operators behind SUNK Self-Service: where each runs, what it watches, and what it creates - [NodeSet](https://docs.coreweave.com/products/sunk/discover_sunk/nodeset.md): The NodeSet CRD that represents a set of Slurm nodes as Kubernetes Pods with 1:1 Node mapping - [Syncer](https://docs.coreweave.com/products/sunk/discover_sunk/syncer.md): How the SUNK Syncer bidirectionally synchronizes state between Slurm nodes and Kubernetes Pods - [SUNK Pod Scheduler](https://docs.coreweave.com/products/sunk/discover_sunk/scheduler.md): How the SUNK Pod Scheduler uses Slurm's scheduling mechanism to schedule Kubernetes Pods - [Node Controller](https://docs.coreweave.com/products/sunk/discover_sunk/node-controller.md): How the SUNK Node Controller synchronizes data between Kubernetes Nodes and slurmd Pods - [Pod Controller](https://docs.coreweave.com/products/sunk/discover_sunk/pod-controller.md): How the SUNK Pod Controller synchronizes data from Kubernetes Nodes to Pods for cordon and lock state - [Node locking](https://docs.coreweave.com/products/sunk/discover_sunk/node-locking.md): How SUNK locks Kubernetes Nodes to prevent other workloads during active Slurm job execution - [SlurmCluster](https://docs.coreweave.com/products/sunk/discover_sunk/slurmcluster.md): The SlurmCluster CRD that configures cluster-wide Slurm information and generates topology files - [Introduction to GPU Straggler Detection](https://docs.coreweave.com/products/sunk/discover_sunk/straggler-detection.md): Learn about GPU Straggler Detection, part of CoreWeave Mission Controlâ„¢ - [Fault tolerance in SUNK](https://docs.coreweave.com/products/sunk/discover_sunk/fault-tolerance.md): How CoreWeave removes failing Nodes and how Slurm requeue restarts your SUNK jobs after a failure - [ML container images](https://docs.coreweave.com/products/sunk/discover_sunk/ml-containers.md): Overview of CoreWeave's optimized PyTorch container images for distributed training on CKS and SUNK - [Choose and troubleshoot a training container image](https://docs.coreweave.com/products/sunk/discover_sunk/choosing-training-images.md): Pick a production-safe ML container tag, match CUDA to your GPU driver, and diagnose image-related failures ### Tutorials - [Run GitHub Actions runners on SUNK](https://docs.coreweave.com/products/sunk/tutorials/github-actions-runners.md): Deploy self-hosted GitHub Actions runners using Actions Runner Controller (ARC) - [Run notebooks on SUNK](https://docs.coreweave.com/products/sunk/tutorials/notebooks-on-sunk.md): Run interactive marimo and Jupyter notebooks on SUNK clusters with GPU resources - [Profile Python applications on SUNK](https://docs.coreweave.com/products/sunk/tutorials/profiling-python-apps-in-kubernetes.md): Profile Python applications running in Slurm jobs using py-spy and Linux perf tools - [Run Ray on SUNK](https://docs.coreweave.com/products/sunk/tutorials/ray-on-sunk.md): Integrate Ray's distributed computing framework with SUNK's Slurm-based scheduler for parallel workloads - [Run SkyPilot on SUNK](https://docs.coreweave.com/products/sunk/tutorials/skypilot-on-sunk.md): Use SkyPilot to run containerized GPU workloads and interactive development sessions on SUNK - [Run SWE-bench in SUNK with Docker](https://docs.coreweave.com/products/sunk/tutorials/swe-bench-in-sunk.md): Run the SWE-bench LLM benchmark on SUNK using Docker-in-Docker with GPU resources - [Run torchforge on SUNK](https://docs.coreweave.com/products/sunk/tutorials/torchforge-on-sunk.md): Run Grouped Relative Policy Optimization (GRPO) training with torchforge on SUNK - [Run veRL on SUNK](https://docs.coreweave.com/products/sunk/tutorials/verl-on-sunk.md): Run Group Relative Policy Optimization (GRPO) training with veRL on SUNK #### Train on SUNK - [Train on SUNK](https://docs.coreweave.com/products/sunk/tutorials/train-on-sunk.md): Multi-part tutorial for training a model on SUNK using Slurm, from cluster setup to job monitoring - [1. Set up a Slurm cluster](https://docs.coreweave.com/products/sunk/tutorials/train-on-sunk/1-set-up-slurm-cluster.md): Connect to a Slurm login node through SSH and verify cluster access to begin training on SUNK - [2. Submit a simple job to the cluster](https://docs.coreweave.com/products/sunk/tutorials/train-on-sunk/2-submit-simple-job.md): Prepare and submit a basic Slurm batch job script with SBATCH directives and environment variables - [3. Submit a training job with PyTorch or TensorFlow](https://docs.coreweave.com/products/sunk/tutorials/train-on-sunk/3-submit-a-training-job.md): Submit multi-node, multi-GPU distributed training jobs using PyTorch torchrun on Slurm - [4. Monitor jobs with Grafana](https://docs.coreweave.com/products/sunk/tutorials/train-on-sunk/4-monitor-jobs.md): Monitor Slurm training jobs using CoreWeave's Grafana dashboards for GPU utilization and performance metrics ### Deploy SUNK - [Configure individual login Pods](https://docs.coreweave.com/products/sunk/deploy_sunk/configure-slurm-individual-login.md): Configure per-user Slurm login Pods on SUNK 7.x and earlier through the slurm-login subchart #### SUNK Self-Service - [Create a SUNK Self-Service cluster](https://docs.coreweave.com/products/sunk/deploy_sunk/create-sunk-cluster.md): Create a SUNK Self-Service cluster on CKS using the Cloud Console or a SunkCluster custom resource - [Upgrade a SUNK Self-Service cluster](https://docs.coreweave.com/products/sunk/deploy_sunk/upgrade-sunk-cluster.md): Upgrade or patch a SUNK Self-Service cluster by changing its version fields, and what to expect during the rollout - [Get started with SUNK Self-Service using the SunkCluster CR](https://docs.coreweave.com/products/sunk/tutorials/get-started-with-sunkcluster-cr.md): Stand up a SUNK Self-Service cluster end to end by applying a SunkCluster custom resource to a CKS cluster #### SUNK Standard - [Manage a SUNK Standard deployment with CI and GitOps](https://docs.coreweave.com/products/sunk/deploy_sunk/manage-deployment-with-ci.md): Manage a SUNK Standard deployment with ArgoCD and GitOps-based CI workflows - [Configure compute nodes for SUNK Standard](https://docs.coreweave.com/products/sunk/deploy_sunk/configure-compute-nodes.md): Define Slurm compute node resources in the Slurm Helm chart values for SUNK Standard - [Bind NodeSets to Node Pools for SUNK Standard](https://docs.coreweave.com/products/sunk/deploy_sunk/bind-nodesets-to-node-pools.md): Match Node Pool labels and taints to NodeSet affinity and tolerations so slurmd Pods land on the intended Nodes ### SUNK Anywhere - [About SUNK Anywhere](https://docs.coreweave.com/products/sunk/sunk_anywhere/about.md): Run SUNK Standard under license on a Kubernetes cluster that CoreWeave doesn't operate, such as GKE or EKS - [Get started with SUNK Anywhere](https://docs.coreweave.com/products/sunk/sunk_anywhere/get-started.md): Pull the SUNK operator image and Helm charts with a CoreWeave API access token, then deploy SUNK on your own cluster ### Access SUNK - [Connect to the Slurm login node](https://docs.coreweave.com/products/sunk/access_sunk/connect-to-slurm-login-node.md): Connect to an individual Slurm login node using SSH - [Access Slurm compute nodes](https://docs.coreweave.com/products/sunk/access_sunk/access-slurm-compute-nodes.md): Open a shell on a compute node, attach to a job's running container, or connect over SSH through the login node - [Tunnel VS Code for development on Slurm](https://docs.coreweave.com/products/sunk/access_sunk/vs-code-with-slurm.md): Use VS Code tunnels with SUNK to develop on compute nodes ### Manage SUNK - [Interact with SUNK using kubectl](https://docs.coreweave.com/products/sunk/manage_sunk/interact-with-kubernetes.md): Use kubectl to interact with SUNK Kubernetes resources, access logs, and restart the Slurm Controller #### Users and access - [Provision users in SUNK](https://docs.coreweave.com/products/sunk/manage_sunk/manage_cluster_access/sunk_user_provisioning.md): Set up SUNK User Provisioning (SUP) with CoreWeave IAM - [Manage users with nsscache on SUNK Standard](https://docs.coreweave.com/products/sunk/manage_sunk/manage_cluster_access/nsscache.md): Enable automatic user provisioning with nsscache on a SUNK Standard cluster - [Manage users with a directory service on SUNK Standard](https://docs.coreweave.com/products/sunk/manage_sunk/manage_cluster_access/directory-services.md): Manage user accounts on a SUNK Standard cluster with an external directory service - [Restrict compute node access with pam_slurm_adopt](https://docs.coreweave.com/products/sunk/manage_sunk/manage_cluster_access/pam-slurm-adopt.md): Configure the pam_slurm_adopt PAM module to restrict SSH access to Slurm compute nodes to users with active job allocations #### Storage - [Configure storage mounts on SUNK Self-Service](https://docs.coreweave.com/products/sunk/manage_sunk/configure-storage-mounts.md): Size the home directory and add shared storage mounts on a SUNK Self-Service cluster through spec.storage - [Share storage across Slurm nodes on SUNK Standard](https://docs.coreweave.com/products/sunk/manage_sunk/shared-storage.md): Create and mount Persistent Volume Claims as shared storage across Slurm compute and login nodes on SUNK Standard - [Node-local storage and temporary files on Slurm nodes](https://docs.coreweave.com/products/sunk/manage_sunk/node-local-storage-and-tmp.md): What backs /tmp on SUNK Slurm nodes and how to keep temporary files on NVMe instead of RAM #### Nodes and jobs - [Monitor Slurm node states](https://docs.coreweave.com/products/sunk/manage_sunk/slurm-node-states.md): Learn about the different states a Slurm node can be in, and how to check the state of a node. - [Monitor Slurm job states](https://docs.coreweave.com/products/sunk/manage_sunk/slurm-job-states.md): View real-time and historic information about Slurm jobs - [Drain and undrain Slurm nodes](https://docs.coreweave.com/products/sunk/manage_sunk/drain-and-undrain-nodes.md): Identify the reason a node was drained, manually drain and undrain nodes - [Use sidecar containers with SUNK](https://docs.coreweave.com/products/sunk/manage_sunk/add-sidecars-to-slurm-nodes.md): Add sidecar containers to Slurm compute and login node pods - [Set up AppArmor profile for Enroot](https://docs.coreweave.com/products/sunk/manage_sunk/enroot-apparmor.md): Configure the recommended AppArmor profile for Enroot unprivileged containers on SUNK compute nodes ##### Troubleshoot nodes - [Address nodes in the INVAL state](https://docs.coreweave.com/products/sunk/manage_sunk/inval-node-state.md): Troubleshoot Slurm nodes in the INVAL state caused by configuration mismatches between slurm.conf and slurmd - [Address nodes stuck during cleanup operations](https://docs.coreweave.com/products/sunk/manage_sunk/stuck-slurm-nodes.md): Troubleshooting steps for Slurm nodes stuck in the Completing state ### Run workloads - [Use Docker in SUNK](https://docs.coreweave.com/products/sunk/run_workloads/docker-in-docker.md): Enable Docker-in-Docker inside SUNK clusters by configuring AppArmor, privileged pods, and s6 services - [Run custom scripts with s6](https://docs.coreweave.com/products/sunk/run_workloads/run-scripts-with-s6.md): Run custom longrun and oneshot scripts on SUNK compute and login nodes using the s6 service manager #### Pod Scheduler - [Schedule Kubernetes Pods with the SUNK Pod Scheduler](https://docs.coreweave.com/products/sunk/run_workloads/schedule-kubernetes-pods.md): Schedule Kubernetes Pods alongside Slurm jobs using the SUNK Pod Scheduler - [Run workloads with gang scheduling](https://docs.coreweave.com/products/sunk/run_workloads/gang-scheduling.md): Schedule Kubernetes Jobs and LeaderWorkerSet groups with shared Slurm allocations in SUNK - [Manage resources with the SUNK Pod Scheduler](https://docs.coreweave.com/products/sunk/run_workloads/manage-scheduler-resources.md): Configure Node sharing, resource allocation, and GPU management for Kubernetes Pods scheduled through Slurm - [Static CPU allocation and the SUNK Pod Scheduler](https://docs.coreweave.com/products/sunk/run_workloads/static-cpu-allocation.md): Why Kubernetes static CPU allocation is incompatible with the SUNK Pod Scheduler and how to prevent node drains. #### Prolog and Epilog - [Run Prolog and Epilog scripts on SUNK](https://docs.coreweave.com/products/sunk/run_workloads/prolog-epilog.md): Overview of Slurm Prolog and Epilog scripts in SUNK, including how they work and failure handling behavior - [Create and configure Prolog and Epilog scripts](https://docs.coreweave.com/products/sunk/run_workloads/create-prolog-epilog.md): Create Kubernetes ConfigMaps with Prolog and Epilog scripts and configure SUNK to run them with Slurm jobs #### Slurm jobs - [Avoid stranding GPUs with CPU and memory requests](https://docs.coreweave.com/products/sunk/run_workloads/avoid-stranded-gpus.md): Size --cpus-per-task and --mem-per-cpu so Slurm jobs use every GPU on a SUNK node instead of stranding one. - [Handle Slurm signals for graceful shutdown](https://docs.coreweave.com/products/sunk/run_workloads/handle-slurm-signals.md): Trap Slurm termination signals to checkpoint training jobs and report an accurate run status instead of a crash - [Checkpoint and restart Slurm jobs after a node failure](https://docs.coreweave.com/products/sunk/run_workloads/checkpoint-and-restart.md): Configure a Slurm job on SUNK to automatically requeue and resume from checkpoint after a node failure - [Use scrontab to schedule recurring batch jobs](https://docs.coreweave.com/products/sunk/run_workloads/using-scrontab.md): Schedule recurring batch jobs in SUNK using scrontab, a cron-like Slurm utility for automated job submission - [Run jobs on Grace CPU instances](https://docs.coreweave.com/products/sunk/run_workloads/run-jobs-on-grace-cpu.md): Run SUNK jobs on Arm-based Grace CPU instances (GB200, GB300, GH200), including page-size and binary compatibility - [Job priority, QoS, and preemption](https://docs.coreweave.com/products/sunk/run_workloads/job-priority-qos-preemption.md): On SUNK, priority weights and preemption start unset; understand the model before you tune it #### Optimize workloads - [Enable GPU Straggler Detection](https://docs.coreweave.com/products/sunk/optimize_workloads/enable-gpu-straggler-detection.md): Turn GPU Straggler Detection on or off in SUNK and confirm the plugin loads, so you can find GPUs that fall behind. - [Topology and block scheduling in Slurm](https://docs.coreweave.com/products/sunk/optimize_workloads/topology-scheduling.md): Configure topology and block scheduling in Slurm for optimized job placement on NVLink-connected GPU systems - [Manage memory with cache-dropper](https://docs.coreweave.com/products/sunk/optimize_workloads/cache-dropper.md): Use cache-dropper to manage memory between exclusive Slurm jobs on a node - [Diagnose unexplained memory pressure on a SUNK node](https://docs.coreweave.com/products/sunk/optimize_workloads/memory-accounting.md): Tell reclaimable page cache from pinned shmem and system overhead when Pod metrics look fine but the node OOMs - [Create custom images for SUNK Standard](https://docs.coreweave.com/products/sunk/optimize_workloads/custom-images.md): Customize published SUNK images with Dockerfiles and configure them for SUNK Standard compute and login nodes - [Manage resource binding with task plugins](https://docs.coreweave.com/products/sunk/optimize_workloads/task-plugins.md): Optimize performance by binding tasks to common resources within a node - [Customize cluster behavior with Lua plugins on SUNK Standard](https://docs.coreweave.com/products/sunk/optimize_workloads/lua-plugins.md): Use Slurm's custom job submit script to enforce rules and control job submissions on SUNK Standard clusters - [Optimize CPU binding and NUMA affinity for multi-GPU jobs](https://docs.coreweave.com/products/sunk/optimize_workloads/cpu-binding-numa-affinity.md): Fix Slurm cyclic task distribution that causes NUMA misalignment and slows multi-GPU jobs on SUNK - [Measure MFU and job performance](https://docs.coreweave.com/products/sunk/optimize_workloads/measuring-mfu-and-job-performance.md): Compute model FLOPs utilization, interpret DCGM GPU metrics, and tell a tuning problem from an infrastructure problem ### Reference - [SUNK reference](https://docs.coreweave.com/products/sunk/reference.md): Container images, custom resource fields, configuration parameters, and version mappings for SUNK. - [SUNK to Slurm version mapping](https://docs.coreweave.com/products/sunk/reference/sunk-slurm-versions.md): Mapping table between SUNK release versions and their corresponding Slurm versions - [SCIM parameter reference](https://docs.coreweave.com/products/sunk/reference/nsscache_reference.md): Complete reference of configurable SCIM parameters for SUNK user identity management #### SUNK - [SUNK parameter reference](https://docs.coreweave.com/products/sunk/reference/sunk-parameters.md): Complete parameter reference for the SUNK operator Helm chart, including image, MySQL, and NVIDIA plugin settings - [SunkCluster reference](https://docs.coreweave.com/products/sunk/reference/sunkcluster-reference.md): Reference parameters for the SunkCluster custom resource that defines a SUNK Self-Service cluster #### Slurm - [Slurm images](https://docs.coreweave.com/products/sunk/reference/slurm-images.md): Reference for SUNK-built Slurm container images, including base and extras variants with supported CUDA versions - [Slurm parameter reference](https://docs.coreweave.com/products/sunk/reference/slurm-parameters.md): Complete parameter reference for the Slurm Helm chart, including accounting, compute, and deployment settings - [Slurm login parameter reference](https://docs.coreweave.com/products/sunk/reference/slurm-login-parameters.md): Complete parameter reference for the Slurm login Helm chart, including directory cache and affinity settings