MCPcopy Create free account

hub / github.com/evilsocket/cake / functions

Functions2,320 in github.com/evilsocket/cake

↓ 3 callersMethodread_bytes
(&self, offset: u64, size: usize)
cake-core/src/utils/tensor_storage.rs:208
↓ 3 callersMethodread_expert_weight
Read an expert weight, handling GPTQ dequantization if needed.
cake-core/src/models/common/disk_expert_provider.rs:381
↓ 3 callersMethodread_tensor
(&self, name: &str)
cake-core/src/utils/tensor_storage.rs:471
↓ 3 callersFunctionreduce_for_worker
( index: &Index, worker: &Node, )
cake-core/src/utils/split.rs:88
↓ 3 callersFunctionsample_json
()
cake-core/src/models/exaone4/config.rs:120
↓ 3 callersFunctionsdpa
(bencher: divan::Bencher, seq_len: usize)
cake-core/benches/bench_backend_ops.rs:167
↓ 3 callersMethodsetString
cake-mobile-app/shared/src/commonMain/kotlin/com/evilsocket/cake/Settings.kt:5
↓ 3 callersMethodset_conv_state
Set the conv state for a linear attention layer.
cake-core/src/models/common/cache.rs:236
↓ 3 callersMethodset_kv
Directly set the KV cache for a layer (used for voice prompt injection).
cake-core/src/models/common/cache.rs:213
↓ 3 callersMethodset_recurrent_state
Set the recurrent state for a linear attention layer.
cake-core/src/models/common/cache.rs:226
↓ 3 callersFunctionsigmoid
(bencher: divan::Bencher, size: usize)
cake-core/benches/bench_backend_ops.rs:93
↓ 3 callersMethodsine
Return the cached sine value for the given position and sequence length.
cake-core/src/models/common/cache.rs:145
↓ 3 callersFunctionswoosh_l
SwooshL(x) = log(1 + exp(x - 4)) - 0.08*x - 0.035 Matches Python's SwooshLForward with offset=4.
cake-core/src/models/luxtts/activations.rs:20
↓ 3 callersMethodtensor_matmul
(&self, a: &Tensor, b: &Tensor)
cake-core/src/backends/rocm/mod.rs:282
↓ 3 callersMethodtensor_matmul
(&self, a: &Tensor, b: &Tensor)
cake-core/src/backends/vulkan/mod.rs:986
↓ 3 callersFunctiontest_app_audio
( )
cake-core/src/cake/sharding/api/test_helpers.rs:370
↓ 3 callersFunctiontest_app_none
( )
cake-core/src/cake/sharding/api/test_helpers.rs:444
↓ 3 callersMethodto_info
Create a WorkerInfo structure to be sent to the master.
cake-core/src/cake/sharding/worker.rs:47
↓ 3 callersMethodto_wav_bytes
Encode as WAV bytes (16-bit PCM).
cake-core/src/models/mod.rs:152
↓ 3 callersMethodtokenize
Convert text to a sequence of token IDs.
cake-core/src/models/luxtts/tokenizer.rs:94
↓ 3 callersFunctionu8_to_dtype
Map a u8 wire tag back to a candle DType.
cake-core/src/cake/sharding/proto/message.rs:24
↓ 3 callersMethodunet_file
(&self, use_f16: bool)
cake-core/src/lib.rs:457
↓ 3 callersFunctionwrap_text
( lines: &mut Vec<Line<'static>>, text: &str, prefix: &str, style: Style, wrap_width: usiz
cake-cli/src/chat.rs:247
↓ 3 callersMethodwrite_f32
Write f32 data into the buffer via mapped pointer.
cake-core/src/backends/vulkan/mod.rs:44
↓ 2 callersFunctionCakeTheme
cake-mobile-app/shared/src/commonMain/kotlin/com/evilsocket/cake/ui/Theme.kt:37
↓ 2 callersFunctionWorkerScreen
cake-mobile-app/shared/src/commonMain/kotlin/com/evilsocket/cake/ui/WorkerScreen.kt:38
↓ 2 callersMethodapply_partial_rotary_emb
Apply partial RoPE: rotate only the first rotary_dim dimensions.
cake-core/src/models/qwen3_5/full_attention.rs:95
↓ 2 callersFunctionapply_rope
Apply rotary embeddings matching diffusers apply_rotary_emb exactly. x: [B, H, S, D], cos/sin: [S, D]
cake-core/src/models/flux/flux2_model.rs:90
↓ 2 callersMethodapply_rotary_emb
( &self, x: &Tensor, index_pos: usize, cache: &super::Cache, )
cake-core/src/models/common/attention.rs:50
↓ 2 callersFunctionarch_str_to_text_model_arch
Map a config.json `architectures` string to our `TextModelArch` enum. Feature-gated variants are only matched when the corresponding feature is enable
cake-core/src/cake/mod.rs:82
↓ 2 callersMethodas_any
(&self)
cake-core/src/models/common/expert_provider.rs:102
↓ 2 callersMethodas_gpu_info
Build a synthetic [`discovery::GpuInfo`] list from this node's VRAM/TFLOPS. Used when a topology file specifies nodes without layer assignments, so t
cake-core/src/cake/sharding/topology.rs:60
↓ 2 callersFunctionattention
(q: &Tensor, k: &Tensor, v: &Tensor, pe_cos: &Tensor, pe_sin: &Tensor, backend: &dyn ComputeBackend)
cake-core/src/models/flux/flux2_model.rs:127
↓ 2 callersFunctioncake_free_string
(s: *mut c_char)
cake-mobile/src/lib.rs:543
↓ 2 callersMethodcausal_conv1d_step
Apply causal depthwise conv1d + SiLU on a single new token, updating conv_state in-place. x: (batch, 1, channels), conv_state: (batch, channels, kerne
cake-core/src/models/qwen3_5/linear_attention.rs:189
↓ 2 callersFunctioncheck_ui_auth
Check basic auth if `--ui-auth` is configured. Returns true if OK.
cake-core/src/cake/sharding/api/ui.rs:338
↓ 2 callersMethodclear
(&mut self)
cake-core/src/models/llama3/llama.rs:36
↓ 2 callersMethodclear
(&mut self)
cake-core/src/models/gemma3/history.rs:36
↓ 2 callersFunctioncompute_stft
Compute STFT magnitude squared, returned as flat Vec [n_frames * n_freq].
cake-core/src/models/luxtts/mel.rs:52
↓ 2 callersFunctiondefault_guidance_scale
Return the default guidance scale for a given SD version.
cake-core/src/models/sd/sd.rs:670
↓ 2 callersFunctiondefault_n_steps
Return the default number of sampling steps for a given SD version.
cake-core/src/models/sd/sd.rs:680
↓ 2 callersFunctiondequantize_packed_4bit
Dequantize a packed 4-bit weight tensor with per-group scales and biases. Used for embeddings in some GPTQ models where the format is: - `weight`: ui
cake-core/src/utils/gptq.rs:151
↓ 2 callersFunctiondetect_apple_chip
called only with feature = "metal"
cake-core/src/cake/sharding/discovery.rs:263
↓ 2 callersFunctiondetect_backend
Detect the compute backend description for this node.
cake-core/src/cake/sharding/discovery.rs:195
↓ 2 callersFunctiondetect_cuda_version
Detect the CUDA toolkit version by reading version files from the CUDA install directory. Checks `$CUDA_HOME`, `$CUDA_PATH`, and `/usr/local/cuda` fo
cake-core/src/cake/sharding/discovery.rs:217
↓ 2 callersFunctiondetect_system_memory
Detect total system memory in bytes.
cake-core/src/cake/sharding/discovery.rs:319
↓ 2 callersFunctiondetect_text_model_arch
Auto-detect text model architecture from config.json's "architectures" field.
cake-core/src/models/common/config.rs:176
↓ 2 callersFunctiondevice_type_str
Return a human-readable device type string for a candle Device.
cake-core/src/cake/sharding/worker.rs:23
↓ 2 callersFunctiondispatch_binary
( s1: &candle_core::MetalStorage, l1: &Layout, s2: &candle_core::MetalStorage, l2: &Layout, f32_ke
cake-core/src/backends/metal/mod.rs:100
↓ 2 callersMethoddispatch_binary_vec4
(&self, a: &Tensor, b: &Tensor, entry: &str)
cake-core/src/backends/vulkan/mod.rs:803
↓ 2 callersFunctiondispatch_ternary
( s1: &candle_core::MetalStorage, l1: &Layout, s2: &candle_core::MetalStorage, l2: &Layout, s3: &c
cake-core/src/backends/metal/mod.rs:134
↓ 2 callersMethoddispatch_ternary_vec4
( &self, a: &Tensor, b: &Tensor, c: &Tensor, entry: &str, )
cake-core/src/backends/vulkan/mod.rs:827
↓ 2 callersFunctiondispatch_unary_cast
( s: &candle_core::MetalStorage, l: &Layout, kernel_name: &'static str, out_dtype: DType, label: &'sta
cake-core/src/backends/metal/mod.rs:589
↓ 2 callersMethoddownload_on_stream
Async download using pinned host memory for faster DMA, then sync.
cake-core/src/backends/rocm/mod.rs:68
↓ 2 callersMethodencode_dialog_to_prompt
Encode the dialog to llama3 prompt format.
cake-core/src/models/llama3/history.rs:28
↓ 2 callersFunctionencode_wav_bytes
(bencher: divan::Bencher, num_samples: usize)
cake-core/benches/bench_wav.rs:10
↓ 2 callersFunctionestimate_tflops_for_gpus
Estimate TFLOPS from a list of GPUs. Falls back to a VRAM-based heuristic when workers report 0 (old binaries).
cake-core/src/cake/sharding/mod.rs:102
↓ 2 callersMethodfiles
Resolve the file path, downloading from HuggingFace if needed. Returns the list of files to download for this component.
cake-core/src/models/flux/config.rs:20
↓ 2 callersFunctionfind_model
Find a model by name. Supports exact match (`org/model`) or suffix match (`model`). Returns `Err` if the suffix match is ambiguous (multiple models ma
cake-core/src/utils/models.rs:99
↓ 2 callersMethodfirst_order_update
First-order DPM-Solver++ update (from timestep s to t, s > t). x_t = (sigma_t/sigma_s) * x - alpha_t * expm1(-h) * x0
cake-core/src/models/vibevoice/ddpm.rs:100
↓ 2 callersMethodforward
( &self, x: &Tensor, _index_pos: usize, _block_idx: usize, _ctx: &mut
cake-core/src/models/flux/transformer.rs:36
↓ 2 callersMethodforward
(&self, x: &Tensor)
cake-core/src/models/luxtts/bias_norm.rs:27
↓ 2 callersMethodforward_pub
Public forward for testing.
cake-core/src/models/flux/flux2_vae.rs:58
↓ 2 callersMethodforward_request
(&mut self, req: Message)
cake-core/src/cake/sharding/client.rs:79
↓ 2 callersMethodforward_with_silu_cond
Forward with pre-computed silu(cond).
cake-core/src/models/vibevoice/prediction_head.rs:110
↓ 2 callersFunctionfp8_linear
Create an Fp8Linear from a VarBuilder (no bias).
cake-core/src/utils/fp8.rs:247
↓ 2 callersFunctionfp8_linear_b
Create an Fp8Linear from a VarBuilder (with bias).
cake-core/src/utils/fp8.rs:266
↓ 2 callersMethodgenerate
Generate audio from text with a voice prompt.
cake-core/src/models/vibevoice/vibevoice.rs:230
↓ 2 callersMethodgenerate_image
( &mut self, _args: &ImageGenerationArgs, mut callback: F, )
cake-core/src/cake/sharding/api/test_helpers.rs:177
↓ 2 callersMethodgenerated_tokens
(&self)
cake-core/src/cake/sharding/api/test_helpers.rs:130
↓ 2 callersMethodget_all
Get all downloaded file paths for this component.
cake-core/src/models/flux/config.rs:57
↓ 2 callersFunctionget_cache_dir
()
cake-mobile/src/lib.rs:95
↓ 2 callersMethodget_client_context
Create a copy of self with new kv-cache.
cake-core/src/cake/sharding/worker.rs:60
↓ 2 callersFunctionget_device
(cpu: bool)
cake-core/src/models/sd/util.rs:66
↓ 2 callersMethodget_expert
(&self, idx: usize)
cake-core/src/models/common/disk_expert_provider.rs:447
↓ 2 callersMethodget_expert_uncached
Internal: load expert weights without cache lookup.
cake-core/src/models/common/disk_expert_provider.rs:528
↓ 2 callersFunctionget_f32
( content: &candle_core::quantized::gguf_file::Content, key: &str, )
cake-core/src/utils/gguf.rs:326
↓ 2 callersMethodget_or_upload
(&self, tensor: &Tensor)
cake-core/src/backends/rocm/mod.rs:249
↓ 2 callersFunctionget_str
( content: &candle_core::quantized::gguf_file::Content, key: &str, )
cake-core/src/utils/gguf.rs:302
↓ 2 callersMethodget_weight
(&self)
cake-core/src/utils/fp8.rs:204
↓ 2 callersMethodgoodbye
(&mut self)
cake-core/src/cake/sharding/api/test_helpers.rs:108
↓ 2 callersMethodgptq_group_size
(&self)
cake-core/src/utils/mod.rs:112
↓ 2 callersFunctionhann_window
Generate a Hann window of the given size.
cake-core/src/models/luxtts/mel.rs:95
↓ 2 callersFunctionhf_cache_dir
Return the HuggingFace hub cache directory if it exists.
cake-core/src/utils/hf.rs:86
↓ 2 callersFunctionhuman_bytes
(bytes: u64)
cake-cli/src/chat.rs:170
↓ 2 callersMethodident
(&self)
cake-core/src/models/flux/flux1.rs:98
↓ 2 callersFunctionimage_preprocess
(path: T)
cake-core/src/models/sd/sd.rs:699
↓ 2 callersMethodinto_config
(self)
cake-core/src/models/qwen3_moe/config.rs:67
↓ 2 callersMethodinto_config
(self)
cake-core/src/models/falcon3/config.rs:53
↓ 2 callersMethodinto_config
(self)
cake-core/src/models/olmo2/config.rs:53
↓ 2 callersMethodinto_config
(self)
cake-core/src/models/qwen3_5_moe/config.rs:88
↓ 2 callersMethodinto_tensor
Consume self and create a Tensor, avoiding a copy on CPU by reusing the data buffer.
cake-core/src/cake/sharding/proto/message.rs:132
↓ 2 callersMethodis_text_model_layer_owner
Return true if this node hosts the specified layer.
cake-core/src/cake/sharding/topology.rs:43
↓ 2 callersFunctionlayer_norm
(bencher: divan::Bencher, hidden: usize)
cake-core/benches/bench_backend_ops.rs:184
↓ 2 callersFunctionlayer_prefix_for_config
Derive the layer name prefix from config.json. Returns e.g. "model.language_model.layers" for Qwen3.5, "model.layers" otherwise.
cake-core/src/cake/sharding/default.rs:175
↓ 2 callersFunctionload_attn_and_cache
(cfg: &Config)
cake-core/benches/bench_attention.rs:12
↓ 2 callersFunctionload_safetensors_from_model
(path: &Path)
cake-core/src/utils/mod.rs:161
↓ 2 callersMethodload_tensor
( &self, name: &str, _dtype: DType, dev: &Device, )
cake-core/src/utils/native_dtype_backend.rs:19
↓ 2 callersMethodload_tensor
( &self, name: &str, dtype: DType, dev: &Device, )
cake-core/src/utils/gptq.rs:212
↓ 2 callersMethodload_tensor
( &self, name: &str, dtype: DType, dev: &Device, )
cake-core/src/utils/fp8.rs:101
← previousnext →301–400 of 2,320, ranked by callers