MCPcopy Create free account

hub / github.com/evilsocket/cake / functions

Functions2,320 in github.com/evilsocket/cake

↓ 10 callersFunctionmake_vb_attention
Build VarBuilder for CausalSelfAttention. Called as vb.pp("self_attn") by the load fn.
cake-core/tests/unit_tests/helpers.rs:86
↓ 10 callersMethodname
(&self)
cake-core/src/models/sd/sd.rs:91
↓ 10 callersFunctionread_safetensors_tensor_sizes
Read a safetensors header and return per-tensor byte sizes. The safetensors format stores an 8-byte LE header length followed by a JSON object mapping
cake-core/src/cake/sharding/default.rs:189
↓ 10 callersFunctionsave_wav
Save PCM f32 samples as a WAV file (16-bit PCM, mono).
cake-core/src/utils/wav.rs:44
↓ 10 callersMethodsynchronize
(&self)
cake-core/src/backends/metal/mod.rs:1015
↓ 10 callersMethodtimesteps
Get the inference timesteps.
cake-core/src/models/vibevoice/ddpm.rs:80
↓ 10 callersFunctionwrite_fake_safetensors
Build a minimal safetensors file with the given header JSON.
cake-core/src/cake/sharding/default.rs:890
↓ 9 callersMethodall_worker_layers
Return a set of all layer names assigned to workers in this topology.
cake-core/src/cake/sharding/topology.rs:172
↓ 9 callersMethodalloc_output
(&self, count: usize)
cake-core/src/backends/vulkan/mod.rs:519
↓ 9 callersFunctionconnect_and_handshake
Helper: connect to addr, do Hello handshake, return stream + WorkerInfo.
cake-core/tests/protocol.rs:116
↓ 9 callersMethodlaunch
( a: &CudaSlice<T>, l_a: &Layout, b: &CudaSlice<T>, l_b: &Layo
cake-core/src/backends/cuda/ops.rs:197
↓ 9 callersMethodlayer_norm
(&self, x: &Tensor)
cake-core/src/models/luxtts/vocos.rs:96
↓ 9 callersFunctionload_native_dtype_var_builder
Create a VarBuilder that loads tensors in their native stored dtype. F8E4M3 tensors are kept in F8E4M3 on the target device. # Safety Inherits the m
cake-core/src/utils/native_dtype_backend.rs:98
↓ 9 callersFunctionmake_f16_tensor
(size: usize)
cake-core/benches/bench_protocol.rs:5
↓ 9 callersFunctionmake_vb_transformer_block
Build VarBuilder for a full Transformer block (pre-norm + attention + MLP).
cake-core/tests/unit_tests/helpers.rs:148
↓ 9 callersMethodrms_norm_gated
( &self, x: &Tensor, z: &Tensor, weight: &Tensor, eps: f32, )
cake-core/src/backends/cpu/mod.rs:110
↓ 9 callersMethodsigmoid
(&self, x: &Tensor)
cake-core/src/backends/cpu/mod.rs:287
↓ 9 callersFunctiontest_app_text
( )
cake-core/src/cake/sharding/api/test_helpers.rs:329
↓ 9 callersMethodtotal_tflops
Total estimated TFLOPS across all GPUs.
cake-core/src/cake/sharding/discovery.rs:54
↓ 9 callersFunctionvk
()
cake-core/benches/bench_vulkan.rs:11
↓ 8 callersMethodcosine
Return the cached cosine value for the given position and sequence length. When `device` differs from the cache's own device, the result is copied to
cake-core/src/models/common/cache.rs:140
↓ 8 callersFunctiondecode_packet
(data: &[u8])
cake-core/src/cake/sharding/discovery.rs:400
↓ 8 callersMethodencode
( forwarder: &mut Box<dyn Forwarder>, image: Tensor, ctx: &mut Context, )
cake-core/src/models/sd/vae.rs:108
↓ 8 callersMethodforward
Predict EOS probability. Input: (batch, hidden_size) LLM hidden state. Output: (batch, 1) probability (after sigmoid).
cake-core/src/models/vibevoice/eos_classifier.rs:36
↓ 8 callersMethodforward_with_cache
Forward pass with external cache (for VibeVoice TTS).
cake-core/src/models/common/transformer.rs:49
↓ 8 callersMethodinto_config
(self)
cake-core/src/models/phi4/config.rs:63
↓ 8 callersFunctionmake_expert_safetensors
Create a safetensors file with `n` experts, each with gate/up/down projections.
cake-core/benches/bench_flash_moe.rs:16
↓ 8 callersFunctionmake_f16_tensor
(shape: &[usize])
cake-core/tests/protocol.rs:21
↓ 8 callersFunctionmake_test_safetensors
( dir: &std::path::Path, prefix: &str, n: usize, intermediate: usize, hidden: usize, )
cake-core/tests/unit_tests/test_flash_moe.rs:18
↓ 8 callersFunctionmt
(shape: &[usize], seed: u64)
cake-core/src/models/vibevoice/vae_encoder.rs:422
↓ 8 callersFunctionqwen3_5_config
()
cake-core/tests/unit_tests/test_blocks.rs:401
↓ 8 callersMethodread_tensor
(&self, name: &str)
cake-core/src/models/common/disk_expert_provider.rs:703
↓ 8 callersMethodread_tensor
(&self, name: &str)
cake-core/tests/unit_tests/test_expert_provider.rs:118
↓ 8 callersMethodtensor_bytes
(&self, name: &str)
cake-core/src/utils/tensor_storage.rs:585
↓ 8 callersFunctionwrite_temp_topology
(content: &str)
cake-core/tests/unit_tests/test_topology.rs:5
↓ 7 callersMethodadd_rms_norm
( &self, a: &Tensor, b: &Tensor, weight: &Tensor, eps: f32, )
cake-core/src/backends/cpu/mod.rs:121
↓ 7 callersMethodauto_assign_layers
Automatically assign layers to nodes using the provided [`Strategy`]. This is used when a topology file specifies worker addresses but leaves `layers
cake-core/src/cake/sharding/topology.rs:206
↓ 7 callersFunctionbind_mock
Bind a TCP listener on localhost with an OS-assigned port.
cake-core/tests/unit_tests/test_client_worker.rs:39
↓ 7 callersMethodclear
(&mut self)
cake-core/src/models/vibevoice/vae_decoder.rs:57
↓ 7 callersFunctioncpu_backend
()
cake-core/tests/unit_tests/test_mlp.rs:8
↓ 7 callersFunctioncreate_test_safetensors
Create a temporary safetensors file with given tensors. Returns the temp directory (keeps the file alive).
cake-core/tests/unit_tests/test_tensor_storage.rs:11
↓ 7 callersFunctiondecode_wav_mono
Decode WAV bytes and return mono PCM f32 samples at the given target sample rate. Same processing as [`load_wav_mono`] but operates on in-memory byte
cake-core/src/utils/wav.rs:86
↓ 7 callersFunctiondetect_gpus
Detect available compute devices on this system. Only reports NVIDIA GPUs when the `cuda` feature is compiled in, and Metal on macOS when the `metal`
cake-core/src/cake/sharding/discovery.rs:91
↓ 7 callersFunctionestimate_layer_size
Estimate average transformer layer size in bytes from safetensors files. For sharded models, reads each shard's header to compute exact per-tensor by
cake-core/src/cake/sharding/default.rs:225
↓ 7 callersFunctionget_sd_config
(ctx: &Context)
cake-core/src/models/sd/util.rs:88
↓ 7 callersFunctionget_u32
( content: &candle_core::quantized::gguf_file::Content, key: &str, )
cake-core/src/utils/gguf.rs:313
↓ 7 callersFunctionlistener_addr
(l: &TcpListener)
cake-core/tests/unit_tests/test_client_worker.rs:43
↓ 7 callersFunctionload_safetensors_paths_from_index
Load the safetensors files for a model from the hub based on a json index file.
cake-core/src/utils/mod.rs:168
↓ 7 callersFunctionmake_vb_mlp
Build VarBuilder for MLP.
cake-core/tests/unit_tests/helpers.rs:130
↓ 7 callersMethodmask
Get the attention mask for the given sequence length.
cake-core/src/models/common/cache.rs:150
↓ 7 callersMethodmaterialize
(&self, data: crate::utils::tensor_storage::TensorData)
cake-core/src/models/common/disk_expert_provider.rs:417
↓ 7 callersFunctionmt
(shape: &[usize], seed: u64)
cake-core/src/models/vibevoice/vae_decoder.rs:533
↓ 7 callersFunctionname_contains_ci
(name: &str, needle: &str)
cake-core/src/cake/sharding/mod.rs:107
↓ 7 callersMethodrope
(&self, x: &Tensor, cos: &Tensor, sin: &Tensor)
cake-core/src/backends/metal/mod.rs:896
↓ 7 callersFunctionrun_mock_worker
Run one mock-worker session: accept a connection, optionally authenticate, handle Hello, then echo tensors for SingleOp/Batch until the client disconn
cake-core/tests/unit_tests/test_client_worker.rs:50
↓ 7 callersMethodsdpa
(&self, q: &Tensor, k: &Tensor, v: &Tensor, mask: Option<&Tensor>, causal: bool, scale: f32)
cake-core/src/backends/metal/mod.rs:766
↓ 7 callersMethodstep
Run a complete diffusion step, managing solver order automatically. `step_idx`: 0-based index into timesteps `x0_buffer`: mutable buffer of previous
cake-core/src/models/vibevoice/ddpm.rs:166
↓ 7 callersMethodtensor_meta
(&self, name: &str)
cake-core/src/utils/tensor_storage.rs:591
↓ 7 callersFunctiontest_config_gdn
GatedDeltaNet config for Qwen3.5 linear attention benchmarks.
cake-core/benches/bench_helpers.rs:73
↓ 6 callersMethodadaln_modulate
( &self, x: &Tensor, norm_weight: &Tensor, scale: &Tensor, shift: &Ten
cake-core/src/backends/cpu/mod.rs:274
↓ 6 callersMethodadd3
(&self, a: &Tensor, b: &Tensor, c: &Tensor)
cake-core/src/backends/cpu/mod.rs:252
↓ 6 callersFunctioncheck_model_dir
Check a single directory and return its model status, or None if it's not a model dir.
cake-core/src/utils/models.rs:155
↓ 6 callersFunctioncompute_hmac
Compute HMAC-SHA256(key, data).
cake-core/src/cake/sharding/auth.rs:26
↓ 6 callersFunctioncpu_backend
()
cake-core/tests/unit_tests/test_transformer_standalone.rs:12
↓ 6 callersFunctioncpu_backend
()
cake-core/tests/unit_tests/test_transformer.rs:9
↓ 6 callersMethoddepthwise_conv1d_bias
( &self, padded_input: &Tensor, weight: &Tensor, bias: &Tensor, kernel
cake-core/src/backends/cpu/mod.rs:183
↓ 6 callersMethoddepthwise_conv1d_bias_ctx
( &self, ctx: &Tensor, input: &Tensor, weight: &Tensor, bias: &Tensor,
cake-core/src/backends/cpu/mod.rs:238
↓ 6 callersMethoddepthwise_conv1d_silu
( &self, window: &Tensor, weight: &Tensor, _kernel_size: usize, _chann
cake-core/src/backends/cpu/mod.rs:170
↓ 6 callersFunctiondetect_quantization
Detect quantization strategy from a model's config.json.
cake-core/src/utils/mod.rs:128
↓ 6 callersFunctionensure_model_downloaded
Downloads all required model files from HuggingFace Hub. Returns the local directory path containing the downloaded files. Checks local cache first —
cake-core/src/utils/hf.rs:111
↓ 6 callersMethodforward_mut
( &mut self, x: &Tensor, index_pos: usize, block_idx: usize, ctx: &mut
cake-core/src/models/sd/vae.rs:72
↓ 6 callersFunctiongemma3_config
()
cake-core/tests/unit_tests/test_blocks.rs:169
↓ 6 callersMethodgroup_norm
Group normalization: `(x - mean) / sqrt(var + eps) * weight + bias` per group. Matches candle_nn::GroupNorm::forward() — F32 promotion for F16/BF16. I
cake-core/src/backends/mod.rs:331
↓ 6 callersFunctionload_var_builder_from_index
Create a VarBuilder with the tensors loaded from the index.
cake-core/src/utils/mod.rs:251
↓ 6 callersFunctionmel_spectrogram
( samples: &[f32], n_fft: usize, hop_length: usize, n_mels: usize, sample_rate: usize,
cake-core/src/models/luxtts/mel.rs:13
↓ 6 callersFunctionmodulate
Adaptive LayerNorm: norm(x) * (1 + scale) + shift LayerNorm computes in F32, then casts back. Scale/shift arithmetic in input dtype (BF16).
cake-core/src/models/flux/flux2_model.rs:418
↓ 6 callersMethodprocess_kv_windowed
Like `process_kv` but caps the KV cache to `window` tokens (sliding window attention).
cake-core/src/models/common/cache.rs:173
↓ 6 callersFunctionsoftmax_last_dim
(bencher: divan::Bencher, size: usize)
cake-core/benches/bench_utils.rs:38
↓ 6 callersMethodstable_softplus
(&self, x: &Tensor)
cake-core/src/backends/cpu/mod.rs:91
↓ 6 callersFunctionswoosh_r
SwooshR(x) = log(1 + exp(x - 1)) - 0.08*x - 0.313261687 Matches Python's SwooshRForward with offset=1.
cake-core/src/models/luxtts/activations.rs:9
↓ 6 callersMethodtopk
Top-K selection: returns `(values, indices)` for the largest K elements along the last dimension. Uses partial sort O(N + K log K) for large N.
cake-core/src/backends/mod.rs:557
↓ 6 callersFunctionwrite_safetensors
Helper: write tensors to a temp .safetensors file, return path.
cake-core/src/utils/native_dtype_backend.rs:128
↓ 6 callersMethodwrite_u32
Write u32 data into the buffer.
cake-core/src/backends/vulkan/mod.rs:63
↓ 5 callersMethodattention
( &self, q: &Tensor, k: &Tensor, v: &Tensor, scale: f32, causa
cake-core/src/backends/cpu/mod.rs:44
↓ 5 callersFunctionauthenticate_as_master
Master side of the mutual authentication. Called on the TCP stream immediately after connection, before any Cake protocol messages.
cake-core/src/cake/sharding/auth.rs:54
↓ 5 callersMethodcache_activation
Cache a dispatch output buffer by the returned Tensor's TensorId. If the next dispatch consumes this tensor, `get_or_upload` will find the buffer here
cake-core/src/backends/vulkan/mod.rs:552
↓ 5 callersMethodclear
Clear the cache.
cake-core/src/models/common/cache.rs:248
↓ 5 callersFunctioncpu_backend
()
cake-core/tests/unit_tests/test_moe.rs:9
↓ 5 callersFunctiondetect_hostname
Detect the system hostname.
cake-core/src/cake/sharding/discovery.rs:165
↓ 5 callersFunctionfind_cached_model
Check the HuggingFace cache for an already-downloaded complete model. Returns the snapshot directory path if found with all shards present.
cake-core/src/utils/hf.rs:22
↓ 5 callersMethodforward
(&self, x: &Tensor)
cake-core/src/models/vibevoice/vae_decoder.rs:139
↓ 5 callersMethodforward
(&self, x: &Tensor)
cake-core/src/models/qwen3_5_moe/moe.rs:133
↓ 5 callersMethodforward_lm
Forward through LM layers with cache. Sets the cache in fwd_ctx before each call. Local layers use it for KV caching; remote layers (Client) ignore it
cake-core/src/models/vibevoice/vibevoice_1_5b.rs:291
↓ 5 callersMethodgate
(&self, xs: &Tensor)
cake-core/src/models/flux/flux1_model.rs:470
↓ 5 callersMethodget
( &self, s: Shape, name: &str, _h: Init, dtype: DType, dev: &D
cake-core/src/utils/gguf.rs:194
↓ 5 callersMethodhas_tensor
(&self, name: &str)
cake-core/src/models/common/disk_expert_provider.rs:710
↓ 5 callersFunctionload_var_builder_for_specific_layers
Create a VarBuilder that only loads safetensors shards containing tensors for the given layer prefixes. Workers use this to skip shards that only cont
cake-core/src/utils/mod.rs:333
↓ 5 callersFunctionmake_tensor
(shape: &[usize], seed: u64)
cake-core/src/models/vibevoice/acoustic_connector.rs:49
↓ 5 callersFunctionmake_tensor
(shape: &[usize], seed: u64)
cake-core/src/models/vibevoice/eos_classifier.rs:60
↓ 5 callersFunctionmake_vb
()
cake-core/src/models/qwen3_5_moe/moe.rs:429
← previousnext →101–200 of 2,320, ranked by callers