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
↓ 271 callers
Method
into
(self)
source/carton-runner-wasm/src/types.rs:11
↓ 116 callers
Method
clone
(&self)
source/carton/src/info.rs:99
↓ 70 callers
Method
into_iter
(self)
source/carton-bindings-c/src/tensormap.rs:48
↓ 67 callers
Method
insert
source/carton-bindings-cpp/src/carton.cc:174
↓ 55 callers
Method
to_string
(&self)
source/carton/src/types.rs:123
↓ 51 callers
Method
as_ref
(&self)
source/carton-bindings-py/src/conversions.rs:594
↓ 41 callers
Method
get
(&self)
source/carton/src/info.rs:175
↓ 39 callers
Method
send
(&self, msg: crate::rpc::MessageType)
source/anywhere/src/transport/framed.rs:77
↓ 34 callers
Method
get
(&self)
source/carton-runner-interface/src/server.rs:58
↓ 30 callers
Method
convert
(self)
source/anywhere/src/types.rs:408
↓ 30 callers
Method
view
(&self)
source/carton-runner-interface/src/do_not_modify/storage.rs:54
↓ 26 callers
Method
len
(&self)
source/carton-runner-interface/src/do_not_modify/alloc_shm.rs:214
↓ 26 callers
Method
log
(&self, record: &log::Record)
source/carton-runner-interface/src/server.rs:455
↓ 26 callers
Function
parse
(data: &[u8])
source/carton/src/format/v1/carton_toml.rs:412
↓ 25 callers
Method
send_response_for_request
( &self, req_id: u64, res: ResponseData, )
source/carton-runner-interface/src/server.rs:306
↓ 25 callers
Method
view_mut
(&mut self)
source/carton-runner-interface/src/do_not_modify/storage.rs:59
↓ 19 callers
Method
shape
source/carton-bindings-cpp/src/carton.cc:95
↓ 15 callers
Function
copy
( r: &'a mut R, w: &'a mut W, buf_size: usize, mut progress_update: impl FnMut(/* downloaded *
source/carton-runner-py/src/loader.rs:284
↓ 14 callers
Function
convert_opt_vec
(v: Option<Vec<T>>)
source/carton/src/conversion_utils.rs:34
↓ 14 callers
Method
done
(&mut self)
source/carton-runner-interface/src/slowlog.rs:47
↓ 13 callers
Function
convert_map
(v: HashMap<A, T>)
source/carton/src/conversion_utils.rs:27
↓ 13 callers
Method
read
(&self, py: Python<'a>, size_bytes: Option<u64>)
source/carton-bindings-py/src/conversions.rs:625
↓ 13 callers
Function
slowlog
(msg: S, interval_seconds: u64)
source/carton-runner-interface/src/slowlog.rs:81
↓ 12 callers
Method
as_ptr
Get a view of this tensor
source/carton-runner-interface/src/do_not_modify/alloc_shm.rs:49
↓ 12 callers
Method
convert_into_with_context
(self, context: C)
source/carton/src/conversion_utils.rs:97
↓ 12 callers
Method
data
source/carton-bindings-cpp/src/carton.cc:79
↓ 12 callers
Method
read
(&self, path: impl PathType)
source/carton/src/httpfs.rs:316
↓ 12 callers
Method
status
source/carton-bindings-cpp/src/carton_impl.hh:73
↓ 11 callers
Function
convert_opt_map
(v: Option<HashMap<A, T>>)
source/carton/src/conversion_utils.rs:41
↓ 11 callers
Method
view
(&self)
source/carton-bindings-py/src/tensor.rs:78
↓ 10 callers
Function
convert_tensor
Convert a numpy array to a tensor TODO: this makes a copy
source/carton-runner-py/src/model.rs:224
↓ 10 callers
Function
copy_to_storage
(mut s: CartonStorage<T>, b: &[u8])
source/carton-runner-wasm/src/types.rs:29
↓ 10 callers
Method
extract
(ob: &'py PyAny)
source/carton-utils-py/src/tensor.rs:23
↓ 10 callers
Function
pack
( py: Python, path: String, runner_name: String, required_framework_version: String, runne
source/carton-bindings-py/src/lib.rs:192
↓ 10 callers
Function
run_command
(cmd, **kwargs)
ci/build.py:23
↓ 10 callers
Method
without_progress
Just a hint to the compiler so it can figure out the type of T if we never call `set_progress` or `set_total`
source/carton-runner-interface/src/slowlog.rs:70
↓ 9 callers
Method
write
( &self, path: impl PathType, contents: impl AsRef<[u8]> + MaybeSend, )
source/anywhere/src/types.rs:394
↓ 8 callers
Method
get
(&self, py: Python<'a>)
source/carton-bindings-py/src/conversions.rs:548
↓ 8 callers
Method
size
source/carton-bindings-cpp/src/carton.cc:198
↓ 7 callers
Function
install
TODO: add slowlog for long running downloads Install the runner if it doesn't already exist
source/carton-runner-packager/src/lib.rs:78
↓ 7 callers
Method
load
(self, fs: &F)
source/carton-runner-rust-bert/src/qa.rs:51
↓ 7 callers
Method
open
Open a file
source/carton/src/httpfs.rs:281
↓ 7 callers
Function
storage_to_tensor
(v: TensorStorage<T>, kind: tch::Kind, device: tch::Device)
source/carton-runner-torch/src/main.rs:204
↓ 7 callers
Function
test_model
Note: this currently just runs the model and does not verify expected outputs
source/carton-runner-rust-bert/tests/pack.rs:113
↓ 6 callers
Function
fallthrough
(t: T, u: U)
source/carton/src/overlayfs.rs:319
↓ 6 callers
Method
get_and_remove
source/carton-bindings-cpp/src/carton.cc:186
↓ 6 callers
Method
get_or_throw
source/carton-bindings-cpp/src/carton_impl.hh:60
↓ 6 callers
Method
load
Load a carton given a url, path, etc and options
source/carton/src/carton.rs:42
↓ 6 callers
Method
strides
source/carton-bindings-cpp/src/carton.cc:107
↓ 5 callers
Function
convert_vec
(v: Vec<T>)
source/carton/src/conversion_utils.rs:20
↓ 5 callers
Method
do_rpc
Make an RPC request and get the response
source/carton-runner-interface/src/client.rs:159
↓ 5 callers
Method
flush
(&self)
source/carton-runner-interface/src/server.rs:461
↓ 5 callers
Method
get
source/carton-bindings-cpp/src/carton.cc:239
↓ 5 callers
Method
get
(&self)
source/carton-bindings-wasm/src/lib.rs:313
↓ 5 callers
Method
get
(&self)
source/carton/src/format/v1/load.rs:46
↓ 5 callers
Method
get_comms
(&self)
source/carton-runner-interface/src/client.rs:203
↓ 5 callers
Method
get_download_info
(mut self, url: String)
source/carton-runner-packager/src/lib.rs:215
↓ 5 callers
Function
get_executable_path
()
source/carton-runner-py/src/python_utils.rs:88
↓ 5 callers
Method
get_next_request
(&mut self)
source/carton-runner-interface/src/server.rs:299
↓ 5 callers
Function
init_runner
Initialize the runner from command line args and return two queues to use to communicate
source/carton-runner-interface/src/server.rs:362
↓ 5 callers
Function
load
( fs: F, runner_opts: Option<HashMap<String, RunnerOpt>>, )
source/carton-runner-py/src/loader.rs:34
↓ 5 callers
Function
loadTensorOrMisc
(item)
source/carton-bindings-wasm/tests/basic.js:22
↓ 5 callers
Function
maybe_init_logging
Initializes logging if we didn't do so already Safe to call multiple times
source/carton-bindings-py/src/lib.rs:43
↓ 5 callers
Method
read_to_string
(&self, path: impl PathType)
source/carton/src/httpfs.rs:367
↓ 5 callers
Function
to_map
(value: HashMap<K, V>)
source/carton-bindings-wasm/src/lib.rs:147
↓ 4 callers
Method
canonicalize
(&self, path: impl PathType)
source/carton/src/overlayfs.rs:138
↓ 4 callers
Function
connect
( send: mpsc::Sender<RequestMessageType>, mut recv: mpsc::Receiver<ResponseMessageType>, )
source/anywhere/src/transport/serde.rs:72
↓ 4 callers
Function
extract_zip
Based on https://github.com/Majored/rs-async-zip/blob/main/examples/file_extraction.rs Extracts a ZIP archive to the output directory
source/carton-utils/src/archive.rs:29
↓ 4 callers
Method
get_data
Gets the data of the main runner zip file
source/carton-runner-packager/src/lib.rs:206
↓ 4 callers
Function
get_linked_files
Get a mapping of all the LFS files in a huggingface repo. Using this as part of packing can help create smaller packed models and allow for m
source/carton-bindings-py/python/cartonml/utils/hf.py:19
↓ 4 callers
Method
get_readonly_filesystem
(&self, token: FsToken)
source/carton-runner-interface/src/server.rs:341
↓ 4 callers
Method
infer
source/carton-bindings-cpp/src/carton.cc:367
↓ 4 callers
Function
init
Initialize python with an isolated environment This must be called before attempting to use python (otherwise any PyO3 code will panic) (safe to call
source/carton-runner-py/src/python_utils.rs:22
↓ 4 callers
Function
install_wheel_and_make_available
Installs a wheel (if not already installed) and adds it to `sys.path`
source/carton-runner-py/src/wheel.rs:40
↓ 4 callers
Method
into_py
(self, py: Python<'_>)
source/carton-bindings-py/src/conversions.rs:343
↓ 4 callers
Function
load
(path, opts = {})
source/carton-bindings-nodejs/js/index.js:17
↓ 4 callers
Method
metadata
(&self)
source/carton/src/httpfs.rs:218
↓ 4 callers
Method
ok
source/carton-bindings-cpp/src/carton_impl.hh:54
↓ 4 callers
Method
pack
(path: P, opts: O)
source/carton/src/carton.rs:131
↓ 4 callers
Function
package
Package a runner along with additional list zip or tar files to download and unpack at installation time `upload_runner` is a function that is given t
source/carton-runner-packager/src/lib.rs:33
↓ 4 callers
Function
process_infer_output
Takes the output of an infer call and handles async iteration responses correctly
source/carton-runner-py/src/model.rs:289
↓ 4 callers
Method
read_dir
( &self, path: impl PathType, )
source/carton/src/httpfs.rs:338
↓ 4 callers
Method
serialize
(&self, serializer: S)
source/carton-runner-interface/src/do_not_modify/alloc_pool.rs:37
↓ 3 callers
Function
add_to_sys_path
Adds a vec of paths to sys.path Also updates the PYTHONPATH env var
source/carton-runner-py/src/python_utils.rs:100
↓ 3 callers
Function
alloc_tensor
( shape: Vec<u64>, )
source/carton-runner-interface/src/do_not_modify/alloc_inline.rs:170
↓ 3 callers
Method
as_mut_ptr
Get a mut view of this tensor
source/carton-runner-interface/src/do_not_modify/alloc_shm.rs:58
↓ 3 callers
Function
build_c_bindings
Build the Carton C bindings
source/build-utils/src/lib.rs:26
↓ 3 callers
Function
cached_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:107
↓ 3 callers
Function
carton_load_with_strlen
( url_or_path: *const c_char, strlen: u64, callback: CartonLoadCallback, callback_arg: Callbac
source/carton-bindings-c/src/carton.rs:52
↓ 3 callers
Method
create
Create a file
source/anywhere/src/types.rs:333
↓ 3 callers
Method
create_dir_all
(&self, path: impl PathType)
source/anywhere/src/types.rs:360
↓ 3 callers
Function
discover_or_get_runner_and_launch
( info: &CartonInfo, visible_device: &Device, )
source/carton/src/load.rs:230
↓ 3 callers
Function
ensure_has_pip
()
source/carton-runner-py/src/pip_utils.rs:47
↓ 3 callers
Method
get_channel
A framed transport that can transport serializable things on top of a bidirectional stream. Note: this can only be called once per channel id
source/carton-runner-interface/src/do_not_modify/comms.rs:289
↓ 3 callers
Method
get_string
source/carton-bindings-cpp/src/carton.cc:128
↓ 3 callers
Method
get_writable_filesystem
(&self, token: FsToken)
source/carton-runner-interface/src/server.rs:337
↓ 3 callers
Method
infer
(&self, tensors: HashMap<String, Tensor>)
source/carton-runner-rust-bert/src/qa.rs:94
↓ 3 callers
Method
into_inner
(self, _comms: &Comms)
source/carton-runner-interface/src/do_not_modify/types.rs:278
↓ 3 callers
Function
load_unpacked
( py: Python, path: String, runner_name: String, required_framework_version: String, runne
source/carton-bindings-py/src/lib.rs:133
↓ 3 callers
Method
matches
(&self, env: &EnvironmentMarkers)
source/carton-runner-py/src/packager.rs:64
next →
1–100 of 635, ranked by callers