d3x Commands¶
d3x commands are used for managing the user workspace, apikeys, ray clusters, user apps and deployments. This page provides information about all of the d3x commands that are currently available, along with their functions, usage syntax and available options.
Usage
d3x [OPTIONS] COMMAND [ARGS]...Function
Group for d3x commands.
Options
Option
Description
-d,--debugEnable requests debugging.
--profile TEXTCluster profile.
--helpShows help for this section.
Commands
Command
Description
aboutProvides details about d3x CLI configuration such as Username, API Key, etc.
apikeySet of commands to generate a new API key or to get the current API key
appsSet of commands to control the user apps on DKubeX
codeAccess the DKubeX VSCode application and connect to your DKubeX workspace
fmSet of commands used for finetuning & RAG
listList DKubeX workspaces
llmsSet of commands to list and/or deploy the LLMs registered with DKubeX
loginLogin to your DKubeX workspace remotely
mlflowSet of commands pertaining to MLFlow experiments & models
modelsList and manage MLFlow models registry
mountMount an available S3 bucket in read-write model
port-forwardForward port from any given DKubeX workspace to any specified remote system
profileGroup for profile commands
raySet of commands pertaining to Ray Dashboard and Cluster(s)
resetReset any given DKubeX workspace to default image
scpCopy file(s)/directory from/to any given DKubeX workspace
serveSet of commands pertaining to Ray Serve
skySet of commands pertaining to SkyPilot
sshSSH to any given DKubeX workspace
ssh-copy-idCopy SSH public key to your DKubeX home
startStart any given DKubeX workspace
stopStop any given DKubeX workspace
topShow the workspace’s resource usage
umountUnmount buckets that were previously mounted using the mount command
versionDKubeX version
vncVNC connection to any given DKubeX workspace
d3x about¶
Usage
d3x about [OPTIONS]Function
Provides details about d3x CLI configuration such as Username, API Key, etc.
Options
Option
Description
--helpShows help for this section
d3x apikey¶
Usage
d3x apikey [OPTIONS] COMMAND [ARGS}...Function
Set of commands to generate a new API key or to get the current API key.
Options
Option
Description
--helpShows help for this section
Commands
Command
Description
generateGenerate user API key
getGet user API key
d3x apps¶
Usage
d3x apps [OPTIONS] COMMAND [ARGS]...Function
Set of commands to control the user apps on DKubeX.
Options
Option
Description
--helpShows help for this section
Commands
Command
Description
createDeploy the user app on DKubeX
deleteDelete user app
listList user apps
openOpen user app in browser
Usage
d3x apps create [OPTIONS] IMAGE [COMMAND]...Function
Deploy the user app on DKubeX.
Options
Option
Description
--helpShows help for this section.
--name TEXTApp name
--cpu INTEGERNumber of CPU cores needed for deployment
--gpu INTEGERNumber of GPU cores needed for deployment
--memory INTEGERAmount of memory in GB needed for deployment
--publish TEXTPublish app globally
--dockerserver TEXTDocker registry url for ingress
--dockeruser TEXTDocker registry username for ingress
--dockerpsw TEXTDocker registry password for ingress
-e TEXTSet environment variables
-p TEXTPublish a container’s port(s)
-d TEXTDescription of the deployment
-rt TEXTRewrite-target for ingress
-cs TEXTConfiguration-snippet for ingress
-ip TEXTIngress prefix for ingress
Usage
d3x apps delete [OPTIONS] NAMEFunction
Deletes dev Ray cluster.
Options
Option
Description
--helpShows help for this section.
Usage
d3x apps list [OPTIONS]Function
Lists user apps.
Options
Option
Description
--helpShows help for this section.
Usage
d3x apps open [OPTIONS] NAMEFunction
Opens user apps in browser.
Options
Option
Description
--helpShows help for this section.
d3x code¶
Usage
d3x code [OPTIONS] WORKSPACE_NAMEFunction
Access the VSCode application and connect to your DKubeX workspace.
Options
Option
Description
--helpShows help for this section
d3x fm¶
Usage
d3x fm [OPTIONS] COMMAND [ARGS]...Function
Set of commands used for finetuning & RAG.
Options
Option
Description
--helpShows help for this section
Commands
Command
Description
deleteDelete user app
docsRun document processing job
getGet fm job details
jobsList fm jobs
logsShow logs of given fm job
queryRun fm query job
trainchunksCreate Ray Training Chunks
tuneRun Document Processing Job
Usage
d3x fm delete [OPTIONS] JOB_NAMEFunction
Delete job
Options
Option
Description
--helpShows help for this section.
Usage
d3x fm docs [OPTIONS] COMMAND [ARGS]...Function
Command group related to fm docs.
Options
Option
Description
--helpShows help for this section.
Commands
Command
Description
addIngest documents
backupGroup for backup commands
create-chunksCreate chunks of documents
create-datasetCreate dataset out of chunks
deleteGroup for delete commands
showGroup for list commands
Usage
d3x fm docs add [OPTIONS]Function
Ingest documents.
Options
Option
Description
-d,--dataset TEXTA name to represent the dataset created from docs ingestion [required]
-s,--source TEXTThe path where docs are sourced from for ingestion [required]
-c,--chunks TEXTThe path where document chunks are saved for training
-emb,--embeddings [mpnet-v2|openai|bert]Use on of OpenAI, mpnet-v2 or Bert
-nc,--no-citationDon’t derive citation. Use file name [True]
--helpShows help for this section.
Usage
d3x fm docs backup [OPTIONS] COMMAND [ARGS]...Function
Group for backup commands
Options
Option
Description
--helpShows help for this section.
Commands
Command
Description
createCreates backup of embeddings
restorerestores embeddings from backup
Usage
d3x fm docs backup create [OPTIONS]Function
Creates backup of embeddings. Separate backups for each dataset
Options
Option
Description
-d,--dataset TEXTA name to represent the ingested docs [required]
-i,--id TEXTAn ID for the backup [required]
-b,--backend [filesystem|s3]s3 or filesystem to save the backup [required]
--helpShows help for this section.
Usage
d3x fm docs backup restore [OPTIONS]Function
Restores embeddings from backup
Options
Option
Description
-i,--id TEXTAn ID for the backup [required]
-b,--backend [filesystem|s3]s3 or filesystem to save the backup [required]
--helpShows help for this section.
Usage
d3x fm docs create-chunks [OPTIONS]Function
Create chunks of documents
Options
Option
Description
-s,--source TEXTThe path where docs are sourced from for ingestion [required]
-d,--destination TEXTThe path where chunks are created [required]
-c,--chunk-size INTEGERChunk size
--helpShows help for this section.
Usage
d3x fm docs create-dataset [OPTIONS]Function
Create dataset out of chunks. Creates lists (groups) using grouper function, Where each list will have ‘n’ directory names. Use these lists for multiprocessing in embedding creation process.
Parameters: dataset_path (str):The directory path where directories associated with each file is there. dataset_name (str): Name of the dataset. embeddings_model_name (str):
Options
Option
Description
-d,--dataset_path TEXTThe path where docs are sourced from for ingestion [required]
--dataset_name TEXTThe path where chunks are created [required]
-emb,--embeddings [mpnet-v2|openai|bert]Use on of OpenAI, mpnet-v2 or Bert
--helpShows help for this section.
Usage
d3x fm docs delete [OPTIONS] COMMAND [ARGS]...Function
Group for delete commands
Options
Option
Description
--helpShows help for this section.
Commands
Command
Description
datasetDeletes all docs for a given dataset
docsDeletes specified docs from a dataset
Usage
d3x fm docs delete dataset [OPTIONS]Function
Deletes all docs for a given dataset
Options
Option
Description
-d,--dataset TEXTA name to represent the ingested docs [required]
--helpShows help for this section.
Usage
d3x fm docs delete docs [OPTIONS]Function
Deletes specified docs from a dataset
Options
Option
Description
-d,--dataset TEXTA name to represent the ingested docs [required]
-s,--source TEXTThe path where the docs are sourced for ingestion [required]
--helpShows help for this section.
Usage
d3x fm docs delete [OPTIONS] COMMAND [ARGS]...Function
Group for list commands
Options
Option
Description
--helpShows help for this section.
Commands
Command
Description
datasetsLists all datasets in the vectordb
docsLists all documents in a dataset
Usage
d3x fm docs show datasets [OPTIONS]Function
Lists all datasets in the vectordb
Options
Option
Description
--helpShows help for this section.
Usage
d3x fm docs delete docs [OPTIONS]Function
Lists all documents in a dataset
Options
Option
Description
-d,--dataset TEXTA name to represent the ingested docs [required]
--helpShows help for this section.
Usage
d3x fm get [OPTIONS] JOB_NAMEFunction
Get Job details
Options
Option
Description
--helpShows help for this section.
Usage
d3x fm jobs [OPTIONS]Function
List fm jobs
Options
Option
Description
--helpShows help for this section.
Usage
d3x fm logs [OPTIONS] JOB_NAMEFunction
Show logs of given job
Options
Option
Description
--helpShows help for this section.
Usage
d3x fm query [OPTIONS] COMMAND [ARGS]...Function
Command group for fm query.
Options
Option
Description
--helpShows help for this section.
Commands
Command
Description
llmDelete user app
openaiRun document processing job
Usage
d3x fm query llm [OPTIONS]Function
Queries the provided dataset with appropriate open-source LLM.
Options
Option
Description
-d,--dataset TEXTA name to represent the ingested docs [required]
-g,--securellmUse SecureLLM as the Gateway
-emb,--embeddings [mpnet-v2|openai|bert]Use on of OpenAI, mpnet-v2 or Bert
-dep,--deployment TEXTLLM deployment name [required]
-n,--namespace TEXTDeployment namespace. Default: user namespace
-f,--input TEXTInput file for batch Q&A
-dep,--deployment TEXTOutput file for batch Q&A
-k,--k-neighbors INTEGERK nearest neighbors from vectordb
-ms,--max-sources INTEGERNumber of chunks/summarizations to use for final answer
-mmr,--marginal-relevanceUse marginal relevance default:similarity_search
-ds,--disable-summarizationDisable LLM Summarization of K chunks
-v,--log-level [DEBUG|INFO]log level DEBUG, INFO
--helpShow this message and exit
Usage
d3x fm query openai [OPTIONS]Function
Queries the provided dataset with OpenAI.
Options
Option
Description
-d,--dataset TEXTA name to represent the ingested docs [required]
-g,--securellmUse SecureLLM as the Gateway
-emb,--embeddings [mpnet-v2|openai|bert]Use on of OpenAI, mpnet-v2 or Bert
-f,--input TEXTInput file for batch Q&A
-dep,--deployment TEXTOutput file for batch Q&A
-k,--k-neighbors INTEGERK nearest neighbors from vectordb
-ms,--max-sources INTEGERNumber of chunks/summarizations to use for final answer
-mmr,--marginal-relevanceUse marginal relevance default:similarity_search
-ds,--disable-summarizationDisable LLM Summarization of K chunks
-v,--log-level [DEBUG|INFO]log level DEBUG, INFO
--helpShow this message and exit
Usage
d3x fm trainchunks [OPTIONS]Function
Creates train and/or test chunks for finetuning
Options
Option
Description
-s,--source TEXTThe path where finetune chunks are sourced from [required]
-d,--destination TEXTThe path where chunks will be kept for training [required]
--split [train|test]Specify train or test. Default: both
-p,--split-percent INTEGERSpecify percentage of docs to go in train/test
-l,--lastpick documents from backwards
--helpShows help for this section.
Usage
d3x fm tune [OPTIONS] COMMAND [ARGS]...Function
Run Finetuning Job on the provided model
Options
Option
Description
--helpShows help for this section.
Commands
Option
Description
modelSet of commands to finetune, merge or/and quantize model(s)
Usage
d3x fm tune model [OPTIONS] COMMAND [ARGS]...Function
Set of commands to finetune, merge or/and quantize model(s)
Options
Option
Description
--helpShows help for this section.
Commands
Option
Description
finetuneCommand to finetune given model(s)
mergeCommand to merge any model(s)
quantizeCommand to quantize model(s)
Usage
d3x fm tune model finetune [OPTIONS]Function
Command to finetune given model(s)
Options
Option
Description
-j,--job-name TEXTJob name
-d,--docker-image TEXTdocker image for the ray job
-e,--epochs INTEGERnumber of epochs
-b,--batch-size INTEGERbatch size
-l,--dataset-location TEXTdataset location
-o,--output-location TEXToutput location
-n,--model-name TEXT- model name (should contain complete hf path
meta-llama/Llama-2-13b-chat-hf)
-p,--model-path TEXTdownloaded model location from huggingface
-h,--hf-token TEXThuggingface token
-c,--cpu INTEGERnumber of cpu
-g,--gpu INTEGERnumber of gpu
-t,--type TEXTinstance type
-m,--mem INTEGERnumber of memories
--as-testAs test
--stop-perplexity FLOATTarget perplexity to reach after which to stoptraining. Default is 0. If 0, training will not stop on perplexity
--ctx-len INTEGERLearning rate to use
--experiment-name TEXTmlflow experiment name
--helpShow this message and exit
Usage
d3x fm tune model merge [OPTIONS]Function
Command to merge any model(s)
Options
Option
Description
-j,--job-name TEXTRay Cluster name
-d,--docker-image TEXTdocker image for the ray job
-o,--output-location TEXToutput location
-n,--model-name TEXTmodel name (should contain complete hf path). e.g. meta-llama/Llama-2-13b-chat-hf
-p,--model-path TEXTdownloaded model location from huggingface
-cp,--checkpoint TEXTPath to checkpoint containing the LoRA weights
-c,--cpu INTEGERnumber of cpu
-g,--gpu INTEGERnumber of gpu
-t,--type TEXTinstance type
-m,--mem INTEGERnumber of memories
--helpShow this message and exit
Usage
d3x fm tune model quantize [OPTIONS]Function
Command to quantize model(s)
Options
Option
Description
-j,--job-name TEXTRay Cluster name
-d,--docker-image TEXTdocker image for the ray job
-o,--output-location TEXToutput location
-p,--model-path TEXTdownloaded model location from huggingface
-c,--cpu INTEGERnumber of cpu
-g,--gpu INTEGERnumber of gpu
-t,--type TEXTinstance type
--helpShow this message and exit
d3x list¶
Usage
d3x list [OPTIONS]Function
List DKubeX workspaces.
Options
Option
Description
--helpShows help for this section
d3x llms¶
Usage
d3x llms [OPTIONS] COMMAND [ARGS]...Function
Set of commands to list and/or deploy the LLMs registered with DKubeX.
Options
Option
Description
--helpShows help for this section
Commands
Command
Description
deployDeploy a LLM on DKubex
listList the supported LLMs
registerRegister a model with DKubeX
Usage
d3x llms deploy [OPTIONS]Function
Deploy a LLM on DKubeX
Options
Options
Description
-n,--name TEXTName of the deployment (required)
-m,--model TEXTName of the model to deploy the serving (required)
--helpShows help for this section
Usage
d3x llms list [OPTIONS]Function
List the supported LLMs.
Options
Options
Description
--helpShows help for this section
Usage
d3x llms register [OPTIONS]Function
Register a model with DKubeX
Options
Options
Description
-n,--name TEXTName of the model for registration (required)
-f,--file TEXTraw GitHub URL of model definition in .yaml (required)
--helpShows help for this section
d3x login¶
Usage
d3x login [OPTIONS]Function
Login to your DKubeX workspace remotely.
Options
Option
Description
--helpShows help for this section
d3x mlflow¶
Usage
d3x mlflow [OPTIONS] COMMAND [ARGS}...Function
Set of commands pertaining to MLFlow experiments & models.
Options
Option
Description
--helpShows help for this section
Commands
Command
Description
experimentsCreate, archive, delete or restore MLFlow experiments
modelsArchive or delete MLFlow models
Usage
d3x mlflow experiments [OPTIONS] COMMAND [ARGS]...Function
Create, archive, delete or restore MLFlow experiments.
Options
Option
Description
--helpShows help for this section.
Commands
Command
Description
archiveArchive Experiment
deleteDelete Experiment
listList experiments
restoreRestore Experiment
Usage
d3x mlflow experiments archive [OPTIONS] IDFunction
Archive experiment.
Options
Option
Description
--helpShows help for this section.
Usage
d3x mlflow experiments delete [OPTIONS] IDFunction
Delete experiment.
Options
Option
Description
--helpShows help for this section.
Usage
d3x mlflow experiments list [OPTIONS]Function
List experiments.
Options
Option
Description
--helpShows help for this section.
Usage
d3x mlflow experiments restore [OPTIONS] IDFunction
Restore deleted experiments.
Options
Option
Description
--helpShows help for this section.
Usage
d3x mlflow models [OPTIONS] COMMAND [ARGS]...Function
The set of commands to archive or delete existing MLFlow models.
Options
Option
Description
--helpShows help for this section.
Commands
Command
Description
archiveArchive Experiment
deleteDelete Experiment
Usage
d3x mlflow models archive [OPTIONS] NAME VERSIONFunction
Archive the model.
Options
Option
Description
--helpShows help for this section.
Usage
d3x mlflow models delete [OPTIONS] NAME VERSIONFunction
Delete the model.
Options
Option
Description
--helpShows help for this section.
d3x models¶
Usage
d3x models [OPTIONS] COMMAND [ARGS}...Function
List and manage MLFlow models registry.
Options
Option
Description
--helpShows help for this section
Commands
Command
Description
importImport saved model to MLFlow
listList models registered in MLFlow registry
showGet details of a specific model
d3x mount¶
Usage
d3x mount [OPTIONS] [BUCKET] [MOUNTPATH]Function
Command to mount an available S3 bucket in read-write model.
Options
Option
Description
-a,--allmount all the previous buckets
-d,--dry-rundo not mount the buckets
--helpShows help for this section
d3x port-forward¶
Usage
d3x port-forward [OPTIONS] WORKSPACE_NAME SERVICE TARGET_PORT LOCAL_PORTFunction
Forward port from any given DKubeX workspace to any specified remote system.
Options
Option
Description
--helpShows help for this section
d3x profile¶
Usage
d3x profile [OPTIONS] COMMAND [ARGS]...Function
Group for profile commands.
Options
Option
Description
--helpShows help for this section
Commands
Command
Description
configureConfigure profile
deleteDelete profile
listList profiles
setSet default profile
d3x ray¶
Usage
d3x ray [OPTIONS] COMMAND [ARGS]...Function
Set of commands pertaining to Ray Dashboard and Cluster(s).
Options
Option
Description
--helpShows help for this section
Commands
Command
Description
activateSet Cluster
addressList Ray clusters
createCreate Dev Ray cluster
dashboardOpen Ray dashboard
deleteDelete Dev Ray cluster
getGet a Ray cluster
jobGroup commands for ray jobs
listList ray clusters
Usage
d3x ray activate [OPTIONS] CLUSTERFunction
Set Cluster.
Options
Option
Description
--helpShows help for this section.
Usage
d3x ray address [OPTIONS]Function
List Ray clusters and also show the Ray address to those clusters and link to its dashboard.
Options
Option
Description
--helpShows help for this section.
--allList all compute templates from all users.
Usage
d3x ray create [OPTIONS]</div>
Function
Create dev Ray cluster.
Options
Option
Description
--helpShows help for this section.
-n, --name TEXTName of the Ray cluster (Required)
-v, --version TEXTVersion of the Ray cluster (Default 2.6.0)
-i, --image TEXTImage of the Ray head/worker node
--cpu INTEGERRay worker node CPU (Default 2)
--gpu INTEGERRay worker node GPU (Default 0)
--memory INTEGERRay worker node memory in GB (Default 4)
--hcpu INTEGERRay head node CPU (Default 2)
--hgpu INTEGERRay head node GPU (Default 0)
--hmemory INTEGERRay head node memory in GB (Default 4)
--htype TEXTRay worker head node instance type
--type TEXTRay worker node instance type
--dockerserver TEXTDocker registry URL
--dockeruser TEXTDocker registry username
--dockerpsw TEXTDocker registry password
Usage
d3x ray dashboard [OPTIONS]Function
Open Ray dashboard.
Options
Option
Description
--helpShows help for this section.
Usage
d3x ray delete [OPTIONS] NAMEFunction
Delete dev Ray cluster.
Options
Option
Description
--helpShows help for this section.
Usage
d3x ray get [OPTIONS]Function
Get a Ray cluster.
Options
Option
Description
--helpShows help for this section.
Usage
d3x ray job [OPTIONS] COMMAND [ARGS]...Function
Group commands for Ray jobs.
Options
Option
Description
--helpShows help for this section.
Commands
Command
Description
deleteDeletes a stopped job and its associated data from memory.
listLists all running jobs and their information.
logsGets the logs of a job.
statusQueries for the current status of a job.
stopAttempts to stop a job.
submitSubmits a job to be run on the cluster.
Usage
d3x ray job delete [OPTIONS] JOB_IDFunction
Deletes a stopped job and its associated data from memory. Only supported for jobs that are already in a terminal state. Fails with exit code 1 if the job is not already stopped. Does not delete job logs from disk. Submitting a job with the same submission ID as a previously deleted job is not supported and may lead to unexpected behavior.
Example
ray job delete #my_job_id#
PublicAPI
This API is in alpha and may change before becoming stable.
Options
Option
Description
--helpShows help for this section.
--address TEXTAddress of the Ray cluster to connect to. Can also be specified using the RAY_ADDRESS environment variable.
--verify BOOL | TEXTBoolean indication to verify the server’s TLS certificate or a path to a file or directory of trusted certificates. [default: True]
--log-style [auto|record|pretty]If ‘pretty’, outputs with formatting and color. If ‘record’, outputs record-style without formatting. ‘auto’ defaults to ‘pretty’, and disables pretty logging if stdin is not a TTY.
--log-color [auto|false|true]Use color logging. Auto enables color logging if stdout is a TTY.
-v,--verbose
Usage
d3x ray job list [OPTIONS]Function
Lists all running jobs and their information.
Example
ray job list
PublicAPI
This API is stable across releases.
Options
Option
Description
--helpShows help for this section.
--address TEXTAddress of the Ray cluster to connect to. Can also be specified using the RAY_ADDRESS environment variable.
--verify BOOL | TEXTBoolean indication to verify the server’s TLS certificate or a path to a file or directory of trusted certificates. [default: True]
--log-style [auto|record|pretty]If ‘pretty’, outputs with formatting and color. If ‘record’, outputs record-style without formatting. ‘auto’ defaults to ‘pretty’, and disables pretty logging if stdin is not a TTY.
--log-color [auto|false|true]Use color logging. Auto enables color logging if stdout is a TTY.
-v,--verbose
Usage
d3x ray job logs [OPTIONS] JOB_IDFunction
Gets the logs of a job.
Example
ray job logs #my_job_id#
PublicAPI
This API is stable across Ray releases.
Options
Option
Description
--helpShows help for this section.
-f,--followIf set, follows the logs (like ‘tail -f’)
--address TEXTAddress of the Ray cluster to connect to. Can also be specified using the RAY_ADDRESS environment variable.
--verify BOOL | TEXTBoolean indication to verify the server’s TLS certificate or a path to a file or directory of trusted certificates. [default: True]
--log-style [auto|record|pretty]If ‘pretty’, outputs with formatting and color. If ‘record’, outputs record-style without formatting. ‘auto’ defaults to ‘pretty’, and disables pretty logging if stdin is not a TTY.
--log-color [auto|false|true]Use color logging. Auto enables color logging if stdout is a TTY.
-v,--verbose
Usage
d3x ray job status [OPTIONS] JOB_IDFunction
Queries for the current status of a job.
Example
ray job status #my_job_id#
PublicAPI
This API is stable across Ray releases.
Options
Option
Description
--helpShows help for this section.
--address TEXTAddress of the Ray cluster to connect to. Can also be specified using the RAY_ADDRESS environment variable.
--verify BOOL | TEXTBoolean indication to verify the server’s TLS certificate or a path to a file or directory of trusted certificates. [default: True]
--log-style [auto|record|pretty]If ‘pretty’, outputs with formatting and color. If ‘record’, outputs record-style without formatting. ‘auto’ defaults to ‘pretty’, and disables pretty logging if stdin is not a TTY.
--log-color [auto|false|true]Use color logging. Auto enables color logging if stdout is a TTY.
-v,--verbose
Usage
d3x ray job stop [OPTIONS] JOB_IDFunction
Attempts to stop a job.
Example
ray job stop #my_job_id#
PublicAPI
This API is stable across Ray releases.
Options
Option
Description
--helpShows help for this section.
--no-waitIf set, will not wait for the job to exit.
--address TEXTAddress of the Ray cluster to connect to. Can also be specified using the RAY_ADDRESS environment variable.
--verify BOOL | TEXTBoolean indication to verify the server’s TLS certificate or a path to a file or directory of trusted certificates. [default: True]
--log-style [auto|record|pretty]If ‘pretty’, outputs with formatting and color. If ‘record’, outputs record-style without formatting. ‘auto’ defaults to ‘pretty’, and disables pretty logging if stdin is not a TTY.
--log-color [auto|false|true]Use color logging. Auto enables color logging if stdout is a TTY.
-v,--verbose
Usage
d3x ray job submit [OPTIONS] ENTRYPOINT...Function
Submits a job to be run on the cluster.
Example
ray job submit – python my_script.py –arg=val
PublicAPI
This API is stable across Ray releases.
Options
Option
Description
--helpShows help for this section.
--address TEXTAddress of the Ray cluster to connect to. Can also be specified using the RAY_ADDRESS environment variable.
--job-id TEXTDEPRECATED: Use –submission-id instead.
--submission-id TEXTSubmission ID to specify for the job. If not provided, one will be generated.
--runtime-env TEXTPath to a local YAML file containing a runtime_env definition.
--runtime-env-json TEXTJSON-serialized runtime_env dictionary.
--working-dir TEXTDirectory containing files that your job will run in. Can be a local directory or a remote URI to a .zip file (S3, GS, HTTP). If specified, this overrides the option in –runtime-env.
--entrypoint-num-cpus FLOATThe quantity of CPU cores to reserve for the entrypoint command, separately from any tasks or actors that are launched by it
--entrypoint-num-gpus FLOATThe quantity of GPUs to reserve for the entrypoint command, separately from any tasks or actors that are launched by it.
--entrypoint-resources TEXTA JSON-serialized dictionary mapping resource name to resource quantity describing resources to reserve for the entrypoint command, separately from any tasks or actors that are launched by it.
--no-waitIf set, will not stream logs and wait for the job to exit.
--verify BOOL | TEXTBoolean indication to verify the server’s TLS certificate or a path to a file or directory of trusted certificates. [default: True]
--log-style [auto|record|pretty]If ‘pretty’, outputs with formatting and color. If ‘record’, outputs record-style without formatting. ‘auto’ defaults to ‘pretty’, and disables pretty logging if stdin is not a TTY.
--log-color [auto|false|true]Use color logging. Auto enables color logging if stdout is a TTY.
-v,--verbose
Usage
d3x ray list [OPTIONS]Function
List Ray clusters.
Options
Option
Description
--helpShows help for this section.
--allList all compute templates from all users.
d3x reset¶
Usage
d3x reset [OPTIONS] WORKSPACE_NAMEFunction
Reset any given DKubeX workspace to default image
Options
Option
Description
--helpShows help for this section
d3x scp¶
Usage
d3x scp [OPTIONS] SOURCE TARGETFunction
Copy file(s)/directory from/to any given DKubeX workspace.
Options
Option
Description
--helpShows help for this section
d3x serve¶
Usage
d3x serve [OPTIONS] COMMAND [ARGS]...Function
Set of commands pertaining to Ray Serve
Options
Option
Description
--helpShows help for this section
Commands
Command
Description
createCreate Ray serve
deleteDelete deployment
getGet deployments
listList deployments
Usage
d3x serve create [OPTIONS]Function
Set of commands pertaining to Ray Serve.
Options
Option
Description
--helpShows help for this section.
-n,--name TEXTName of the Ray serve (Required)
-r,--registry_type [hugging_face|mlflow]Registry type (Required)
--hface_repoid TEXTHugging Face Repo ID
--hface_tokenizer TEXTHugging Face tokenizer
--hface_classifier TEXTHugging Face classifier
--hface_token TEXTHugging Face token
--model TEXTMLFlow model name
--model_version TEXTMLFlow model version
--depfilepath TEXTRay serve deployment file path
--working_dir TEXTLocal serving directory path
--is_private_repoPrivate repo
--repo_name TEXTGitHub repo name
--username TEXTGitHub username of the repo owner
--access_token TEXTGithub access token of the user
--branch_name TEXTGitHub branch name
--commit_id TEXTGitHub Commit ID
--unprotectedServing without token
-e,--env TEXTEnvironment variable
--ngpus TEXTNumber of GPUs
--min_cpu TEXTMinimum number of CPUs for cluster creation.
--max_cpu TEXTMaximum number of CPUs for cluster creation
--min_memory TEXTMinimum memory for cluster creation
--max_memory TEXTMaximum memory for cluster creation.
--min_replicas TEXTMinimum deployment replicas.
--max_replicas TEXTMaximum deployment replicas.
--max_concurrent_requests TEXTMaximum concurrent requests.
--description TEXTDeployment description
--image TEXTCluster Image
--no_rsrc_limitsNo resource limits
--node_selector TEXTNode selector
--timeout INTEGERDeployment timeout
Usage
d3x serve delete [OPTIONS] IDFunction
Delete deployment.
Options
Option
Description
--helpShows help for this section.
Usage
d3x serve get [OPTIONS] IDFunction
Get deployment.
Options
Option
Description
--helpShows help for this section.
Usage
d3x serve list [OPTIONS]Function
List deployments.
Options
Option
Description
--helpShows help for this section.
--allLists all the deployments.
d3x sky¶
Usage
sky [OPTIONS] COMMAND [ARGS]...Function
Set of commands pertaining to SkyPilot.
Options
Options
Description
--install-shell-completion [bash|zsh|fish|auto]Install shell completion for the specified shell.
--uninstall-shell-completion [bash|zsh|fish|auto]Uninstall shell completion for the specified shell.
-v,--versionShow sky version.
-h,--helpShows help for this section
Commands
Commands
Description
launchLaunch a task from a YAML or a command (rerun setup if…
execExecute a task or a command on a cluster (skip setup).
statusShow clusters.
cost-reportShow estimated costs for launched clusters.
queueShow the job queue for cluster(s).
logsTail the log of a job.
cancelCancel job(s).
stopStop cluster(s).
autostopSchedule an autostop or autodown for cluster(s).
startRestart cluster(s).
downTear down cluster(s).
gpunodeLaunch or attach to an interactive GPU node.
cpunodeLaunch or attach to an interactive CPU node.
tpunodeLaunch or attach to an interactive TPU node.
checkCheck which clouds are available to use.
show-gpusShow supported GPU/TPU/accelerators and their prices.
storageSkyPilot Storage CLI.
adminSkyPilot On-prem administrator CLI.
spotManaged Spot commands (spot instances with auto-recovery).
benchSkyPilot Benchmark CLI.
d3x ssh¶
Usage
d3x ssh [OPTIONS] WORKSPACE_NAME [COMMAND]...Function
SSH to any given DKubeX workspace.
Options
Option
Description
--helpShows help for this section
d3x ssh-copy-id¶
Usage
d3x ssh-copy-id [OPTIONS] PUBLIC_KEYFunction
Copy SSH public key to your DKubeX home.
Options
Option
Description
--helpShows help for this section
d3x start¶
Usage
d3x start [OPTIONS] WORKSPACE_NAMEFunction
Start any given DKubeX workspace.
Options
Option
Description
--helpShows help for this section
d3x stop¶
Usage
d3x stop [OPTIONS] WORKSPACE_NAMEFunction
Stop any given DKubeX workspace.
Options
Option
Description
--helpShows help for this section
d3x top¶
Usage
d3x top [OPTIONS] [WORKSPACE]Function
Show the workspace’s resource usage.
Options
Option
Description
--helpShows help for this section
d3x umount¶
Usage
d3x umount [OPTIONS] MOUNTPATHFunction
Unmount buckets that were previously mounted using the mount command.
Options
Option
Description
--helpShows help for this section
d3x version¶
Usage
d3x version [OPTIONS]Function
DKubeX version.
Options
Option
Description
--helpShows help for this section
d3x vnc¶
Usage
d3x vnc [OPTIONS] WORKSPACE_NAMEFunction
VNC connection to any given DKubeX workspace.
Options
Option
Description
--helpShows help for this section