MCPcopy Create free account

hub / github.com/brontoguana/krasis / functions

Functions12,380 in github.com/brontoguana/krasis

↓ 4 callersFunctionmatmul_int4_integer_parallel
Parallel AVX2 integer INT4 matmul — splits output rows across rayon threads. The integer kernel is ~2x faster per-element than FMA, so parallelism on
src/kernel/avx2.rs:466
↓ 4 callersFunctionmatmul_int4_scalar
Scalar INT4 matrix-vector multiply. Matches AVX2 computation semantics: scale applied per-group, not per-element.
src/kernel/avx2.rs:53
↓ 4 callersFunctionmatmul_int4_transposed_avx2
Safe wrapper for AVX2 FMA transposed INT4 matmul.
src/kernel/avx2.rs:971
↓ 4 callersFunctionmatmul_int4_vectorized
Vectorized INT4 matmul simulating our Rust kernel. For each row, for each group: acc += sum(signed_nibble * activation) * scale
tests/archive/test_prequant_compare.py:69
↓ 4 callersFunctionmatmul_int8_transposed_integer
Safe wrapper for AVX2 integer transposed INT8 matmul. Weight layout: data as i8 packed into u32 in [K, N] layout, scales [K/gs, N] as BF16. The u32 v
src/kernel/avx2.rs:1588
↓ 4 callersFunctionmax_alignment
src/cuda/flash_attn/cutlass/cute/container/array_subbyte.hpp:356
↓ 4 callersFunctionmin
src/cuda/flash_attn/cutlass/cute/numeric/math.hpp:57
↓ 4 callersMethodnext_tile
src/cuda/flash_attn/cutlass/cutlass/gemm/kernel/grouped_problem_visitor.h:203
↓ 4 callersMethodnode_for
Get the NUMA node for a specific expert.
src/numa.rs:251
↓ 4 callersFunctionnvcc_host_compiler_args
()
scripts/build_sidecars.py:118
↓ 4 callersFunctionparse_layer_number
Extract the layer number from a tensor name like "model.layers.42.mlp.experts.0.gate_proj.weight". Returns None if no ".layers.N." pattern is found.
src/weights/mod.rs:6040
↓ 4 callersFunctionparse_sse_content
Parse SSE response body into (full_text, finish_reason).
tests/test_network.py:91
↓ 4 callersMethodpartition_accumulator_shape
Construct A Single Stage's Accumulator Shape
src/cuda/flash_attn/cutlass/cutlass/gemm/collective/sm100_mma_warpspecialized.hpp:450
↓ 4 callersFunctionpin_thread_to_node
Pin the current thread to a specific NUMA node. This restricts the thread to CPUs on the given node.
src/numa.rs:395
↓ 4 callersFunctionprepare_store_for_rust_prefill
( store: &mut GpuDecodeStore, engine: &mut crate::gpu_prefill::PrefillEngine, prompt_tokens: usize
src/server.rs:224
↓ 4 callersFunctionprint
src/cuda/flash_attn/cutlass/cute/container/tuple.hpp:669
↓ 4 callersMethodproblem_index
Gets the index of the problem
src/cuda/flash_attn/cutlass/cutlass/gemm/kernel/grouped_problem_visitor.h:139
↓ 4 callersFunctionproducer_acquire
src/cuda/flash_attn/cutlass/cutlass/pipeline/sm90_pipeline.hpp:529
↓ 4 callersMethodproducer_acquire
src/cuda/flash_attn/cutlass/cutlass/pipeline/sm100_pipeline.hpp:1085
↓ 4 callersFunctionproducer_get_barrier
src/cuda/flash_attn/cutlass/cutlass/pipeline/sm100_pipeline.hpp:993
↓ 4 callersFunctionprofile_mode
Profile prefill scaling for a given model/mode. Args: use_single_call: If True, pass all tokens in one forward() call. Requir
tests/archive/test_v2lite_profile.py:143
↓ 4 callersMethodread_string
(&mut self)
src/gguf.rs:262
↓ 4 callersFunctionrepeat
src/cuda/flash_attn/cutlass/cute/algorithm/tuple_algorithms.hpp:716
↓ 4 callersMethodreset_min_free
Reset min-free tracking on all devices (e.g. after warmup, before runtime).
src/vram_monitor.rs:733
↓ 4 callersFunctionsave_hqq_attention_manifest
( model_path: str, manifest: dict, cache_profile: Optional[str] = HQQ_CACHE_PROFILE_BASELINE,
python/krasis/attention_backend.py:993
↓ 4 callersMethodscale
src/cuda/flash_attn/cutlass/cutlass/functional.h:150
↓ 4 callersFunctionseparate_reduction
src/cuda/flash_attn/cutlass/cutlass/gemm/kernel/sm90_tile_scheduler_stream_k.hpp:552
↓ 4 callersMethodset_data_ptr
Set data SMEM ptr
src/cuda/flash_attn/cutlass/cutlass/gemm/kernel/sm100_tile_scheduler.hpp:635
↓ 4 callersFunctionset_iteration_index
Overrides the internal iteration index
src/cuda/flash_attn/cutlass/cutlass/transform/threadblock/predicated_tile_access_iterator.h:499
↓ 4 callersMethodset_mask
Sets the predicate mask, overriding value stored in predicate iterator
src/cuda/flash_attn/cutlass/cutlass/transform/threadblock/ell_predicated_tile_iterator.h:853
↓ 4 callersFunctionset_params_fprop
src/cuda/flash_attn/fa2/flash_api_reference.cpp:26
↓ 4 callersMethodshare
src/cuda/flash_attn/cutlass/cutlass/gemm/kernel/static_tile_scheduler.hpp:486
↓ 4 callersFunctionsignum
src/cuda/flash_attn/cutlass/cute/numeric/math.hpp:80
↓ 4 callersMethodstep
Entry of the subtile load loop. Aux loads usually performed here Upon entry the producer acquire of the current subtile lock has completed. Upon exit
src/cuda/flash_attn/cutlass/cutlass/epilogue/fusion/sm90_visitor_tma_warpspecialized.hpp:144
↓ 4 callersMethodstop
(self)
python/krasis/ssh_tunnel.py:164
↓ 4 callersMethodstop
(self, name: str)
tests/hqq_attention_diff.py:38
↓ 4 callersMethodstorage
src/cuda/flash_attn/cutlass/cutlass/transform/kernel/sm90_sparse_gemm_compressor.hpp:247
↓ 4 callersFunctionstore
Stores a fragment to memory
src/cuda/flash_attn/cutlass/cutlass/gemm/warp/mma_tensor_op_tile_iterator.h:4630
↓ 4 callersMethodstore_with_pointer_offset
Stores a fragment to memory at the location pointed to by the iterator
src/cuda/flash_attn/cutlass/cutlass/gemm/warp/mma_tensor_op_tile_iterator_wmma.h:761
↓ 4 callersMethodstore_with_pointer_offset
Store a fragment to memory
src/cuda/flash_attn/cutlass/cutlass/transform/threadblock/regular_tile_iterator_tensor_op.h:327
↓ 4 callersMethodstr
src/cuda/marlin/scalar_type.hpp:260
↓ 4 callersFunctionstream_chat
Send streaming chat request. Prints tokens as they arrive. Returns (display_text, raw_text, timing) — display_text has channel markers stripp
python/krasis/chat.py:447
↓ 4 callersFunctiontensor_hash
(t: torch.Tensor)
tests/hqq_attention_diff.py:134
↓ 4 callersFunctionthread0
src/cuda/flash_attn/cutlass/cute/util/debug.hpp:150
↓ 4 callersMethodthreadblock_idx
src/cuda/flash_attn/cutlass/cutlass/gemm/kernel/grouped_problem_visitor.h:144
↓ 4 callersFunctiontile2thrfrg
src/cuda/flash_attn/cutlass/cute/atom/copy_atom.hpp:255
↓ 4 callersMethodtile_started
Whether this block will perform the first iteration of this tile
src/cuda/flash_attn/cutlass/cutlass/gemm/kernel/gemm_universal_streamk.h:494
↓ 4 callersMethodtile_started
Whether this block will perform the first iteration of this tile
src/cuda/flash_attn/cutlass/cutlass/gemm/kernel/gemm_streamk_with_fused_epilogue.h:1688
↓ 4 callersFunctionunpin_thread
Reset thread affinity to allow running on any node.
src/numa.rs:404
↓ 4 callersFunctionupdate_request_context
(context: &str)
src/vram_monitor.rs:286
↓ 4 callersFunctionupdate_slot
(slot: dict[str, Any], record: dict[str, Any])
tests/hqq_attention_diff.py:3557
↓ 4 callersMethodvisit
src/cuda/flash_attn/cutlass/cutlass/epilogue/fusion/sm90_visitor_compute_tma_warpspecialized.hpp:747
↓ 4 callersFunctionwait_for_gpu_clear
Wait for GPU memory to drop below 500 MB used. If memory doesn't clear within half the timeout, kills any stale krasis processes that may be
tests/release_test.py:691
↓ 4 callersFunctionwarn
(msg: str)
tests/validate_model.py:111
↓ 4 callersFunctionzero_workspace
src/cuda/flash_attn/cutlass/cutlass/workspace.h:54
↓ 3 callersMethod_build_hqq_fused_qkv_artifact_weight
( self, layer_type: str, weights: dict, )
python/krasis/model.py:1666
↓ 3 callersMethod_capture_shared_expert_graph
Capture a CUDA graph for the shared expert forward (M=1). Replaces ~6 kernel launches (0.64ms Python overhead) with a single graph re
python/krasis/layer.py:557
↓ 3 callersFunction_collect_prefix_from_iterable
Grow a text prefix until it contains enough raw tokens.
python/krasis/awq_calibrate.py:137
↓ 3 callersMethod_compute_default_pp
Compute PP partition — always PP=1 (all layers on primary GPU). Multi-GPU uses Expert Parallelism (EP), not Pipeline Parallelism.
python/krasis/launcher.py:1328
↓ 3 callersFunction_decode_token_text
(tokenizer: Any, token_id: int)
tests/generate_reference.py:906
↓ 3 callersFunction_default_stop_ids
(model: KrasisModel)
python/krasis/server.py:685
↓ 3 callersFunction_ensure_wsl_cuda_env
Expose the WSL2 host driver binaries/libraries to subprocesses.
python/krasis/launcher.py:362
↓ 3 callersFunction_env_int
(name: str, default: int, minimum: int = 1)
python/krasis/server.py:149
↓ 3 callersFunction_events_equal
( expected_event: Dict[str, Any], actual_event: Dict[str, Any], *, ignore_fields: set[str], )
tests/trace_diff.py:1446
↓ 3 callersMethod_extract_layer_weights
Extract the weights dict from an existing TransformerLayer. Reconstructs the dict format that TransformerLayer.__init__ expects, so w
python/krasis/model.py:1548
↓ 3 callersFunction_f32
(value: float)
tests/test_hqq_rust_quantizer.py:58
↓ 3 callersFunction_family_counts
( events: Sequence[Dict[str, Any]], )
tests/trace_diff.py:864
↓ 3 callersFunction_family_slice
( events: Sequence[Dict[str, Any]], *, index: int, )
tests/trace_diff.py:827
↓ 3 callersFunction_format_on_off
(enabled: bool)
python/krasis/launcher.py:957
↓ 3 callersMethod_forward_recurrent_inplace
Graph-compatible M=1 recurrent forward using in-place state updates. Same computation as _forward_recurrent but: - _conv_state update
python/krasis/linear_attention.py:286
↓ 3 callersFunction_full_ranking_for_layers
Return ranking with heatmap experts first, then unranked experts for [layer_start, layer_end).
python/krasis/server.py:2219
↓ 3 callersMethod_get_rank_for_layer
Get the PP rank index that owns a given layer.
python/krasis/model.py:4955
↓ 3 callersFunction_get_required_cuda_version
Determine which CUDA toolkit version to install. Uses the minimum toolkit version needed for the GPU architecture. The CUDA version printed b
python/krasis/setup.py:291
↓ 3 callersMethod_get_stream_bufs
Get the GPU staging buffers for this layer's attention type. buf_idx: 0 or 1 (ping-pong buffer index).
python/krasis/model.py:4276
↓ 3 callersFunction_heuristic_ranking_for_layers
Return a balanced deterministic per-layer ranking without heatmap collection.
python/krasis/server.py:2235
↓ 3 callersFunction_hqq_tensor_shape_list
(tensor: torch.Tensor)
python/krasis/attention_backend.py:1255
↓ 3 callersFunction_int8_exception_candidate_activity
(candidate: Dict[str, Any])
python/krasis/hqq_self_calibrate.py:1883
↓ 3 callersFunction_int8_exception_candidate_key
(candidate: Dict[str, Any])
python/krasis/hqq_self_calibrate.py:1869
↓ 3 callersFunction_kv_cache_max_tokens
(model: KrasisModel)
python/krasis/server.py:475
↓ 3 callersFunction_legacy_hqq_cache_dir
( model_path: str, cache_profile: str, nbits: int, group_size: int, )
python/krasis/vram_budget.py:316
↓ 3 callersFunction_linear
Dispatch to INT8 or BF16 linear based on weight type.
python/krasis/model.py:164
↓ 3 callersFunction_make_startup_calibration_prompts
(model: KrasisModel, lengths: list[int])
python/krasis/server.py:482
↓ 3 callersFunction_measure_vram_probe
(label: str, prompt_tokens: list[int])
python/krasis/server.py:1713
↓ 3 callersFunction_need_python_dev
Check if Python development headers are installed (needed for pyo3).
python/krasis/setup.py:313
↓ 3 callersFunction_normalize_topk
(entries: List[Dict[str, Any]])
tests/reference_test.py:623
↓ 3 callersFunction_parse_sidecar_entry_filter
(value: Optional[str])
python/krasis/hqq_self_calibrate.py:3163
↓ 3 callersFunction_probe_torch_cuda
Probe torch in a subprocess so reinstall checks see the actual package.
python/krasis/setup.py:327
↓ 3 callersFunction_quantize_affine
(source: torch.Tensor, scale: float, zero: float)
python/krasis/hqq_self_calibrate.py:2504
↓ 3 callersFunction_read_meminfo
Read /proc/meminfo and return dict of key -> value in KB.
python/krasis/model.py:171
↓ 3 callersFunction_read_model_config
Read and normalize model config.json.
python/krasis/vram_budget.py:70
↓ 3 callersMethod_read_model_info
Read model info from config.json for display.
python/krasis/launcher.py:2280
↓ 3 callersMethod_register_bf16_weight
(self, shape: Tuple[int, int])
tests/decode_harness.py:141
↓ 3 callersFunction_run
(server)
python/krasis/chat.py:1207
↓ 3 callersFunction_sha256_bytes
(data: bytes)
tests/reference_contract.py:129
↓ 3 callersFunction_sha256_file
(path: Path)
tests/reference_contract.py:133
↓ 3 callersFunction_strip_brackets
(text: str)
tests/trace_diff.py:227
↓ 3 callersFunction_token_arg
()
python/krasis/hf_downloader.py:254
↓ 3 callersFunction_tq4_wht_signs
vLLM-style deterministic WHT rotation signs for one attention layer.
python/krasis/model.py:97
↓ 3 callersFunction_unpack_hqq_quant
(packed: torch.Tensor, cols: int, nbits: int)
python/krasis/attention_backend.py:1223
↓ 3 callersFunction_unpack_uint4
(packed: torch.Tensor, cols: int)
python/krasis/hqq_self_calibrate.py:684
← previousnext →1,101–1,200 of 12,380, ranked by callers