MCPcopy Create free account

hub / github.com/VivekPanyam/carton / functions

Functions635 in github.com/VivekPanyam/carton

↓ 271 callersMethodinto
(self)
source/carton-runner-wasm/src/types.rs:11
↓ 116 callersMethodclone
(&self)
source/carton/src/info.rs:99
↓ 70 callersMethodinto_iter
(self)
source/carton-bindings-c/src/tensormap.rs:48
↓ 67 callersMethodinsert
source/carton-bindings-cpp/src/carton.cc:174
↓ 55 callersMethodto_string
(&self)
source/carton/src/types.rs:123
↓ 51 callersMethodas_ref
(&self)
source/carton-bindings-py/src/conversions.rs:594
↓ 41 callersMethodget
(&self)
source/carton/src/info.rs:175
↓ 39 callersMethodsend
(&self, msg: crate::rpc::MessageType)
source/anywhere/src/transport/framed.rs:77
↓ 34 callersMethodget
(&self)
source/carton-runner-interface/src/server.rs:58
↓ 30 callersMethodconvert
(self)
source/anywhere/src/types.rs:408
↓ 30 callersMethodview
(&self)
source/carton-runner-interface/src/do_not_modify/storage.rs:54
↓ 26 callersMethodlen
(&self)
source/carton-runner-interface/src/do_not_modify/alloc_shm.rs:214
↓ 26 callersMethodlog
(&self, record: &log::Record)
source/carton-runner-interface/src/server.rs:455
↓ 26 callersFunctionparse
(data: &[u8])
source/carton/src/format/v1/carton_toml.rs:412
↓ 25 callersMethodsend_response_for_request
( &self, req_id: u64, res: ResponseData, )
source/carton-runner-interface/src/server.rs:306
↓ 25 callersMethodview_mut
(&mut self)
source/carton-runner-interface/src/do_not_modify/storage.rs:59
↓ 19 callersMethodshape
source/carton-bindings-cpp/src/carton.cc:95
↓ 15 callersFunctioncopy
( 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 callersFunctionconvert_opt_vec
(v: Option<Vec<T>>)
source/carton/src/conversion_utils.rs:34
↓ 14 callersMethoddone
(&mut self)
source/carton-runner-interface/src/slowlog.rs:47
↓ 13 callersFunctionconvert_map
(v: HashMap<A, T>)
source/carton/src/conversion_utils.rs:27
↓ 13 callersMethodread
(&self, py: Python<'a>, size_bytes: Option<u64>)
source/carton-bindings-py/src/conversions.rs:625
↓ 13 callersFunctionslowlog
(msg: S, interval_seconds: u64)
source/carton-runner-interface/src/slowlog.rs:81
↓ 12 callersMethodas_ptr
Get a view of this tensor
source/carton-runner-interface/src/do_not_modify/alloc_shm.rs:49
↓ 12 callersMethodconvert_into_with_context
(self, context: C)
source/carton/src/conversion_utils.rs:97
↓ 12 callersMethoddata
source/carton-bindings-cpp/src/carton.cc:79
↓ 12 callersMethodread
(&self, path: impl PathType)
source/carton/src/httpfs.rs:316
↓ 12 callersMethodstatus
source/carton-bindings-cpp/src/carton_impl.hh:73
↓ 11 callersFunctionconvert_opt_map
(v: Option<HashMap<A, T>>)
source/carton/src/conversion_utils.rs:41
↓ 11 callersMethodview
(&self)
source/carton-bindings-py/src/tensor.rs:78
↓ 10 callersFunctionconvert_tensor
Convert a numpy array to a tensor TODO: this makes a copy
source/carton-runner-py/src/model.rs:224
↓ 10 callersFunctioncopy_to_storage
(mut s: CartonStorage<T>, b: &[u8])
source/carton-runner-wasm/src/types.rs:29
↓ 10 callersMethodextract
(ob: &'py PyAny)
source/carton-utils-py/src/tensor.rs:23
↓ 10 callersFunctionpack
( py: Python, path: String, runner_name: String, required_framework_version: String, runne
source/carton-bindings-py/src/lib.rs:192
↓ 10 callersFunctionrun_command
(cmd, **kwargs)
ci/build.py:23
↓ 10 callersMethodwithout_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 callersMethodwrite
( &self, path: impl PathType, contents: impl AsRef<[u8]> + MaybeSend, )
source/anywhere/src/types.rs:394
↓ 8 callersMethodget
(&self, py: Python<'a>)
source/carton-bindings-py/src/conversions.rs:548
↓ 8 callersMethodsize
source/carton-bindings-cpp/src/carton.cc:198
↓ 7 callersFunctioninstall
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 callersMethodload
(self, fs: &F)
source/carton-runner-rust-bert/src/qa.rs:51
↓ 7 callersMethodopen
Open a file
source/carton/src/httpfs.rs:281
↓ 7 callersFunctionstorage_to_tensor
(v: TensorStorage<T>, kind: tch::Kind, device: tch::Device)
source/carton-runner-torch/src/main.rs:204
↓ 7 callersFunctiontest_model
Note: this currently just runs the model and does not verify expected outputs
source/carton-runner-rust-bert/tests/pack.rs:113
↓ 6 callersFunctionfallthrough
(t: T, u: U)
source/carton/src/overlayfs.rs:319
↓ 6 callersMethodget_and_remove
source/carton-bindings-cpp/src/carton.cc:186
↓ 6 callersMethodget_or_throw
source/carton-bindings-cpp/src/carton_impl.hh:60
↓ 6 callersMethodload
Load a carton given a url, path, etc and options
source/carton/src/carton.rs:42
↓ 6 callersMethodstrides
source/carton-bindings-cpp/src/carton.cc:107
↓ 5 callersFunctionconvert_vec
(v: Vec<T>)
source/carton/src/conversion_utils.rs:20
↓ 5 callersMethoddo_rpc
Make an RPC request and get the response
source/carton-runner-interface/src/client.rs:159
↓ 5 callersMethodflush
(&self)
source/carton-runner-interface/src/server.rs:461
↓ 5 callersMethodget
source/carton-bindings-cpp/src/carton.cc:239
↓ 5 callersMethodget
(&self)
source/carton-bindings-wasm/src/lib.rs:313
↓ 5 callersMethodget
(&self)
source/carton/src/format/v1/load.rs:46
↓ 5 callersMethodget_comms
(&self)
source/carton-runner-interface/src/client.rs:203
↓ 5 callersMethodget_download_info
(mut self, url: String)
source/carton-runner-packager/src/lib.rs:215
↓ 5 callersFunctionget_executable_path
()
source/carton-runner-py/src/python_utils.rs:88
↓ 5 callersMethodget_next_request
(&mut self)
source/carton-runner-interface/src/server.rs:299
↓ 5 callersFunctioninit_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 callersFunctionload
( fs: F, runner_opts: Option<HashMap<String, RunnerOpt>>, )
source/carton-runner-py/src/loader.rs:34
↓ 5 callersFunctionloadTensorOrMisc
(item)
source/carton-bindings-wasm/tests/basic.js:22
↓ 5 callersFunctionmaybe_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 callersMethodread_to_string
(&self, path: impl PathType)
source/carton/src/httpfs.rs:367
↓ 5 callersFunctionto_map
(value: HashMap<K, V>)
source/carton-bindings-wasm/src/lib.rs:147
↓ 4 callersMethodcanonicalize
(&self, path: impl PathType)
source/carton/src/overlayfs.rs:138
↓ 4 callersFunctionconnect
( send: mpsc::Sender<RequestMessageType>, mut recv: mpsc::Receiver<ResponseMessageType>, )
source/anywhere/src/transport/serde.rs:72
↓ 4 callersFunctionextract_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 callersMethodget_data
Gets the data of the main runner zip file
source/carton-runner-packager/src/lib.rs:206
↓ 4 callersFunctionget_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 callersMethodget_readonly_filesystem
(&self, token: FsToken)
source/carton-runner-interface/src/server.rs:341
↓ 4 callersMethodinfer
source/carton-bindings-cpp/src/carton.cc:367
↓ 4 callersFunctioninit
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 callersFunctioninstall_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 callersMethodinto_py
(self, py: Python<'_>)
source/carton-bindings-py/src/conversions.rs:343
↓ 4 callersFunctionload
(path, opts = {})
source/carton-bindings-nodejs/js/index.js:17
↓ 4 callersMethodmetadata
(&self)
source/carton/src/httpfs.rs:218
↓ 4 callersMethodok
source/carton-bindings-cpp/src/carton_impl.hh:54
↓ 4 callersMethodpack
(path: P, opts: O)
source/carton/src/carton.rs:131
↓ 4 callersFunctionpackage
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 callersFunctionprocess_infer_output
Takes the output of an infer call and handles async iteration responses correctly
source/carton-runner-py/src/model.rs:289
↓ 4 callersMethodread_dir
( &self, path: impl PathType, )
source/carton/src/httpfs.rs:338
↓ 4 callersMethodserialize
(&self, serializer: S)
source/carton-runner-interface/src/do_not_modify/alloc_pool.rs:37
↓ 3 callersFunctionadd_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 callersFunctionalloc_tensor
( shape: Vec<u64>, )
source/carton-runner-interface/src/do_not_modify/alloc_inline.rs:170
↓ 3 callersMethodas_mut_ptr
Get a mut view of this tensor
source/carton-runner-interface/src/do_not_modify/alloc_shm.rs:58
↓ 3 callersFunctionbuild_c_bindings
Build the Carton C bindings
source/build-utils/src/lib.rs:26
↓ 3 callersFunctioncached_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 callersFunctioncarton_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 callersMethodcreate
Create a file
source/anywhere/src/types.rs:333
↓ 3 callersMethodcreate_dir_all
(&self, path: impl PathType)
source/anywhere/src/types.rs:360
↓ 3 callersFunctiondiscover_or_get_runner_and_launch
( info: &CartonInfo, visible_device: &Device, )
source/carton/src/load.rs:230
↓ 3 callersFunctionensure_has_pip
()
source/carton-runner-py/src/pip_utils.rs:47
↓ 3 callersMethodget_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 callersMethodget_string
source/carton-bindings-cpp/src/carton.cc:128
↓ 3 callersMethodget_writable_filesystem
(&self, token: FsToken)
source/carton-runner-interface/src/server.rs:337
↓ 3 callersMethodinfer
(&self, tensors: HashMap<String, Tensor>)
source/carton-runner-rust-bert/src/qa.rs:94
↓ 3 callersMethodinto_inner
(self, _comms: &Comms)
source/carton-runner-interface/src/do_not_modify/types.rs:278
↓ 3 callersFunctionload_unpacked
( py: Python, path: String, runner_name: String, required_framework_version: String, runne
source/carton-bindings-py/src/lib.rs:133
↓ 3 callersMethodmatches
(&self, env: &EnvironmentMarkers)
source/carton-runner-py/src/packager.rs:64
next →1–100 of 635, ranked by callers