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
↓ 1 callers
Function
check_pyarray_dtype_valid
(py_object: &PyAny, dtype: &PyAny, name: Option<String>, py: Python)
rust/persia-core/src/data.rs:138
↓ 1 callers
Function
cli
()
persia/k8s_utils.py:7
↓ 1 callers
Function
cli
()
persia/launcher.py:107
↓ 1 callers
Method
client_impl
(&self)
rust/others/persia-rpc-macro/src/lib.rs:152
↓ 1 callers
Method
client_method
(&self, client_field: &Ident)
rust/others/persia-rpc-macro/src/lib.rs:42
↓ 1 callers
Method
cmp
(&self, other: &Self)
rust/persia-core/src/data.rs:70
↓ 1 callers
Function
cnt_ctx
Get the :class:`BaseCtx` recently entered.
persia/ctx.py:1067
↓ 1 callers
Method
configure
( &self, config: PersiaEmbeddingModelHyperparameters, )
rust/persia-embedding-server/src/embedding_parameter_service/mod.rs:440
↓ 1 callers
Method
consume_all_id_type_feature_embedding_tensors
(&mut self)
rust/persia-core/src/forward.rs:274
↓ 1 callers
Method
consume_all_label_tensors
(&mut self)
rust/persia-core/src/forward.rs:281
↓ 1 callers
Method
consume_all_non_id_type_feature_tensors
(&mut self)
rust/persia-core/src/forward.rs:267
↓ 1 callers
Method
consume_cpu_storage
(self)
rust/persia-core/src/tensor.rs:162
↓ 1 callers
Method
consume_dataset
(self)
persia/data.py:178
↓ 1 callers
Method
convert2distributed_model
Arguments: model (torch.nn.Module): the PyTorch model that needs to be converted to data-parallel model. world_size (
persia/distributed.py:127
↓ 1 callers
Method
converted_id_type_features2embedding_tensor
Convert the IdTypeFeatureBatch to EmbeddingTensor.
rust/persia-core/src/data.rs:228
↓ 1 callers
Function
copy_gradients
( x: &SingleSlotGradient, num_bytes: usize, num_elements: usize, device_id: Arc<Option<i32>>,
rust/persia-core/src/backward.rs:155
↓ 1 callers
Method
create_gradient_batch
(&mut self)
rust/persia-core/src/forward.rs:299
↓ 1 callers
Function
cuda_d2h
( num_bytes: usize, data_ptr: *mut std::os::raw::c_void, host_ptr: *mut std::os::raw::c_void, )
rust/persia-core/src/cuda/utils.rs:7
↓ 1 callers
Function
decayed_adagrad_avx2
( adagrad: &mut [f32], embedding: &mut [f32], gradient: &[f32], g_square_momentum: f32, le
rust/persia-simd/src/lib.rs:21
↓ 1 callers
Function
decayed_adagrad_vectorwise_shared_avx2
remember to update adagrad with gradient squared after this, the function will not do this
rust/persia-simd/src/lib.rs:81
↓ 1 callers
Function
decayed_sgd_avx2
(emb: &mut [f32], grad: &[f32], wd: f32, lr: f32)
rust/persia-simd/src/lib.rs:124
↓ 1 callers
Function
delete
(req: web::Json<JobIdentifier>)
k8s/src/bin/server.rs:73
↓ 1 callers
Method
deploy_pods
(&self)
k8s/src/lib.rs:69
↓ 1 callers
Method
deploy_services
(&self)
k8s/src/lib.rs:78
↓ 1 callers
Function
deserialize_tear_indices
( bytes: &mut [u8], )
rust/others/persia-common-benchmark/benches/serialize_inf_request.rs:316
↓ 1 callers
Function
determine_action
(job: &PersiaJob)
k8s/src/bin/operator.rs:104
↓ 1 callers
Method
device
(&self)
rust/persia-core/src/tensor.rs:286
↓ 1 callers
Method
dlpack
(&mut self)
rust/persia-core/src/tensor.rs:314
↓ 1 callers
Method
dump_checkpoint
Dump the dense and embedding checkpoint to destination directory. Arguments: dst_dir (str): destination directory. de
persia/ctx.py:1007
↓ 1 callers
Method
dump_embedding
( &self, dst_dir: PathBuf, embedding_holder: PersiaEmbeddingHolder, )
rust/persia-model-manager/src/lib.rs:286
↓ 1 callers
Method
dump_embedding
Dump embeddings to the destination directory. By default, this function is synchronous and will wait for the completion of embedding l
persia/ctx.py:522
↓ 1 callers
Method
dump_embedding_segment
( &self, dst_dir: PathBuf, signs: Vec<u64>, file_index: usize, num_dum
rust/persia-incremental-update-manager/src/lib.rs:178
↓ 1 callers
Method
dump_internal_shard_embeddings
( &self, internal_shard_idx: usize, dst_dir: PathBuf, embedding_holder: Persia
rust/persia-model-manager/src/lib.rs:242
↓ 1 callers
Method
dump_to_file
( &self, content: &PyBytes, file_dir: String, file_name: String, )
rust/persia-core/src/lib.rs:417
↓ 1 callers
Function
eval_ctx
Get the :class:`EmbeddingCtx` with the :attr:`.EVAL` mode.
persia/ctx.py:1072
↓ 1 callers
Function
expect_uri
(url: url::Url)
rust/others/persia-rpc/src/lib.rs:44
↓ 1 callers
Method
forward_batch_id
( &self, id_type_feature_remote_ref: IDTypeFeatureRemoteRef, )
rust/persia-embedding-server/src/embedding_worker_service/mod.rs:1031
↓ 1 callers
Method
gen_pods
(&self, job_name: &str, namespace: &str)
k8s/src/crd.rs:174
↓ 1 callers
Method
gen_services
(&self, job_name: &str, namespace: &str)
k8s/src/crd.rs:138
↓ 1 callers
Function
gen_spec
()
k8s/src/bin/e2e.rs:50
↓ 1 callers
Method
get
()
rust/persia-incremental-update-manager/src/lib.rs:53
↓ 1 callers
Method
get
()
rust/persia-embedding-server/src/embedding_parameter_service/mod.rs:39
↓ 1 callers
Method
get_batch
(&self, timeout_ms: u64, py: Python)
rust/persia-core/src/forward.rs:860
↓ 1 callers
Method
get_batch_level_state
(&self, signs: &[u64])
rust/persia-common/src/optim.rs:151
↓ 1 callers
Method
get_client_by_index
(&self, client_index: usize)
rust/persia-core/src/rpc.rs:46
↓ 1 callers
Function
get_dataloader_pod_name
(job_name: &str, replica_index: usize)
k8s/src/crd.rs:26
↓ 1 callers
Function
get_default_distributed_option
Get default distributed option. Arguments: device_id (int, optional): CUDA device_id. Apply ``backend="nccl"`` to the ``DDPOption``
persia/distributed.py:413
↓ 1 callers
Function
get_default_incremental_dir
()
rust/persia-embedding-config/src/lib.rs:274
↓ 1 callers
Function
get_default_job_name
()
rust/persia-embedding-config/src/lib.rs:278
↓ 1 callers
Method
get_dtype
(&self)
rust/persia-core/src/cuda/mod.rs:95
↓ 1 callers
Method
get_emb_state
(&self, opt_state: &Option<Vec<f32>>, idx: usize)
rust/persia-common/src/optim.rs:142
↓ 1 callers
Function
get_embedding_dim
()
rust/persia-common/src/optim.rs:338
↓ 1 callers
Method
get_embedding_from_bytes
Get embeddings of the serialized input batch data. Arguments: data (PersiaBatch): serialized input data without embeddings.
persia/ctx.py:637
↓ 1 callers
Function
get_embedding_ps_pod_name
(job_name: &str, replica_index: usize)
k8s/src/crd.rs:14
↓ 1 callers
Method
get_embedding_worker_addr_list
(&self)
rust/persia-core/src/lib.rs:262
↓ 1 callers
Function
get_embedding_worker_pod_name
(job_name: &str, replica_index: usize)
k8s/src/crd.rs:18
↓ 1 callers
Function
get_grads
()
rust/persia-common/src/optim.rs:314
↓ 1 callers
Function
get_index
(key: &K, count: usize)
rust/persia-embedding-holder/src/sharded.rs:11
↓ 1 callers
Function
get_inference_stub
()
examples/src/adult-income/serve_client.py:20
↓ 1 callers
Function
get_init_embedding
()
rust/persia-common/src/optim.rs:331
↓ 1 callers
Method
get_inner
(&self)
rust/persia-core/src/optim.rs:14
↓ 1 callers
Method
get_internam_shard_filename
(&self, internal_shard_idx: usize)
rust/persia-model-manager/src/lib.rs:144
↓ 1 callers
Method
get_job_type
(&self)
rust/persia-embedding-server/src/embedding_parameter_service/mod.rs:145
↓ 1 callers
Function
get_local_ip
get local ip address by specific socket name or request the 8.8.8.8:80 to retrieve the ip address from response.
rust/persia-embedding-config/src/lib.rs:122
↓ 1 callers
Function
get_logger
r"""Get logger by name. Arguments: name (str): logger name.
persia/logger.py:96
↓ 1 callers
Method
get_master_addr
(&self, _placeholder: ())
rust/persia-core/src/nats.rs:42
↓ 1 callers
Function
get_metrics_gateway_pod_name
(job_name: &str)
k8s/src/crd.rs:30
↓ 1 callers
Method
get_raw_embedding
(&mut self)
rust/persia-core/src/forward.rs:81
↓ 1 callers
Method
get_raw_ptr
(&mut self)
rust/persia-core/src/cuda/mod.rs:90
↓ 1 callers
Method
get_receiver
(&self)
rust/persia-core/src/utils.rs:121
↓ 1 callers
Method
get_refresh
(&mut self, key: &K)
rust/persia-embedding-holder/src/eviction_map.rs:48
↓ 1 callers
Method
get_remote_ref_info
(&self)
rust/persia-core/src/data.rs:23
↓ 1 callers
Function
get_replica_index
Get the replica index of current service. The replica index is a unique identifier assigned to each replica. They are assigned following the
persia/env.py:126
↓ 1 callers
Function
get_replica_size
Get the replica size of the current service. Replica size is the number of services launched by docker service or k8s
persia/env.py:118
↓ 1 callers
Method
get_replica_size
(&self)
rust/persia-embedding-server/src/embedding_worker_service/mod.rs:1315
↓ 1 callers
Method
get_sender
(&self)
rust/persia-core/src/utils.rs:115
↓ 1 callers
Method
get_shard_by_index
( &self, index: usize, )
rust/persia-embedding-holder/src/lib.rs:95
↓ 1 callers
Function
get_stride_by_shape
(shape: &[usize])
rust/persia-core/src/tensor.rs:219
↓ 1 callers
Method
get_sum_embedding
(&mut self)
rust/persia-core/src/forward.rs:71
↓ 1 callers
Method
get_type_name
Name of current datatype
rust/persia-core/src/tensor.rs:65
↓ 1 callers
Method
get_type_size
Bit size of current datatype.
rust/persia-core/src/tensor.rs:47
↓ 1 callers
Method
hashmap_key
(&self)
rust/persia-embedding-holder/src/emb_entry.rs:161
↓ 1 callers
Method
inc_dir_scan_thread
(&self)
rust/persia-incremental-update-manager/src/lib.rs:314
↓ 1 callers
Function
indices_to_sharded_indices
( indices: &IDTypeFeatureBatch, config: &EmbeddingConfig, replica_size: u64, )
rust/persia-embedding-server/src/embedding_worker_service/mod.rs:454
↓ 1 callers
Function
infer
(stub, model_name, model_input)
examples/src/adult-income/serve_client.py:26
↓ 1 callers
Method
init_adagrad
( &mut self, lr: f32, wd: f32, g_square_momentum: f32, initialization:
rust/persia-core/src/optim.rs:26
↓ 1 callers
Method
init_adam
(&mut self, lr: f32, betas: (f32, f32), eps: f32)
rust/persia-core/src/optim.rs:51
↓ 1 callers
Method
init_sgd
(&mut self, lr: f32, wd: f32)
rust/persia-core/src/optim.rs:46
↓ 1 callers
Method
init_with_env_file
Check if the current option was initialized with a ddp env file or not Returns: ``True`` if the current option was initialized wi
persia/distributed.py:195
↓ 1 callers
Function
initialize_dataflow
(world_size: usize, channel: &PersiaBatchDataSender)
rust/persia-core/src/nats.rs:410
↓ 1 callers
Method
is_master_server
(&self)
rust/persia-model-manager/src/lib.rs:115
↓ 1 callers
Method
is_master_server
(&self)
rust/persia-embedding-server/src/embedding_worker_service/mod.rs:651
↓ 1 callers
Method
is_raw_embedding
(&self)
rust/persia-core/src/forward.rs:64
↓ 1 callers
Method
load_embedding
Load embeddings from ``src_dir``. By default, this function is synchronous and will wait for the completion of embedding loading befor
persia/ctx.py:539
↓ 1 callers
Method
load_embedding_checkpoint_info
( &self, emb_dir: &PathBuf, )
rust/persia-model-manager/src/lib.rs:187
↓ 1 callers
Method
load_embedding_from_dir
( &self, dir: PathBuf, embedding_holder: PersiaEmbeddingHolder, )
rust/persia-model-manager/src/lib.rs:375
↓ 1 callers
Method
load_embedding_from_file
(&self, file_path: PathBuf)
rust/persia-incremental-update-manager/src/lib.rs:224
↓ 1 callers
Method
load_embedding_via_emb_servers
( &self, req: String, )
rust/persia-embedding-server/src/embedding_worker_service/mod.rs:1166
↓ 1 callers
Method
load_embedding_via_embedding_worker
( &self, req: String, num_model_shards: usize, )
rust/persia-embedding-server/src/embedding_worker_service/mod.rs:1192
↓ 1 callers
Method
load_internal_shard_embeddings
( &self, file_path: PathBuf, embedding_holder: PersiaEmbeddingHolder, )
rust/persia-model-manager/src/lib.rs:260
← previous
next →
201–300 of 720, ranked by callers