MCPcopy Index your code
hub / github.com/cedana/cedana-cli

github.com/cedana/cedana-cli @v1.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.0 ↗ · + Follow
146 symbols 311 edges 20 files 28 documented · 19%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

cedana-cli

Cedana is a framework for the democritization and (eventually) commodification of compute. We achieve this by leveraging checkpoint/restore to seamlessly migrate work across machines, clouds and beyond.

This repo contains a CLI tool to allow developers to experiment with our system. With it, you can:

  • Launch instances anywhere, with guaranteed price and capacity optimization. We look across your configured providers (AWS, Paperspace, etc.) to select the optimal instance defined in a provided job spec. This abstracts away cloud infra burdens.
  • Deploy and manage any kind of job, whether a pyTorch training job, a webservice or a multibody physics simulation.

Our managed system layers many more capabilities on top of this, such as: lifecycle management, policy systems, auto migration (through our novel checkpointing system (see here)) and much more.

To access our managed service, contact founders@cedana.ai.

Usage

To build from source: go build

To run: ./cedana-cli

If you prefer to install from a package manager, we push to packagecloud and have a homebrew tap. Check out the documentation for instructions.

Documentation

You can view the official documentation here.

Deprecation Notice

cedana-cli used to have a self-serve tool, but it has been retired in favor of fulltime development on our managed platform. If you still wish to use it however, you can revert to previous versions (<=v0.2.8).

Contributing

See CONTRIBUTING.md for guidelines.

Extension points exported contracts — how you extend this code

Provider (Interface)
Types for commodity providers (e.g. AWS, GCP, etc) generic interface for a commodity provider, that actors we broker bet [2 …
types/commodity.go
PricingModel (Interface)
PricingModel populates Instance.Price [1 implementers]
types/commodity.go

Core symbols most depended-on inside this repo

InitCedanaConfig
called by 10
utils/config.go
Error
called by 9
types/commodity.go
GetLogger
called by 6
utils/logger.go
BuildRunner
called by 5
cmd/managed/run.go
SetConfigFile
called by 4
utils/config.go
isInstanceInRegion
called by 4
market/optimizer.go
GetGPUs
called by 2
types/commodity.go
MakeClient
called by 2
aws/helpers.go

Shape

Method 62
Function 45
Struct 36
Interface 2
TypeAlias 1

Languages

Go100%

Modules by API surface

db/db.go25 symbols
types/commodity.go16 symbols
market/optimizer.go15 symbols
cmd/managed/bootstrap.go15 symbols
types/types.go11 symbols
cmd/managed/run.go11 symbols
utils/config.go8 symbols
market/catalog/parser.go8 symbols
market/local.go7 symbols
market/mock.go6 symbols
utils/config_test.go5 symbols
market/pricing/aws.go5 symbols

For agents

$ claude mcp add cedana-cli \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact