Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VivekPanyam/carton
/ functions
Functions
635 in github.com/VivekPanyam/carton
⨍
Functions
635
◇
Types & classes
271
↓ 3 callers
Function
save_misc_file
Util to save a misc file
source/carton/src/format/v1/save.rs:33
↓ 3 callers
Method
serve
( self, send: mpsc::Sender<ResponseMessageType>, mut recv: mpsc::Receiver<RequestMessa
source/anywhere/src/transport/serde.rs:119
↓ 3 callers
Method
set_progress
(&self, progress: Option<T>)
source/carton-runner-interface/src/slowlog.rs:55
↓ 3 callers
Method
set_string
source/carton-bindings-cpp/src/carton.cc:119
↓ 3 callers
Method
set_total
(&self, total: Option<T>)
source/carton-runner-interface/src/slowlog.rs:51
↓ 3 callers
Function
tensor_to_py
(item: &Tensor)
source/carton-bindings-py/src/tensor.rs:157
↓ 3 callers
Function
with_atomic_extraction
This calls the provided function `do_extract` with a temporary path to extract into and then moves that dir to `target_dir` This should be atomic so i
source/carton-utils/src/archive.rs:165
↓ 2 callers
Method
_run_load_test
Utility to test pack, load, and load_unpacked that uses most (if not all) of the documented arguments
source/carton-bindings-py/tests/test_load_unpacked.py:174
↓ 2 callers
Function
alloc_tensor
(shape: Vec<u64>)
source/carton-runner-interface/src/do_not_modify/alloc_shm.rs:405
↓ 2 callers
Function
build_cpp_bindings
Build the Carton C++ bindings
source/build-utils/src/lib.rs:83
↓ 2 callers
Method
build_server
Every server must be at least readable so we set that to true
source/anywhere/src/lib.rs:32
↓ 2 callers
Function
carton_load
( url_or_path: *const c_char, callback: CartonLoadCallback, callback_arg: CallbackArg, )
source/carton-bindings-c/src/carton.rs:34
↓ 2 callers
Function
carton_load_inner
(url_or_path: String, callback: CartonLoadCallback, callback_arg: CallbackArg)
source/carton-bindings-c/src/carton.rs:71
↓ 2 callers
Method
carton_tensor_set_string_inner
(&mut self, index: u64, string: String)
source/carton-bindings-c/src/tensor.rs:232
↓ 2 callers
Method
carton_tensormap_get_and_remove_inner
( &mut self, key: &str, value_out: *mut *mut CartonTensor, )
source/carton-bindings-c/src/tensormap.rs:91
↓ 2 callers
Method
carton_tensormap_insert_inner
(&mut self, key: &str, value: *mut CartonTensor)
source/carton-bindings-c/src/tensormap.rs:129
↓ 2 callers
Function
create_load_opts
( visible_device: Option<Device>, override_runner_name: Option<String>, override_required_framewor
source/carton-bindings-py/src/conversions.rs:33
↓ 2 callers
Function
create_pack_opts
( runner_name: String, required_framework_version: String, runner_compat_version: Option<u64>,
source/carton-bindings-py/src/conversions.rs:61
↓ 2 callers
Method
deref
(&self)
source/carton-runner-interface/src/do_not_modify/comms.rs:332
↓ 2 callers
Method
do_streaming_rpc
Make an RPC request and get the response
source/carton-runner-interface/src/client.rs:182
↓ 2 callers
Function
fetch
Step 1: Fetch the file or directory (and call into step 2) If `url` points to a dir on disk, load a local lunchbox filesystem and call directly into s
source/carton/src/load.rs:79
↓ 2 callers
Function
fetch_runners
(index_url: &str)
source/carton-runner-packager/src/fetch.rs:36
↓ 2 callers
Function
frame
( read_stream: R, write_stream: W, )
source/carton-runner-interface/src/do_not_modify/framed.rs:102
↓ 2 callers
Method
get_filesystem_internal
( &self, token: FsToken, )
source/carton-runner-interface/src/server.rs:345
↓ 2 callers
Method
get_info
Get info for the loaded model
source/carton/src/carton.rs:257
↓ 2 callers
Function
get_matching_installed_runner
Get an installed runner that matches the constraints (or None)
source/carton-runner-packager/src/discovery.rs:151
↓ 2 callers
Function
get_matching_runner
Get an installed runner that matches the constraints (or None)
source/carton-runner-packager/src/discovery.rs:196
↓ 2 callers
Function
get_model_info
(url: String)
source/carton-bindings-wasm/src/lib.rs:45
↓ 2 callers
Method
get_new_stream
(&self)
source/carton-runner-interface/src/multiplexer.rs:73
↓ 2 callers
Function
get_pip_deps_report
Effectively run `python3 -m pip install --dry-run --ignore-installed --report {output_file} -r {requirements_file_path}` and load the output
source/carton-runner-py/src/pip_utils.rs:68
↓ 2 callers
Function
get_runner_dir
()
source/carton-runner-packager/src/discovery.rs:61
↓ 2 callers
Function
get_runner_opt_string
(opt: &RunnerOpt)
source/carton-runner-py/src/loader.rs:276
↓ 2 callers
Method
get_shape
(&self)
source/carton-runner-interface/src/do_not_modify/storage.rs:36
↓ 2 callers
Method
get_stream_for_id
Note: this should only be called once per ID Generally, the same process should not use both get_new_stream and get_stream_for_id because they can sto
source/carton-runner-interface/src/multiplexer.rs:87
↓ 2 callers
Function
get_uuid_for_device
(ordinal: u32)
source/carton/src/cuda.rs:49
↓ 2 callers
Method
handle
source/carton-bindings-cpp/src/carton.cc:255
↓ 2 callers
Method
handle_request
(&self, msg: RequestMessageType)
source/anywhere/src/transport/serde.rs:110
↓ 2 callers
Function
infer
( model: Arc<tch::CModule>, tensors: HashMap<String, Tensor>, device: tch::Device, )
source/carton-runner-torch/src/main.rs:138
↓ 2 callers
Method
infer
(&self, py: Python<'a>, tensors: &PyDict)
source/carton-bindings-py/src/lib.rs:50
↓ 2 callers
Method
infer
( &mut self, inputs: HashMap<String, CartonTensor>, )
source/carton-runner-wasm/src/lib.rs:40
↓ 2 callers
Function
install_wheel
Installs a wheel file (if not already installed) and returns the path to add to `sys.path` See the wheel spec at https://packaging.python.org/en/late
source/carton-runner-py/src/wheel.rs:49
↓ 2 callers
Method
into_get
(self)
source/carton/src/info.rs:179
↓ 2 callers
Function
is_file_path
TODO: make this more robust
source/carton-runner-packager/src/lib.rs:138
↓ 2 callers
Function
load
Load a carton given a url or path and options
source/carton/src/load.rs:40
↓ 2 callers
Method
load
source/carton-bindings-cpp/src/carton.cc:358
↓ 2 callers
Function
load_carton
Step 4: Load carton info from the resolved fs (and call into step 5 and then call into step 6)
source/carton/src/load.rs:196
↓ 2 callers
Function
load_model
Step 6: Load the model
source/carton/src/load.rs:309
↓ 2 callers
Function
maybe_resolve_links
Step 3: Resolve links (and call into step 4)
source/carton/src/load.rs:117
↓ 2 callers
Function
merge_in_load_opts
( mut info_with_extras: CartonInfoWithExtras, opts: LoadOpts, )
source/carton/src/load.rs:344
↓ 2 callers
Method
on_res
(&self, res: ResponseMessageType)
source/anywhere/src/transport/serde.rs:65
↓ 2 callers
Function
run
()
source/carton-bindings-wasm/tests/basic.js:46
↓ 2 callers
Function
runtime
A utility to lazily start a tokio runtime
source/carton-bindings-c/src/utils.rs:20
↓ 2 callers
Function
runtime
Return a global tokio runtime or create one if it doesn't exist. Throws a JavaScript exception if the `Runtime` fails to create. Based on https://gith
source/carton-bindings-nodejs/src/lib.rs:33
↓ 2 callers
Function
send_infer_response
A utility to send inference responses
source/carton-runner-py/src/main.rs:148
↓ 2 callers
Method
send_streaming_response_for_request
( &self, req_id: u64, complete: bool, res: ResponseData, )
source/carton-runner-interface/src/server.rs:321
↓ 2 callers
Method
symlink
(&self, src: impl PathType, dst: impl PathType)
source/anywhere/src/types.rs:390
↓ 2 callers
Function
test
(input)
source/carton-bindings-nodejs/tests/test_basic.js:17
↓ 2 callers
Method
to_ndarray
Strings are a bit complex and require conversion This is unfortunate but necessary because most frameworks have different internal representations of
source/carton-utils-py/src/tensor.rs:50
↓ 2 callers
Function
to_numpy_arrays
Convert a map of tensors to a map of numpy arrays
source/carton-runner-py/src/model.rs:259
↓ 2 callers
Method
to_rpc
(self, comms: &Comms)
source/carton-runner-interface/src/server.rs:235
↓ 2 callers
Method
transform_req
(&self, msg: rpc::MessageType)
source/anywhere/src/transport/serde.rs:50
↓ 2 callers
Function
transform_res
(v: Result<HashMap<String, Tensor>, String>, method: &'static str)
source/carton-runner-py/src/main.rs:138
↓ 2 callers
Method
try_to_fs
( self, )
source/anywhere/src/rpc.rs:84
↓ 2 callers
Function
uncached_download
Download a file with progress updates Either download to a file or get a stream of chunks as the file is being downloaded (or both)
source/carton-utils/src/download.rs:42
↓ 2 callers
Function
unwrap_container
Optional Step 2: Unwrap a container (e.g. zip) (and call into step 3)
source/carton/src/load.rs:105
↓ 2 callers
Function
update_or_generate_lockfile
Generates a lockfile in a python project based on the requirements.txt Avoids unnecessarily regenerating
source/carton-runner-py/src/packager.rs:96
↓ 2 callers
Method
view
(&self)
source/carton/src/runner_interface/v1/types.rs:69
↓ 2 callers
Method
wait
source/carton-bindings-cpp/src/carton.cc:229
↓ 1 callers
Function
_preload_cuda_deps
Preloads cuda deps if they could not be found otherwise.
source/carton-runner-py/src/preload_cuda.py:38
↓ 1 callers
Function
build_c_cpp_bindings
(bindings_path: &Path, target: &str)
source/build-utils/src/bin/build_c_cpp_bindings.rs:44
↓ 1 callers
Function
bytes_to_slice
(b: &[u8])
source/carton-runner-wasm/src/types.rs:19
↓ 1 callers
Function
calculateLinesToHighlight
(meta: string)
docs/website/components/code.tsx:31
↓ 1 callers
Method
canonicalize
These are almost identical to tokio::fs::...
source/carton/src/httpfs.rs:298
↓ 1 callers
Method
convert
(self)
source/carton-runner-py/src/model.rs:217
↓ 1 callers
Function
convert_required_platforms
(r: Option<Vec<String>>)
source/carton-bindings-py/src/conversions.rs:185
↓ 1 callers
Method
create_bidi_stream
Create a bidirectional stream and send one half of it to the other process Returns the stream
source/carton-runner-interface/src/do_not_modify/comms.rs:254
↓ 1 callers
Method
create_file
Write filesystem operations
source/anywhere/src/file_ops.rs:178
↓ 1 callers
Function
create_links
( path: std::path::PathBuf, urls: HashMap<String, Vec<String>>, )
source/carton/src/format/v1/links.rs:48
↓ 1 callers
Method
deref_mut
(&mut self)
source/carton-runner-interface/src/do_not_modify/alloc_pool.rs:87
↓ 1 callers
Function
discover_runners
Discover all installed runners
source/carton-runner-packager/src/discovery.rs:75
↓ 1 callers
Method
do_log
Log to the currently active logger
source/carton-runner-interface/src/do_not_modify/types.rs:187
↓ 1 callers
Function
extract
Extract an archive (either zip, tar, or tar.gz)
source/carton-utils/src/archive.rs:132
↓ 1 callers
Function
extract_tar
Extracts a tar archive to the output directory
source/carton-utils/src/archive.rs:119
↓ 1 callers
Function
extract_tar_gz
Extracts a tar.gz archive to the output directory
source/carton-utils/src/archive.rs:105
↓ 1 callers
Function
fetch
(client: &reqwest::Client, url: &str, range_start: u64)
source/carton/src/http.rs:316
↓ 1 callers
Function
fetch
(_client: reqwest::Client, url: String, sha256: String)
source/carton/src/httpfs.rs:160
↓ 1 callers
Function
fetch_libtorch
Fetch libtorch
source/fetch-deps/src/main.rs:23
↓ 1 callers
Function
fetch_range
Fetch a range of bytes from a URL via HTTP range requests
source/carton/src/http.rs:284
↓ 1 callers
Method
file_metadata
Read only file operations
source/anywhere/src/file_ops.rs:55
↓ 1 callers
Method
file_set_len
( &self, context: &ServerContext<Self>, handle: FileHandle, size: u64, )
source/anywhere/src/file_ops.rs:157
↓ 1 callers
Method
file_set_permissions
( &self, context: &ServerContext<Self>, handle: FileHandle, perm: Permissions,
source/anywhere/src/file_ops.rs:167
↓ 1 callers
Method
file_sync_all
Write file operations
source/anywhere/src/file_ops.rs:139
↓ 1 callers
Method
file_sync_data
( &self, context: &ServerContext<Self>, handle: FileHandle, )
source/anywhere/src/file_ops.rs:148
↓ 1 callers
Method
file_try_clone
( &self, context: &ServerContext<Self>, handle: FileHandle, )
source/anywhere/src/file_ops.rs:66
↓ 1 callers
Function
framed_transport
Send and recv length-prefixed serialized structs on an [`AsyncRead`] and [`AsyncWrite`] pair
source/carton-runner-interface/src/do_not_modify/framed.rs:28
↓ 1 callers
Method
framework_version
(&self)
source/carton-runner-packager/src/discovery.rs:174
↓ 1 callers
Method
get
(&self)
source/carton/src/load.rs:418
↓ 1 callers
Function
get_carton_info
( url_or_path: &str, )
source/carton/src/load.rs:57
↓ 1 callers
Function
get_header_code
(frameworkname: string)
docs/website/pages/index.tsx:65
↓ 1 callers
Method
get_model_info
Get info for a model
source/carton/src/carton.rs:262
← previous
next →
101–200 of 635, ranked by callers