Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/brontoguana/krasis
/ functions
Functions
12,380 in github.com/brontoguana/krasis
⨍
Functions
12,380
◇
Types & classes
7,782
↳
Endpoints
10
↓ 3 callers
Method
set_kgroup_index
Notify the iterator which k-group it is currently pointing to. This does not advance the iterator. Rather, it overrides its internal tracking with co
src/cuda/flash_attn/cutlass/cutlass/gemm/warp/mma_complex_tensor_op_tile_iterator_sm80.h:568
↓ 3 callers
Method
set_kgroup_index
Notify the iterator which k-group it is currently pointing to. This does not advance the iterator. Rather, it overrides its internal tracking with co
src/cuda/flash_attn/cutlass/cutlass/gemm/warp/mma_tensor_op_tile_iterator_sm70.h:1115
↓ 3 callers
Method
set_kgroup_index
Notify the iterator which k-group it is currently pointing to. This does not advance the iterator. Rather, it overrides its internal tracking with co
src/cuda/flash_attn/cutlass/cutlass/gemm/warp/mma_tensor_op_tile_iterator.h:2118
↓ 3 callers
Method
set_mask
Sets the predicate mask, overriding value stored in predicate iterator
src/cuda/flash_attn/cutlass/cutlass/transform/threadblock/ell_predicated_tile_access_iterator.h:932
↓ 3 callers
Function
set_params_splitkv
src/cuda/flash_attn/fa2/flash_api_reference.cpp:299
↓ 3 callers
Function
shiftr
src/cuda/flash_attn/cutlass/cute/swizzle.hpp:349
↓ 3 callers
Function
sidecar_variant_dir
(model_path: str, target_profile: str, variant_name: str, mode: str)
python/krasis/hqq_self_calibrate.py:372
↓ 3 callers
Function
silu_quantize_int16_avx2
( gate_inout: *mut f32, up: *const f32, hidden_int16: *mut i16, hidden_scales: *mut f32, n
src/kernel/avx2.rs:2310
↓ 3 callers
Function
size
src/cuda/flash_attn/cutlass/cute/tensor_impl.hpp:550
↓ 3 callers
Function
slice_accumulator
src/cuda/flash_attn/cutlass/cutlass/gemm/collective/sm100_mma_array_warpspecialized_blockwise_scaling.hpp:557
↓ 3 callers
Function
slice_accumulator
src/cuda/flash_attn/cutlass/cutlass/gemm/collective/sm100_mma_array_warpspecialized.hpp:465
↓ 3 callers
Function
slice_and_offset
src/cuda/flash_attn/cutlass/cute/layout.hpp:698
↓ 3 callers
Function
softplus
(dt)
python/krasis/mamba2_ops/selective_state_update.py:21
↓ 3 callers
Function
solve_hqq4_fixed_zero_rust
Rust shadow fixed-zero solve path for one HQQ4 group chunk.
python/krasis/attention_backend.py:1393
↓ 3 callers
Function
source_slice_names
(source_meta: dict[str, Any])
tests/hqq_attention_diff.py:604
↓ 3 callers
Function
store_with_byte_offset
Stores a fragment to memory
src/cuda/flash_attn/cutlass/cutlass/epilogue/threadblock/predicated_tile_iterator.h:385
↓ 3 callers
Method
store_with_byte_offset
Store a fragment to memory
src/cuda/flash_attn/cutlass/cutlass/transform/threadblock/predicated_tile_iterator.h:1483
↓ 3 callers
Function
store_with_pointer_offset
Store
src/cuda/flash_attn/cutlass/cutlass/epilogue/warp/tile_iterator_tensor_op.h:192
↓ 3 callers
Method
store_with_pointer_offset
Store a fragment to memory
src/cuda/flash_attn/cutlass/cutlass/transform/threadblock/ell_predicated_tile_iterator.h:899
↓ 3 callers
Method
stride
Returns the layout object's stride vector
src/cuda/flash_attn/cutlass/cutlass/tensor_ref.h:291
↓ 3 callers
Function
summarize_float_values
(values: list[float])
tests/hqq_attention_diff.py:3276
↓ 3 callers
Function
symmetric_affine_params
(source: torch.Tensor)
tests/hqq_attention_diff.py:787
↓ 3 callers
Function
synclog_print
src/cuda/flash_attn/cutlass/cutlass/arch/synclog.hpp:996
↓ 3 callers
Function
synclog_print_wgmma_desc
src/cuda/flash_attn/cutlass/cutlass/arch/synclog.hpp:286
↓ 3 callers
Method
tensormaps_fence_acquire
src/cuda/flash_attn/cutlass/cutlass/gemm/collective/sm90_mma_array_tma_gmma_ss_warpspecialized.hpp:751
↓ 3 callers
Function
test_coherent_response
Test that a prompt produces a coherent (non-garbage) response.
tests/test_network.py:198
↓ 3 callers
Function
test_multi_chunk
Test fused_marlin_moe with chunked expert processing (mimics GPU1 crash scenario).
tests/archive/test_marlin_gpu1.py:94
↓ 3 callers
Method
thrfrg_C
src/cuda/flash_attn/cutlass/cute/atom/mma_atom.hpp:250
↓ 3 callers
Method
throttle_pipeline
src/cuda/flash_attn/cutlass/cutlass/gemm/kernel/sm90_tile_scheduler.hpp:63
↓ 3 callers
Function
timed_phase
(label: &'static str, f: F)
build.rs:67
↓ 3 callers
Method
to_save_dict
Convert to dict for saving or launch config serialization.
python/krasis/launcher.py:827
↓ 3 callers
Function
ty
(v)
tests/release_test.py:1544
↓ 3 callers
Function
umma_arrive
src/cuda/flash_attn/cutlass/cutlass/arch/barrier.h:762
↓ 3 callers
Function
umma_arrive_multicast_2x1SM
UMMA arrive for MMA_2x1SM + TMA_LOAD_MULTICAST combination
src/cuda/flash_attn/cutlass/cutlass/arch/barrier.h:810
↓ 3 callers
Function
update_best_cuda
( chunk: torch.Tensor, zero_grid: torch.Tensor, scale_seed: torch.Tensor, qmax: float, ite
tests/hqq_gpu_search_probe.py:186
↓ 3 callers
Method
valid
Returns whether access is valid or not
src/cuda/flash_attn/cutlass/cutlass/transform/threadblock/ell_predicated_tile_access_iterator.h:946
↓ 3 callers
Function
validate_contracts
(reference_contract: Dict[str, Any], runtime_contract: Dict[str, Any])
tests/reference_contract.py:973
↓ 3 callers
Function
validate_image_only_messages
(messages: &serde_json::Value)
src/text_only_messages.rs:71
↓ 3 callers
Function
variant
(name, row, effects)
tests/test_hqq_self_calibrate.py:1529
↓ 3 callers
Method
warmup_cuda_runtime
Trigger ALL lazy CUDA runtime allocations on ALL devices before HCS expert loading.
python/krasis/model.py:1388
↓ 3 callers
Function
write_quantized
(w: &mut W, q: &QuantWeight)
src/weights/mod.rs:5910
↓ 3 callers
Function
write_reference_case_boundary
Write non-production case span markers into the preserved server log.
tests/reference_test.py:286
↓ 3 callers
Method
write_summary
Write a markdown summary table. Returns path to summary file.
python/krasis/suite.py:499
↓ 3 callers
Function
write_tokenizer_config
(template: &str)
src/chat_template.rs:417
↓ 3 callers
Function
write_tokenizer_config
(template: &str, name: &str)
tests/test_chat_template.rs:7
↓ 3 callers
Function
write_witness_summary
(path: Path, deltas, *, first_match=True, top_overlap=9)
tests/test_hqq_self_calibrate.py:406
↓ 2 callers
Function
LaneId
Computes laneId within a warp
src/cuda/flash_attn/cutlass/cutlass/arch/arch.h:50
↓ 2 callers
Function
LinearCombinationClampIsHeavy
Single source of truth for whether to unroll for `LinearCombinationClamp()`
src/cuda/flash_attn/cutlass/cutlass/epilogue/thread/linear_combination_clamp.h:56
↓ 2 callers
Function
LinearCombinationRelu0IsHeavy
Single source of truth for whether to unroll for `LinearCombinationClamp()`
src/cuda/flash_attn/cutlass/cutlass/epilogue/thread/linear_combination_relu0.h:60
↓ 2 callers
Function
LinearCombinationReluIsHeavy
Single source of truth for whether to unroll for `LinearCombinationClamp()`
src/cuda/flash_attn/cutlass/cutlass/epilogue/thread/linear_combination_relu.h:57
↓ 2 callers
Function
OutputTileThreadMapDesc
src/cuda/flash_attn/cutlass/cutlass/epilogue/threadblock/predicated_tile_iterator_params.h:126
↓ 2 callers
Function
PredicatedScaleBiasVectorAccessIterator
Construct a PredicatedTileAccessIterator with zero threadblock offset
src/cuda/flash_attn/cutlass/cutlass/conv/threadblock/predicated_scale_bias_vector_access_iterator.h:194
↓ 2 callers
Function
_activation_evidence_policy
(layer: int, activation_tensor: str)
python/krasis/hqq_self_calibrate.py:1040
↓ 2 callers
Function
_activation_fields_by_key
(evidence: Dict[str, Any])
python/krasis/hqq_self_calibrate.py:1306
↓ 2 callers
Method
_apply_rope
(x, positions, rotary_dim, rope_theta)
python/krasis/awq_calibrate.py:295
↓ 2 callers
Function
_argv_has_option
(argv: list[str], option: str)
python/krasis/server.py:54
↓ 2 callers
Function
_artifact_tensor_bytes
(path: str)
python/krasis/hqq_self_calibrate.py:159
↓ 2 callers
Function
_artifact_tensor_bytes
(path: str)
python/krasis/attention_backend.py:495
↓ 2 callers
Function
_artifact_weights_from_real_case
(real_case: dict)
tests/test_hqq_rust_quantizer.py:198
↓ 2 callers
Function
_assert_heatmap_prompts_are_held_out
(prompts: list[str])
python/krasis/server.py:250
↓ 2 callers
Function
_bf16_hex_to_floats
(hex_text: str, width: int)
python/krasis/hqq_self_calibrate.py:129
↓ 2 callers
Function
_cache_mode_to_value
(cache_mode: str)
tests/generate_reference.py:441
↓ 2 callers
Function
_check_p2p
Test if direct GPU-to-GPU transfer works.
python/krasis/model.py:138
↓ 2 callers
Method
_chunked_inner
Nilpotent correction + recurrent chunk loop (shared by all chunked paths). Replaces ~600 kernel launches (63-iter nilpotent loop + 16-chunk r
python/krasis/linear_attention.py:590
↓ 2 callers
Function
_cleanup_cuda
Release all CUDA contexts to prevent zombie GPU memory.
python/krasis/server.py:810
↓ 2 callers
Function
_clear_screen
()
python/krasis/chat.py:161
↓ 2 callers
Function
_collect_eos_ids
Collect all unique EOS token IDs from config.json and generation_config.json. generation_config.json is authoritative for stop tokens (often has
python/krasis/config.py:65
↓ 2 callers
Function
_collect_eos_ids
(config_json: Dict[str, Any], generation_json: Dict[str, Any])
tests/reference_contract.py:236
↓ 2 callers
Function
_count_total_prompts
Count total number of prompts across all conversations.
python/krasis/chat.py:899
↓ 2 callers
Function
_cpu_device_warning
()
src/cuda/fla/utils.py:420
↓ 2 callers
Method
_cycle_value
Cycle a config value left/right.
python/krasis/launcher.py:2089
↓ 2 callers
Function
_decode_piece
(tokenizer: Any, token_id: int)
tests/reference_backfill_topk.py:314
↓ 2 callers
Function
_detect_distro
Detect Linux distro for package manager selection. Returns (family, version_id) e.g. ("debian", "24.04") or ("rhel", "39").
python/krasis/setup.py:237
↓ 2 callers
Function
_detect_gpu_vram_bytes
Auto-detect per-GPU VRAM in bytes via nvidia-smi.
python/krasis/vram_budget.py:86
↓ 2 callers
Method
_discover_prefill_files
Discover available prefill_prompt_N files.
python/krasis/benchmark.py:309
↓ 2 callers
Function
_divergence_window
( events: Sequence[Dict[str, Any]], index: int, *, radius: int, )
tests/trace_diff.py:1361
↓ 2 callers
Function
_do_self_update
(channel: str)
python/krasis/launcher.py:2915
↓ 2 callers
Function
_entry_tuple_from_dict
(entry: Dict[str, Any])
python/krasis/hqq_self_calibrate.py:4657
↓ 2 callers
Function
_estimate_expert_ram_gb
Estimate system RAM needed for CPU expert weights in GB. Calculates per-expert byte sizes for the unified weight format: w13 (gate+up conca
python/krasis/model.py:314
↓ 2 callers
Function
_estimate_message_tokens
Rough token estimate for a full message list.
python/krasis/chat.py:612
↓ 2 callers
Function
_evidence_trace_path
(evidence_path: str, evidence: Dict[str, Any])
python/krasis/hqq_self_calibrate.py:1278
↓ 2 callers
Function
_expected_heatmap_metadata
(model: KrasisModel, args, prompts: list[str])
python/krasis/server.py:278
↓ 2 callers
Function
_expected_token_stats
(logits: Any, expected_token_id: int)
tests/reference_backfill_topk.py:412
↓ 2 callers
Function
_expert_bytes_per_expert
Expert buffer size for Marlin INT4/INT8 on GPU.
python/krasis/vram_budget.py:277
↓ 2 callers
Function
_family_packets
( events: Sequence[Dict[str, Any]], )
tests/trace_diff.py:1011
↓ 2 callers
Function
_file_sha256
(path: str)
python/krasis/attention_backend.py:781
↓ 2 callers
Function
_file_size
(sibling: Any)
python/krasis/hf_downloader.py:302
↓ 2 callers
Function
_find_nvidia_smi
Find nvidia-smi, including the WSL2 driver mount.
python/krasis/launcher.py:375
↓ 2 callers
Function
_first_runtime_mismatch
(py_runtime: dict, rust_runtime: dict)
tests/test_hqq_rust_quantizer.py:1168
↓ 2 callers
Function
_flush_range
(end_group_idx: int)
tests/test_hqq_rust_quantizer.py:858
↓ 2 callers
Method
_format_hf_candidate
(self, candidate: Any)
python/krasis/launcher.py:1830
↓ 2 callers
Function
_format_time
Format milliseconds as ms or s depending on magnitude.
python/krasis/chat.py:621
↓ 2 callers
Function
_format_value
Format a config value for display.
python/krasis/launcher.py:961
↓ 2 callers
Method
_forward_chunked
Chunked prefill: matches HF torch_chunk_gated_delta_rule. Uses the parallel-within-chunk, recurrent-across-chunks formulation.
python/krasis/linear_attention.py:692
↓ 2 callers
Function
_generate_first_token_logits
( model: Any, tokenizer: Any, input_ids: Any, )
tests/reference_backfill_topk.py:437
↓ 2 callers
Function
_get_chunk_step
Get the chunk step function (compiled if enabled, eager otherwise).
python/krasis/linear_attention.py:63
↓ 2 callers
Method
_get_sorted_backends
Get backends sorted by priority (lower number = higher priority). Backends with the same priority are sorted by registration order.
src/cuda/fla/ops/backends/__init__.py:78
↓ 2 callers
Function
_get_weight_tensor
Get the original BF16 weight tensor for an attention projection.
python/krasis/awq_calibrate.py:549
↓ 2 callers
Function
_headline
Format a compact headline for server-prefixed benchmark output.
python/krasis/benchmark.py:42
↓ 2 callers
Method
_hf_detail_screen
(self, candidate: Any)
python/krasis/launcher.py:1897
← previous
next →
1,401–1,500 of 12,380, ranked by callers