CosmicAC Logo

Jobs

Create, manage, and monitor distributed computing jobs. Includes job creation, status monitoring, log viewing, and shell access.

Create, manage, and monitor distributed computing jobs. Includes job creation, status monitoring, log viewing, and shell access.

Command

cosmicac jobs <subcommand> [options]

Subcommands

SubcommandDescription
createCreate a job
deleteDelete a job
detailGet job details
listList of jobs
logsQuery inference logs
replicaJob replica management
restartRestart a job
shellStart a shell for a job container

jobs create

Create a new GPU container or managed inference job. Use flags for non-interactive mode or omit flags for interactive mode.

Usage

cosmicac jobs create [options]

Options

OptionDescription
--nameJob name
--typeJob type: container, vllm, or parakeet
--locationLocation (e.g., us, IN)
--tagsComma-separated tags
--cost-limitCost limit (optional)
--gpuGPU configuration in format "TYPE=COUNT" (e.g., "H100=2")
--gpu-typeGPU type (alternative to --gpu)
--gpu-countGPU count (alternative to --gpu)
--driverGPU driver (default: CUDA 12.9)
--vram-gbVRAM in GB per GPU (optional)
--cpu-cores-per-gpuCPU cores per GPU (optional)
--mem-gb-per-gpuMemory in GB per GPU (optional)
--base-imageBase image for GPU container (e.g., Ubuntu22.04/CUDA12.9)
--root-disk-size-gbRoot disk size in GB (default: 250)
--modelModel ID for inference
--runtime-imageRuntime image (e.g., vLLM 0.11.2 + CUDA 12.9)
--data-typeData type: Auto, BF16, FP16, FP32 (default: Auto)
--quantisationQuantisation: none, fp8, awq, gptq, compressed-tensors, bitsandbytes (default: fp8)
--tensor-parallelTensor parallel count (default: 1)
--gpu-memory-utilizationGPU memory utilization 0-1 (default: 0.9)
--max-concurrent-sequencesMax concurrent sequences (default: 256)
--max-model-lengthMax model length in tokens (default: 32768)
--reasoning-parserReasoning parser: default, qwen3, deepseek_r1 (default: default)
--multimodalEnable multimodal support for vision-language models
--endpoint-nameEndpoint name for API access
--replicaNumber of replicas (default: 1)
--require-auth-headerRequire Authorization header (default: true)
--no-auth-headerDisable Authorization header requirement
--envEnvironment variables in format "NAME1=VALUE1,NAME2=VALUE2"
--chunk-durationAudio chunk duration in seconds (Parakeet only)
--chunk-overlapAudio chunk overlap in seconds (Parakeet only)
--max-file-size-mbMax file size in MB (Parakeet only)
--configPath to JSON config file
--dry-runValidate configuration without creating the job

jobs delete

Delete a specific job using its Job ID.

Usage

cosmicac jobs delete <jobId>

Arguments

ArgumentRequiredDescription
jobIdYesJob ID (required)

jobs detail

Retrieve and display detailed information about a specific job.

Usage

cosmicac jobs detail <jobId>

Arguments

ArgumentRequiredDescription
jobIdYesJob ID (required)

jobs list

Retrieve and display a list of jobs.

Usage

cosmicac jobs list

jobs logs

Retrieve paginated logs for an inference instance

Usage

cosmicac jobs logs [options]

Options

OptionDescription
--instance-idInstance ID (required)
--start-dateStart date in ISO 8601 format (e.g., 2026-06-11T00:00:00.000Z)
--end-dateEnd date in ISO 8601 format (e.g., 2026-06-11T02:00:00.000Z)
--searchSubstring filter on message text
--levelMin severity: 1=DEBUG, 2=INFO, 3=WARNING, 4=ERROR, 5=FATAL
--sourceLog source: 1=system/setup logs, 2=application logs
--limitPage size (default 100, max 1000)
--pagePage number (ignored when cursor is set)
--cursorLog record ID for cursor pagination
--followContinuously stream new logs (tail mode)
--rawOutput raw JSON format

jobs replica

Commands for managing individual job replicas. Restart or delete specific replicas of a distributed job.

Usage

cosmicac jobs replica <subcommand> [options]

Subcommands

SubcommandDescription
deleteDelete a job replica
restartRestart a job replica

jobs replica delete

Delete a specific replica of a job using its Job ID and replica ID.

Usage

cosmicac jobs replica delete <jobId> <replicaId>

Arguments

ArgumentRequiredDescription
jobIdYesJob ID (required)
replicaIdYesReplica ID (required)

jobs replica restart

Restart a specific replica of a job using its Job ID and replica ID.

Usage

cosmicac jobs replica restart <jobId> <replicaId>

Arguments

ArgumentRequiredDescription
jobIdYesJob ID (required)
replicaIdYesReplica ID (required)

jobs restart

Restart all replicas of a specific job using its Job ID.

Usage

cosmicac jobs restart <jobId>

Arguments

ArgumentRequiredDescription
jobIdYesJob ID (required)

jobs shell

Start an interactive shell session for a running GPU container job.

Usage

cosmicac jobs shell <jobId> <containerId>

Arguments

ArgumentRequiredDescription
jobIdYesJob ID (required)
containerIdYesContainer ID (required)

On this page