MCPcopy Create free account

hub / github.com/brontoguana/krasis / functions

Functions12,380 in github.com/brontoguana/krasis

↓ 6 callersFunctionnuma_is_available
Check if libnuma is available and functional.
src/numa.rs:122
↓ 6 callersFunctionoperator*
src/cuda/flash_attn/cutlass/cutlass/half.h:802
↓ 6 callersFunctionoperator+
src/cuda/flash_attn/cutlass/cutlass/half.h:775
↓ 6 callersFunctionoperator-
src/cuda/flash_attn/cutlass/cutlass/half.h:784
↓ 6 callersFunctionoperator/
src/cuda/flash_attn/cutlass/cutlass/half.h:811
↓ 6 callersFunctionparse_config
Parse a Krasis .conf file into a dict.
tests/reference_test.py:91
↓ 6 callersFunctionparse_ssh_tunnel_target
Parse user@host or user@host:port into an SSH destination and port.
python/krasis/ssh_tunnel.py:22
↓ 6 callersFunctionpartition_accumulator_shape
Construct A Single Stage's Accumulator Shape
src/cuda/flash_attn/cutlass/cutlass/gemm/collective/sm100_mma_array_warpspecialized.hpp:458
↓ 6 callersMethodpostreduce
After reduce call, before smem async fence. Smem stores usually performed here. Upon exit, all smem stores for TMA must have been issued
src/cuda/flash_attn/cutlass/cutlass/epilogue/fusion/sm90_visitor_tma_warpspecialized.hpp:242
↓ 6 callersMethodprefetch_tma_descriptors
Issue Tma Descriptor Prefetch -- ideally from a single thread for best performance
src/cuda/flash_attn/cutlass/cutlass/gemm/collective/sm100_mma_warpspecialized.hpp:443
↓ 6 callersMethodprevisit
Before visit callback. Smem broadcasts usually performed here. Upon entry, all producer loads for this subtile are completed and visible.
src/cuda/flash_attn/cutlass/cutlass/epilogue/fusion/sm90_visitor_tma_warpspecialized.hpp:206
↓ 6 callersFunctionprint
src/cuda/flash_attn/cutlass/cute/tensor_impl.hpp:1112
↓ 6 callersFunctionprint_mem
(label)
tests/archive/test_qwen235b_bench.py:40
↓ 6 callersFunctionraw
Accesses raw internal state
src/cuda/flash_attn/cutlass/cutlass/exmy_base.h:1058
↓ 6 callersMethodrelease_allocation_lock
src/cuda/flash_attn/cutlass/cute/arch/tmem_allocator_sm100.hpp:103
↓ 6 callersFunctionrender_and_show
Render messages with the chat template and show the result.
tests/repro_template.py:20
↓ 6 callersFunctionrequire_complete_hqq_sidecar_manifest
Validate an explicit HQQ sidecar manifest without treating it as a cache manifest.
python/krasis/attention_backend.py:872
↓ 6 callersMethodrequires_separate_reduction
src/cuda/flash_attn/cutlass/cutlass/gemm/kernel/sm100_tile_scheduler.hpp:647
↓ 6 callersFunctionselect_hqq_auto_promotions
Select HQQ promotions by budgeted normalized-error reduction. Uses a bounded-resolution 0/1 knapsack. The unit size is derived from the reque
python/krasis/attention_backend.py:656
↓ 6 callersMethodserver_cleanup
Free server request state (KV cache pages, etc.). Also handles single-slot AWQ: restore Marlin data into GPU slots for instant prefil
python/krasis/model.py:8873
↓ 6 callersFunctionsidecar_inputs
(nvcc: str)
scripts/build_sidecars.py:159
↓ 6 callersMethodstore_with_pointer_offset
Stores a fragment
src/cuda/flash_attn/cutlass/cutlass/transform/threadblock/regular_tile_iterator_pitch_linear_2dthreadtile.h:189
↓ 6 callersMethodthrfrg_A
src/cuda/flash_attn/cutlass/cute/atom/mma_atom.hpp:289
↓ 6 callersMethodthrfrg_B
src/cuda/flash_attn/cutlass/cute/atom/mma_atom.hpp:328
↓ 6 callersMethodtma_store
After smem async fence, before TMA store commit. Aux stores usually performed here Upon exit, all TMA stores for this subtile must have been issued Be
src/cuda/flash_attn/cutlass/cutlass/epilogue/fusion/sm90_visitor_tma_warpspecialized.hpp:255
↓ 6 callersFunctionto_underlying_arguments
src/cuda/flash_attn/cutlass/cutlass/conv/collective/sm100_implicit_gemm_umma_warpspecialized.hpp:379
↓ 6 callersMethodtotal_mb
Get the total VRAM on a device (in MB).
src/vram_monitor.rs:698
↓ 6 callersFunctionunzip_tensor
src/cuda/flash_attn/cutlass/cute/tensor_zip.hpp:166
↓ 6 callersFunctionvalidate_hqq_nbits
(nbits: int)
python/krasis/attention_backend.py:281
↓ 5 callersFunctionSmId
Computes SM number the thread is running on
src/cuda/flash_attn/cutlass/cutlass/arch/arch.h:58
↓ 5 callersFunction_chat_prompt_tokens
( model: KrasisModel, prompt_text: str, enable_thinking: Optional[bool] = None, )
python/krasis/server.py:670
↓ 5 callersMethod_compute_budget
Compute VRAM/RAM budget from current config.
python/krasis/launcher.py:1454
↓ 5 callersFunction_counter_entries
( counts: collections.Counter[str], )
tests/trace_diff.py:776
↓ 5 callersFunction_csv_set
(raw: str)
tests/trace_diff.py:145
↓ 5 callersFunction_cuda_version_string
(version: Tuple[int, int])
python/krasis/setup.py:124
↓ 5 callersMethod_dense_mlp_forward
Dense MLP: gate_proj + up_proj → SiLU(gate) * up → down_proj.
python/krasis/layer.py:591
↓ 5 callersFunction_emit_real_model_timing
(payload: dict)
python/krasis/weight_loader.py:25
↓ 5 callersFunction_entry_logprob
(entry: Dict[str, Any])
tests/reference_test.py:618
↓ 5 callersFunction_env_flag
(name: str)
python/krasis/server.py:168
↓ 5 callersFunction_family_member_brief
(event: Dict[str, Any])
tests/trace_diff.py:764
↓ 5 callersFunction_format_attention_quant_value
(attention_quant: str, hqq_auto_budget_pct: Optional[float] = None)
python/krasis/launcher.py:947
↓ 5 callersMethod_forward_recurrent
Recurrent decode: process tokens using recurrent formulation. Matches HF torch_recurrent_gated_delta_rule exactly.
python/krasis/linear_attention.py:492
↓ 5 callersMethod_gated_rmsnorm
Gated RMSNorm: rmsnorm(x) * silu(gate). Matches HF Qwen3NextRMSNormGated: norm first, then multiply by silu(gate).
python/krasis/linear_attention.py:984
↓ 5 callersFunction_get_shape
(tensor_name)
python/krasis/config.py:148
↓ 5 callersFunction_hqq_cache_manifest_and_layer_bytes
( model_path: str, cache_profile: str, nbits: int, group_size: int, )
python/krasis/vram_budget.py:357
↓ 5 callersFunction_int8_exception_budget_bytes
( *, source_hqq_bytes: int, max_sidecar_ratio: Optional[float], max_sidecar_bytes: Optional[in
python/krasis/hqq_self_calibrate.py:1954
↓ 5 callersFunction_int8_exception_candidate_cost
(candidate: Dict[str, Any])
python/krasis/hqq_self_calibrate.py:1873
↓ 5 callersFunction_is_mla
(cfg: Dict[str, Any])
python/krasis/vram_budget.py:115
↓ 5 callersMethod_load_prompt_file
Load a prompt file bundled with the package.
python/krasis/benchmark.py:265
↓ 5 callersMethod_maybe_apply_delta_rms_bias
Apply +1 only to norm roles that use the delta-RMS contract.
python/krasis/weight_loader.py:264
↓ 5 callersFunction_metric_row
(label: str, values: List[float], fmt: str = "{:.0f}%", scale: float = 100, raw_strs: Opti
tests/reference_test.py:1567
↓ 5 callersFunction_normalize_selected_gpus
(raw: Optional[str], source: str)
python/krasis/server.py:33
↓ 5 callersFunction_packet_structure_equal
(expected_packet: Dict[str, Any], actual_packet: Dict[str, Any])
tests/trace_diff.py:1070
↓ 5 callersFunction_python_trace
(component: str, message: str)
python/krasis/model.py:120
↓ 5 callersFunction_python_trace_enabled
(component: str)
python/krasis/model.py:106
↓ 5 callersFunction_quantize_hqq4_group_current
(chunk: torch.Tensor, qmax: float)
python/krasis/attention_backend.py:1361
↓ 5 callersFunction_record_hqq_worst_groups
( stats: dict, group_mean_abs: torch.Tensor, group_rmse: torch.Tensor, abs_diff: torch.Tensor,
python/krasis/attention_backend.py:515
↓ 5 callersMethod_release_qwen_vision_gpu
(self, vision, device, label: str = "after-qwen-vision-release")
python/krasis/model.py:949
↓ 5 callersMethod_resolve_selected_gpus
Resolve selected GPU indices to GPU dicts from hardware info.
python/krasis/launcher.py:1335
↓ 5 callersMethod_shared_fp32_vec
(self, tag: str, size: int)
tests/decode_harness.py:248
↓ 5 callersFunction_sidecar_entry_filter_to_list
(entries: Optional[set[Tuple[int, str, int, int]]])
python/krasis/hqq_self_calibrate.py:3187
↓ 5 callersFunction_solve_hqq4_fixed_zero
( chunk: torch.Tensor, qmax: float, zero: torch.Tensor, scale_seed: torch.Tensor, iters: i
python/krasis/attention_backend.py:1458
↓ 5 callersMethod_update_la_state_ptrs
Re-register LA state pointers after prefill (states may have been reallocated). Prefill may reassign _conv_state and _recurrent_state tensors,
python/krasis/model.py:8637
↓ 5 callersFunctionadd_pointer_offset
src/cuda/flash_attn/cutlass/cutlass/subbyte_reference.h:1327
↓ 5 callersMethodadd_pointer_offset
Adds a pointer offset in units of Element
src/cuda/flash_attn/cutlass/cutlass/transform/threadblock/regular_tile_iterator_tensor_op_sm70.h:477
↓ 5 callersMethodadd_pointer_offset
Adds a pointer offset in units of Element
src/cuda/flash_attn/cutlass/cutlass/transform/threadblock/predicated_tile_access_iterator.h:988
↓ 5 callersMethodadd_tile_offset
Adds a tile offset
src/cuda/flash_attn/cutlass/cutlass/transform/threadblock/regular_tile_iterator_tensor_op_sm70.h:483
↓ 5 callersMethodadd_tile_offset
Advances an iterator along logical dimensions of matrix in units of whole tiles
src/cuda/flash_attn/cutlass/cutlass/transform/threadblock/predicated_tile_access_iterator.h:995
↓ 5 callersMethodadvance
Record that num_tokens were appended to the cache.
python/krasis/kv_cache.py:445
↓ 5 callersFunctionappend
src/cuda/flash_attn/cutlass/cute/algorithm/tuple_algorithms.hpp:779
↓ 5 callersFunctionbuild_trace_input_row_map
Case mapping for trace-gated layer-0 input-row captures.
tests/reference_test.py:384
↓ 5 callersFunctioncache_dir_for_model
Resolve the cache directory for a model: `~/.krasis/cache/<model_folder_name>/`. Falls back to `<model_dir>/.krasis_cache/` if HOME is not set.
src/weights/mod.rs:1226
↓ 5 callersFunctionceil_div
src/cuda/flash_attn/cutlass/cute/numeric/arithmetic_tuple.hpp:373
↓ 5 callersMethodclear
< Efficiently disables all accesses guarded by mask
src/cuda/flash_attn/cutlass/cutlass/epilogue/threadblock/predicated_tile_iterator.h:171
↓ 5 callersFunctioncongruent
src/cuda/flash_attn/cutlass/cute/int_tuple.hpp:439
↓ 5 callersFunctioncontinue_current_work
Returns whether the current work_tile_info passed in should continue to be used. This occurs only in the stream-K decomposition with stream-K work uni
src/cuda/flash_attn/cutlass/cutlass/gemm/kernel/sm90_tile_scheduler_stream_k.hpp:298
↓ 5 callersFunctioncpu_expert_byte_sizes_mixed_gated
(h: usize, m: usize, group_size: usize, w13_bits: u8, w2_bits: u8, gated: bool)
src/weights/mod.rs:1636
↓ 5 callersFunctiondetect_expert_sublayer
Detect expert sublayer: "mlp" (standard) or "mixer" (Nemotron).
src/weights/mod.rs:6091
↓ 5 callersFunctiondetect_prequant_group_size
Detect the native group_size from a pre-quantized model's weight_scale dimensions.
src/weights/mod.rs:6448
↓ 5 callersFunctiondetect_shared_expert_name
Detect shared expert naming: "shared_experts" (DeepSeek) vs "shared_expert" (QCN). Returns the substring to use in weight name construction.
src/weights/mod.rs:6125
↓ 5 callersFunctionexpert_offset
Byte offset of expert data in the mmap'd file.
tools/expert_dedup_analysis.py:61
↓ 5 callersFunctionexponent_biased
Returns the biased exponent
src/cuda/flash_attn/cutlass/cutlass/exmy_base.h:1070
↓ 5 callersFunctionfast_sigmoid
(x: f32)
src/moe.rs:1364
↓ 5 callersFunctionfixup
src/cuda/flash_attn/cutlass/cutlass/gemm/kernel/sm90_tile_scheduler_stream_k.hpp:403
↓ 5 callersFunctionformat_bytes
(num_bytes: int)
python/krasis/hf_downloader.py:449
↓ 5 callersFunctionfused_add_rmsnorm_avx2
( hidden: &mut [f32], residual: &mut [f32], weight: &[f32], eps: f32, first_call: boo
src/decode.rs:1559
↓ 5 callersFunctiongenerate_weight_perm_int4
Generate the Marlin weight permutation table for INT4. Returns a 1024-element array mapping destination → source index within a 16×64 tile. Matches v
src/weights/marlin.rs:356
↓ 5 callersFunctiongenerate_weight_perm_int8
Generate the Marlin weight permutation table for INT8. Returns a 1024-element array mapping destination → source index within a 16×64 tile. Matches v
src/weights/marlin.rs:687
↓ 5 callersMethodget
Returns a pointer
src/cuda/flash_attn/cutlass/cutlass/transform/threadblock/predicated_tile_access_iterator.h:1001
↓ 5 callersMethodget
src/cuda/flash_attn/cutlass/cutlass/pipeline/sm90_pipeline.hpp:127
↓ 5 callersMethodgetOnDiag
Return if the address in on the diagonal
src/cuda/flash_attn/cutlass/cutlass/transform/threadblock/predicated_tile_access_iterator_triangular_matrix.h:874
↓ 5 callersFunctionget_block_shape
src/cuda/flash_attn/cutlass/cutlass/transform/kernel/sm90_sparse_gemm_compressor.hpp:203
↓ 5 callersMethodget_expert
Get expert weights for a given MoE layer index and expert index. moe_layer_idx is 0-based within MoE layers (not absolute layer index).
src/weights/mod.rs:4226
↓ 5 callersFunctionget_num_sm
src/cuda/flash_attn/fa2/hardware_info.h:39
↓ 5 callersFunctionget_scale_min_k4
(j: usize, scales: &[u8])
src/gguf.rs:666
↓ 5 callersMethodget_shape_A
Get A extents. fprop: A extents array contains [N,D,H,W,C]. Turn that into ((W,H,D,N), (C)) dgrad: A extents array contains [N,Z,P,Q,K]. Turn that int
src/cuda/flash_attn/cutlass/cutlass/conv/convnd_problem_shape.hpp:402
↓ 5 callersMethodget_shape_B
Get B extents. fprop: B extents array contains [K,T,R,S,C]. Turn that into ((K), (C,S,R,T)) dgrad: B extents array contains [K,T,R,S,C]. Turn that int
src/cuda/flash_attn/cutlass/cutlass/conv/convnd_problem_shape.hpp:426
↓ 5 callersFunctionget_swizzle_portion
src/cuda/flash_attn/cutlass/cute/swizzle_layout.hpp:133
↓ 5 callersFunctiongithub_request
( method: str, url: str, token: str | None, data: bytes | None = None, content_type: str =
scripts/build_sidecars.py:512
↓ 5 callersMethodgrid_shape
Computes the grid size given a chosen threadblock shape
src/cuda/flash_attn/cutlass/cutlass/reduction/kernel/reduce_split_k.h:134
← previousnext →801–900 of 12,380, ranked by callers