MCPcopy Index your code
hub / github.com/VivekPanyam/carton

github.com/VivekPanyam/carton @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
906 symbols 2,381 edges 160 files 153 documented · 17%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Carton

Carton is a library that lets you run any machine learning (ML) model from any programming language*.

It wraps existing models and provides a uniform interface for your application to use regardless of the framework the underlying model was implemented in.

See https://carton.run for an overview of how it works and how to get started.

Getting started

See the quickstart guide at https://carton.run/quickstart

Model Registry

We have a model registry containing several popular open-source models.

Explore the registry at https://carton.pub and check out the quickstart guide.

Docs

See the documentation at https://carton.run/docs

Getting involved

Extension points exported contracts — how you extend this code

ConvertFromWithContext (Interface)
Allows conversions with context Implementors should propagate `context` into any conversions they use internally. `Conv [9 …
source/carton/src/conversion_utils.rs
ModelFromConfig (Interface)
(no doc) [7 implementers]
source/carton-runner-rust-bert/src/lib.rs
AllocItem (Interface)
An item that can be allocated [2 implementers]
source/carton-runner-interface/src/do_not_modify/alloc_pool.rs
TypeConversion (Interface)
(no doc) [3 implementers]
source/anywhere/src/types.rs
FilterableAsRunner (Interface)
(no doc) [2 implementers]
source/carton-runner-packager/src/discovery.rs
ToTensorMap (Interface)
(no doc) [1 implementers]
source/carton-runner-py/src/model.rs
DTypeOf (Interface)
(no doc)
source/carton-runner-wasm/src/types.rs
TypedStorage (Interface)
(no doc) [5 implementers]
source/carton/src/types.rs

Core symbols most depended-on inside this repo

into
called by 271
source/carton-runner-wasm/src/types.rs
clone
called by 116
source/carton/src/info.rs
into_iter
called by 70
source/carton-bindings-c/src/tensormap.rs
insert
called by 67
source/carton-bindings-cpp/src/carton.cc
to_string
called by 55
source/carton/src/types.rs
as_ref
called by 51
source/carton-bindings-py/src/conversions.rs
get
called by 41
source/carton/src/info.rs
send
called by 39
source/anywhere/src/transport/framed.rs

Shape

Method 402
Function 233
Class 193
Enum 49
Interface 29

Languages

Rust85%
C++7%
Python4%
TypeScript4%
C1%

Modules by API surface

source/anywhere/src/types.rs41 symbols
source/carton-bindings-cpp/src/carton.cc31 symbols
source/carton-bindings-py/src/conversions.rs30 symbols
source/carton/src/info.rs29 symbols
source/carton/src/format/v1/carton_toml.rs28 symbols
source/carton-runner-interface/src/server.rs23 symbols
source/carton/src/httpfs.rs19 symbols
source/carton-runner-interface/src/do_not_modify/types.rs19 symbols
source/carton/src/types.rs18 symbols
source/carton/src/overlayfs.rs17 symbols
source/carton-runner-interface/src/do_not_modify/alloc_shm.rs17 symbols
source/carton-bindings-c/src/tensor.rs17 symbols

For agents

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

⬇ download graph artifact