Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PersiaML/PERSIA
/ functions
Functions
720 in github.com/PersiaML/PERSIA
⨍
Functions
720
◇
Types & classes
217
↳
Endpoints
1
↓ 2 callers
Function
_prepare_feature
( persia_training_batch: PersiaTrainingBatch, preprocess_mode: PreprocessMode = PreprocessMode.TRAIN,
persia/ctx.py:75
↓ 2 callers
Method
as_mut_emb_entry_slice
(&mut self)
rust/persia-embedding-holder/src/emb_entry.rs:108
↓ 2 callers
Function
assert_ndarray_base_data
( ndarray_base_data_list: List[np.ndarray], tensors: List[torch.Tensor], use_cuda: bool, )
test/test_ctx.py:28
↓ 2 callers
Method
batched_lookup
( &self, req: Vec<(u64, usize)>, is_training: bool, )
rust/persia-embedding-server/src/embedding_parameter_service/mod.rs:162
↓ 2 callers
Method
check_embedding_dump_done
( &self, emb_dir: &PathBuf, )
rust/persia-model-manager/src/lib.rs:178
↓ 2 callers
Function
create_compact_request_with_indices
()
rust/others/persia-common-benchmark/benches/serialize_inf_request.rs:258
↓ 2 callers
Method
create_counter_vec
( &self, name: &str, help: &str, )
rust/persia-metrics/src/lib.rs:102
↓ 2 callers
Method
create_gauge_vec
( &self, name: &str, help: &str, )
rust/persia-metrics/src/lib.rs:124
↓ 2 callers
Method
cuda
(self, device_id: i32)
rust/persia-core/src/tensor.rs:272
↓ 2 callers
Function
current_unix_time
()
rust/persia-incremental-update-manager/src/lib.rs:67
↓ 2 callers
Method
data_ptr
(&mut self)
rust/persia-core/src/tensor.rs:148
↓ 2 callers
Method
dtype
(&self)
rust/persia-core/src/tensor.rs:306
↓ 2 callers
Function
embedding2tensor
(embedding: FeatureEmbeddingBatch, device: &Option<i32>)
rust/persia-core/src/forward.rs:333
↓ 2 callers
Function
ensure_persia_service
(*args, **kwargs)
persia/helper.py:330
↓ 2 callers
Method
error_handle
( &self, err: &EmbeddingWorkerError, )
rust/persia-embedding-server/src/embedding_worker_service/mod.rs:1320
↓ 2 callers
Function
execute_test
(optimizer: Box<dyn Optimizable>)
rust/persia-common/src/optim.rs:342
↓ 2 callers
Function
expect_uri
(url: url::Url)
rust/persia-common/src/message_queue.rs:27
↓ 2 callers
Method
fill_elements
(&mut self, capacity: u32)
rust/persia-embedding-holder/src/array_linked_list.rs:231
↓ 2 callers
Function
find_free_port
Check current input port is available or not. It will add the interval to input port utils the the new port is available.
persia/utils.py:83
↓ 2 callers
Method
forward
( self, non_id_tensors: List[torch.Tensor], embedding_tensors: List[torch.Tensor] )
examples/src/adult-income/model.py:24
↓ 2 callers
Method
forward_batched_direct
( &self, indices: IDTypeFeatureBatch, )
rust/persia-embedding-server/src/embedding_worker_service/mod.rs:1076
↓ 2 callers
Function
forward_directly
( batch: PersiaBatchImpl, device_id: Option<i32>, )
rust/persia-core/src/forward.rs:782
↓ 2 callers
Method
get
()
rust/persia-embedding-config/src/lib.rs:187
↓ 2 callers
Method
get_address
(&self, replica_index: usize)
rust/persia-embedding-server/src/embedding_worker_service/mod.rs:258
↓ 2 callers
Method
get_all_addresses
(&self)
rust/persia-embedding-server/src/embedding_worker_service/mod.rs:268
↓ 2 callers
Method
get_configuration
( &self, )
rust/persia-embedding-server/src/embedding_parameter_service/mod.rs:150
↓ 2 callers
Method
get_dtype
(&self)
rust/persia-core/src/tensor.rs:114
↓ 2 callers
Method
get_emb_file_list_in_dir
( &self, dir: PathBuf, )
rust/persia-model-manager/src/lib.rs:345
↓ 2 callers
Method
get_id
(&self)
rust/persia-embedding-server/src/embedding_worker_service/mod.rs:647
↓ 2 callers
Function
get_label_selector
(job_name: &str)
k8s/src/crd.rs:38
↓ 2 callers
Function
get_local_rank
Get the local rank of current process. Local rank is the rank of the process on the local machine.
persia/env.py:110
↓ 2 callers
Function
get_metrics_gateway_service_name
(job_name: &str)
k8s/src/crd.rs:34
↓ 2 callers
Function
get_nn_worker_pod_name
(job_name: &str, replica_index: usize)
k8s/src/crd.rs:22
↓ 2 callers
Method
get_other_shard_dir
(&self, root_dir: &PathBuf, replica_index: usize)
rust/persia-model-manager/src/lib.rs:131
↓ 2 callers
Method
get_parent_dir
(&self, root_dir: &PathBuf)
rust/persia-model-manager/src/lib.rs:138
↓ 2 callers
Function
get_rank
Get the rank of current process.
persia/env.py:104
↓ 2 callers
Method
get_shard_dir
(&self, root_dir: &PathBuf)
rust/persia-model-manager/src/lib.rs:124
↓ 2 callers
Function
indices_add_prefix
(indices: &mut IDTypeFeatureBatch, config: &EmbeddingConfig)
rust/persia-embedding-server/src/embedding_worker_service/mod.rs:403
↓ 2 callers
Function
indices_to_hashstack_indices
( indices: &mut IDTypeFeatureBatch, config: &EmbeddingConfig, )
rust/persia-embedding-server/src/embedding_worker_service/mod.rs:348
↓ 2 callers
Method
init_master_discovery_service
(&mut self, master_addr: Option<String>)
rust/persia-core/src/lib.rs:228
↓ 2 callers
Method
init_rpc_client_with_addr
(&self, addr: String)
rust/persia-core/src/lib.rs:184
↓ 2 callers
Method
insert_between
(&mut self, prev_index: u32, next_index: u32, value: T)
rust/persia-embedding-holder/src/array_linked_list.rs:330
↓ 2 callers
Method
is_empty
Checks if the list is empty.
rust/persia-embedding-holder/src/array_linked_list.rs:791
↓ 2 callers
Method
is_master
(&self)
rust/persia-embedding-config/src/lib.rs:205
↓ 2 callers
Method
launch
(&mut self, num_workers: usize)
rust/persia-core/src/forward.rs:530
↓ 2 callers
Method
load_array_linked_list
( &self, file_path: PathBuf, )
rust/persia-model-manager/src/lib.rs:276
↓ 2 callers
Method
load_torch_state_dict
Load a Pytorch state dict from the source directory and apply to `torch_instance`. Arguments: torch_instance (torch.nn.Module or
persia/ctx.py:584
↓ 2 callers
Method
lookup_batched_all_slots
( &self, indices: &mut IDTypeFeatureBatch, requires_grad: bool, )
rust/persia-embedding-server/src/embedding_worker_service/mod.rs:874
↓ 2 callers
Method
mark_embedding_dump_done
( &self, emb_dir: PathBuf, num_internal_shards: usize, )
rust/persia-model-manager/src/lib.rs:156
↓ 2 callers
Method
model_manager_status
(&self)
rust/persia-embedding-server/src/embedding_worker_service/mod.rs:225
↓ 2 callers
Function
ndarray_f32_to_f16
(input: &Array2<f32>)
rust/persia-common/src/lib.rs:157
↓ 2 callers
Method
parent
(&self)
rust/persia-storage/src/lib.rs:76
↓ 2 callers
Method
pop_from_buffer
(&mut self)
rust/persia-core/src/forward.rs:459
↓ 2 callers
Method
prepare_features
r"""This function converts data from ``PersiaTrainingBatch`` to ``torch.Tensor``. :class:`PersiaTrainingBatch` contains non_id_type_features,
persia/ctx.py:450
↓ 2 callers
Function
process
(df_dataset: pd.core.frame.DataFrame, filepath: str)
examples/src/adult-income/data/data_preprocess.py:11
↓ 2 callers
Method
process_status
(&self, status: Vec<EmbeddingModelManagerStatus>)
rust/persia-core/src/rpc.rs:243
↓ 2 callers
Method
raw_data_ptr
(&mut self)
rust/persia-core/src/tensor.rs:294
↓ 2 callers
Method
read_to_end_speedy
(&self)
rust/persia-storage/src/lib.rs:116
↓ 2 callers
Method
record
(&self, stream: CudaStreamPtr)
rust/persia-core/src/cuda/cuda_event_pool.rs:27
↓ 2 callers
Function
reload_env
Reload the environment.
persia/env.py:78
↓ 2 callers
Method
req_type
(&self)
rust/others/persia-nats-marcos/src/lib.rs:28
↓ 2 callers
Function
serialize_tear_indices
( meta: &CompactBatchEmbeddingsRequestWithoutIndices, indices: &Vec<u64>, )
rust/others/persia-common-benchmark/benches/serialize_inf_request.rs:291
↓ 2 callers
Method
set
( self, replica_size: Optional[int] = None, replica_index: Optional[int] = None,
persia/env.py:58
↓ 2 callers
Function
setup
(sphinx)
docs/conf.py:155
↓ 2 callers
Method
state_initialization
(&self, state: &mut [f32], dim: usize)
rust/persia-common/src/optim.rs:299
↓ 2 callers
Method
subject_ident
(&self)
rust/others/persia-nats-marcos/src/lib.rs:16
↓ 2 callers
Method
subscribe_subject_ident
(&self)
rust/others/persia-nats-marcos/src/lib.rs:20
↓ 2 callers
Method
to_bytes
Serialize the [`PersiaBatchImpl`] to bytes.
rust/persia-core/src/data.rs:256
↓ 2 callers
Method
wait_for_serving
(&self)
rust/persia-core/src/lib.rs:314
↓ 2 callers
Method
write_all
(&self, content: Vec<u8>)
rust/persia-storage/src/lib.rs:124
↓ 2 callers
Method
write_all_speedy
(&self, content: &W)
rust/persia-storage/src/lib.rs:138
↓ 1 callers
Method
__init__
Arguments: initialization_method (str): the PyTorch distributed initialization_method method, support tcp and fil
persia/distributed.py:98
↓ 1 callers
Method
__init__
( self, dataset: IterableDatasetBase, forward_buffer_size: int = 10, timeout_m
persia/data.py:228
↓ 1 callers
Function
_check_finite
Check if all tensors in the input list contain only finite elements. Arguments: tensors (List[torch.Tensor]): list of tensor to be checke
persia/ctx.py:28
↓ 1 callers
Method
_get_master_addr
Get leader(rank 0) ip address.
persia/ctx.py:865
↓ 1 callers
Method
_init_embedding_worker_rpc_client
Initialize the embedding worker rpc clients.
persia/ctx.py:877
↓ 1 callers
Function
_is_port_available
(port: int)
persia/utils.py:69
↓ 1 callers
Function
_launch_data_loader
(replica_num: int, env: dict)
persia/helper.py:73
↓ 1 callers
Function
_launch_nats_server
(port: int)
persia/helper.py:113
↓ 1 callers
Function
_launch_nn_worker
(nproc_per_node: int, env: dict)
persia/helper.py:91
↓ 1 callers
Function
_ndarray_check
r"""Check if the dtype, shape and batch_size is valid or not. Arguments: data (np.ndarray): data that needs to be checked. data_n
persia/embedding/data.py:39
↓ 1 callers
Method
_on_backward
Update the embeddings' gradients Arguments: loss_scale (float): the loss that scaled by GradScalar, loss_scale always equal
persia/ctx.py:926
↓ 1 callers
Method
_prepare
Do some preparation to init `DataCtx`.
persia/ctx.py:329
↓ 1 callers
Function
_select_bagua_algorithm
Select corresponding bagua algorithm for current training. Arguments: algorithm (str): name of Bagua algorithm. model (torch.nn.M
persia/distributed.py:204
↓ 1 callers
Function
_set_default_logger
r"""Set the default logger. Arguments: name (str): default logger name. logging.Logger
persia/logger.py:105
↓ 1 callers
Function
adam_avx2
( adam_m: &mut [f32], adam_v: &mut [f32], beta1_power: f32, beta2_power: f32, emb: &mut [f
rust/persia-simd/src/lib.rs:147
↓ 1 callers
Function
add
(client: Client, name: &str, namespace: &str)
k8s/src/finalizer.rs:6
↓ 1 callers
Method
add_gradient
( &mut self, slot_name: String, data_ptr: u64, shape: [usize; 2], is_f
rust/persia-core/src/backward.rs:86
↓ 1 callers
Method
add_id_type_feature
Add id_type_feature which is a sparse matrix into [`PersiaBatchImpl`] with required name.
rust/persia-core/src/data.rs:183
↓ 1 callers
Method
add_id_type_feature_with_single_id
Add id_type_feature which is a vector into [`PersiaBatchImpl`] with required name.
rust/persia-core/src/data.rs:208
↓ 1 callers
Method
add_label
Add label into [`PersiaBatchImpl`] with optional name.
rust/persia-core/src/data.rs:171
↓ 1 callers
Method
add_meta
Add binary data into [`PersiaBatchImpl`].
rust/persia-core/src/data.rs:251
↓ 1 callers
Method
add_non_id_type_feature
Add non_id_type_feature into [`PersiaBatchImpl`] with optional name.
rust/persia-core/src/data.rs:159
↓ 1 callers
Method
add_skipped_gradient
(&mut self, slot_name: String)
rust/persia-core/src/backward.rs:76
↓ 1 callers
Method
apply
Register sparse optimizer to embedding server.
persia/embedding/optim.py:13
↓ 1 callers
Method
as_emb_entry_slice
(&self)
rust/persia-embedding-holder/src/emb_entry.rs:112
↓ 1 callers
Method
backward
Update the parameters of the current dense model and embedding model. Arguments: loss (torch.Tensor): loss of current batch.
persia/ctx.py:893
↓ 1 callers
Method
buffer_input_thread
(&self)
rust/persia-incremental-update-manager/src/lib.rs:251
↓ 1 callers
Method
buffer_output_thread
(&self)
rust/persia-incremental-update-manager/src/lib.rs:272
↓ 1 callers
Method
can_forward_batched
(&self, batcher_idx: usize)
rust/persia-embedding-server/src/embedding_worker_service/mod.rs:991
← previous
next →
101–200 of 720, ranked by callers