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
↓ 7 callers
Method
run
Execute the full two-phase optimisation.
tests/archive/meta_optimiser.py:288
↓ 7 callers
Method
set_mask
Sets the predicate mask, overriding value stored in predicate iterator
src/cuda/flash_attn/cutlass/cutlass/transform/threadblock/predicated_tile_iterator.h:1447
↓ 7 callers
Method
slice_accumulator
src/cuda/flash_attn/cutlass/cutlass/gemm/collective/sm100_mma_warpspecialized.hpp:459
↓ 7 callers
Function
source_row_info
(row: int, source_meta: dict[str, Any])
tests/hqq_attention_diff.py:608
↓ 7 callers
Method
swap
src/cuda/flash_attn/cutlass/cute/container/array.hpp:185
↓ 7 callers
Method
tensormaps_perform_update
src/cuda/flash_attn/cutlass/cutlass/gemm/collective/sm90_mma_array_tma_gmma_ss_warpspecialized.hpp:714
↓ 7 callers
Function
tensormaps_replace_global_tensor_properties
src/cuda/flash_attn/cutlass/cutlass/gemm/collective/sm100_mma_array_warpspecialized.hpp:784
↓ 7 callers
Function
test_known_answer
Test with a prompt that has a known expected substring in the answer.
tests/test_network.py:159
↓ 7 callers
Function
transpose_int4
Transpose a QuantizedInt4 from [N, K/8] layout to [K/8, N] layout. Used to convert from the original row-major format to the transposed format needed
src/kernel/avx2.rs:2195
↓ 7 callers
Method
try_wait
src/cuda/flash_attn/cutlass/cutlass/arch/barrier.h:362
↓ 7 callers
Function
tuple_cat
src/cuda/flash_attn/cutlass/cute/container/tuple.hpp:291
↓ 7 callers
Function
valid
Returns whether access is valid or not
src/cuda/flash_attn/cutlass/cutlass/conv/threadblock/predicated_scale_bias_vector_access_iterator.h:274
↓ 7 callers
Function
warn
(msg: str)
tests/generate_reference.py:115
↓ 6 callers
Function
_attach_source_contract
( entry: Dict[str, Any], source_contract_lookup: Dict[Tuple[int, str], Dict[str, Any]], )
python/krasis/hqq_self_calibrate.py:931
↓ 6 callers
Function
_build_shadow_real_artifact_model
(real_case: dict, model_path: str)
tests/test_hqq_rust_quantizer.py:345
↓ 6 callers
Method
_copy_weights_dict
Deep-copy a layer weights dict, moving all tensors to device.
python/krasis/model.py:1653
↓ 6 callers
Function
_diag_vector
(diag: dict, key: str)
tests/test_hqq_fused_branch_runtime.py:66
↓ 6 callers
Function
_edit_value
Inline edit: shows current value, user types new one.
python/krasis/launcher.py:1268
↓ 6 callers
Method
_engine_request
Single request through the Rust engine (no HTTP/SSE). Calls RustServer.benchmark_request() which runs the full evict -> prefill -> re
python/krasis/benchmark.py:396
↓ 6 callers
Function
_event_brief
(event: Optional[Dict[str, Any]])
tests/trace_diff.py:705
↓ 6 callers
Function
_event_key
(event: Dict[str, Any])
tests/trace_diff.py:676
↓ 6 callers
Method
_fix_query_key_value_ordering
Un-interleave QKVZ and BA projections. The weight matrices are structured so that the output is interleaved per key-head group. This
python/krasis/linear_attention.py:362
↓ 6 callers
Method
_hqq_attention_tensor_map
(self, layer_type: str, weights: dict)
python/krasis/model.py:1706
↓ 6 callers
Function
_load_hqq_tensor
(cache_dir: str, entry: Dict[str, Any])
python/krasis/hqq_self_calibrate.py:847
↓ 6 callers
Function
_load_json
(path: Path)
tests/reference_contract.py:60
↓ 6 callers
Method
_maybe_write_hqq_attention_artifacts
(self, layer_idx: int, layer_type: str, weights: dict)
python/krasis/model.py:1940
↓ 6 callers
Function
_normalized_staging_json
(store: GpuDecodeStore)
tests/test_hqq_rust_quantizer.py:1105
↓ 6 callers
Function
_parse_float_list
(text: Any)
tests/trace_diff.py:233
↓ 6 callers
Method
_register_hqq_attention_layers_on_store
( self, store, target_device: torch.device, keepalive: list, )
python/krasis/model.py:3224
↓ 6 callers
Function
_require_hf
()
python/krasis/hf_downloader.py:169
↓ 6 callers
Function
_rmsnorm
RMSNorm using torch.
python/krasis/layer.py:32
↓ 6 callers
Function
_safe_ratio
(numer: float, denom: float)
python/krasis/hqq_self_calibrate.py:1375
↓ 6 callers
Function
_sidecar_entry_key_to_str
(entry: Tuple[int, str, int, int])
python/krasis/hqq_self_calibrate.py:3193
↓ 6 callers
Function
_similarity_stats
(reference: torch.Tensor, candidate: torch.Tensor)
tests/test_hqq_fused_branch_runtime.py:41
↓ 6 callers
Function
_source_contract_lookup_from_audit
(source_contract_audit_path: str)
python/krasis/hqq_self_calibrate.py:906
↓ 6 callers
Function
_tensor_stats
(tensor: Any)
tests/reference_backfill_topk.py:270
↓ 6 callers
Function
_vram_ledger_enabled
()
python/krasis/server.py:164
↓ 6 callers
Function
_wsl_cuda_dir
()
python/krasis/launcher.py:358
↓ 6 callers
Function
add_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:166
↓ 6 callers
Method
apply
Apply the chat template to a list of messages. `messages_json` is a JSON array of {role, content} objects. `tools_json` is an optional JSON array of
src/chat_template.rs:98
↓ 6 callers
Method
block_bytes
Bytes per block.
src/gguf.rs:68
↓ 6 callers
Method
block_size
Block size (number of elements per quantization block).
src/gguf.rs:56
↓ 6 callers
Function
bundle_path
(contracts: dict[str, dict[str, object]])
scripts/build_sidecars.py:437
↓ 6 callers
Method
call
src/cuda/flash_attn/cutlass/cute/atom/mma_atom.hpp:92
↓ 6 callers
Function
can_implement
Determines whether the Implicit GEMM can execute the given problem.
src/cuda/flash_attn/cutlass/cutlass/conv/threadblock/conv3d_fprop_filter_tile_access_iterator_analytic.h:239
↓ 6 callers
Method
capacity
Compute the number of contiguous elements needed to store a tensor with the given size
src/cuda/flash_attn/cutlass/cutlass/layout/tensor_op_multiplicand_sm70.h:188
↓ 6 callers
Method
capacity
Compute the number of contiguous elements needed to store a tensor with the given size
src/cuda/flash_attn/cutlass/cutlass/layout/tensor_op_multiplicand_sm75.h:216
↓ 6 callers
Function
clear_gpu
()
tests/archive/run_hcs_benchmark.py:45
↓ 6 callers
Function
compare
(name, hf_t, our_t)
tests/test_linear_attn_compare.py:87
↓ 6 callers
Function
compare
Compare two tensors and report.
tests/archive/test_layer0_detail.py:24
↓ 6 callers
Function
compatible
src/cuda/flash_attn/cutlass/cute/int_tuple.hpp:486
↓ 6 callers
Function
compute_lower_corner_whd
src/cuda/flash_attn/cutlass/cutlass/conv/collective/detail.hpp:188
↓ 6 callers
Function
compute_source_not_needed_
Streams the result to global memory
src/cuda/flash_attn/cutlass/cutlass/epilogue/threadblock/epilogue_direct_store.h:275
↓ 6 callers
Function
compute_upper_corner_whd
src/cuda/flash_attn/cutlass/cutlass/conv/collective/detail.hpp:212
↓ 6 callers
Function
consider
(zero_values: torch.Tensor, scale_seed: float)
python/krasis/hqq_self_calibrate.py:2561
↓ 6 callers
Method
consumer_wait
src/cuda/flash_attn/cutlass/cutlass/pipeline/sm100_pipeline.hpp:1093
↓ 6 callers
Function
copy_tiles_and_advance
src/cuda/flash_attn/cutlass/cutlass/gemm/threadblock/mma_multistage.h:287
↓ 6 callers
Function
copy_tiles_and_advance
src/cuda/flash_attn/cutlass/cutlass/conv/threadblock/implicit_gemm_multistage.h:84
↓ 6 callers
Function
cp_async_fence
src/cuda/marlin/marlin_vendor_common.h:111
↓ 6 callers
Method
data_bytes
Total bytes of weight data (packed + scales).
src/weights/mod.rs:294
↓ 6 callers
Method
dequantize_tensor
Dequantize a tensor to FP32.
src/gguf.rs:466
↓ 6 callers
Function
dice
src/cuda/flash_attn/cutlass/cute/layout.hpp:706
↓ 6 callers
Function
expert_forward_integer
Compute a single expert's output using the integer kernel (_mm256_madd_epi16). Uses pre-quantized INT16 activations for gate/up projections (shared a
src/moe.rs:130
↓ 6 callers
Method
exponent_biased
Returns the biased exponent
src/cuda/flash_attn/cutlass/cutlass/tfloat32.h:173
↓ 6 callers
Method
exponent_biased
Returns the biased exponent
src/cuda/flash_attn/cutlass/cutlass/half.h:475
↓ 6 callers
Method
exponent_biased
Returns the biased exponent
src/cuda/flash_attn/cutlass/cutlass/bfloat16.h:211
↓ 6 callers
Method
fileno
(self)
python/krasis/server.py:1245
↓ 6 callers
Function
find_nvcc
()
scripts/build_sidecars.py:91
↓ 6 callers
Function
fma
src/cuda/flash_attn/cutlass/cute/numeric/real.hpp:58
↓ 6 callers
Function
fp16x8_to_f32x8
(src: *const u16)
src/decode.rs:5004
↓ 6 callers
Method
get_current_work
src/cuda/flash_attn/cutlass/cutlass/gemm/kernel/static_tile_scheduler.hpp:163
↓ 6 callers
Method
get_grid_shape
Computes the grid shape
src/cuda/flash_attn/cutlass/cutlass/conv/device/conv_universal_adapter.hpp:174
↓ 6 callers
Method
get_stride
Returns a stride
src/cuda/flash_attn/cutlass/cutlass/transform/threadblock/ell_predicated_tile_iterator.h:837
↓ 6 callers
Function
gguf_type_to_cpu_bits
Map GGUF quantization type to target CPU bit width for AVX2 transposed format. Returns (target_bits, is_exact) where is_exact indicates whether the c
src/weights/mod.rs:29
↓ 6 callers
Method
has_gguf
Whether native GGUF weights are loaded (for CPU decode).
src/moe.rs:2129
↓ 6 callers
Function
hqq_attention_pending_manifest_path
( model_path: str, cache_profile: Optional[str] = HQQ_CACHE_PROFILE_BASELINE, nbits: int = 4,
python/krasis/attention_backend.py:439
↓ 6 callers
Function
hqq_auto_budget_bytes_from_pct
(value: float, promotion_span_bytes: int, attention_quant: str = "hqq_auto")
python/krasis/attention_backend.py:598
↓ 6 callers
Function
hqq_backend_name
(nbits: int)
python/krasis/attention_backend.py:271
↓ 6 callers
Function
implicit_gemm_tensor_c_size
Returns ImplicitGemm tensor C size in number of elements
src/cuda/flash_attn/cutlass/cutlass/conv/conv3d_problem_size.h:502
↓ 6 callers
Function
init_masks
src/cuda/flash_attn/cutlass/cutlass/pipeline/sm100_pipeline.hpp:347
↓ 6 callers
Function
load_fp8_scale
Load a per-tensor FP8 scale_inv value. Handles both BF16 scalar and FP32 scalar formats.
src/weights/mod.rs:6967
↓ 6 callers
Method
load_with_ell_index
src/cuda/flash_attn/cutlass/cutlass/transform/threadblock/ell_predicated_tile_iterator.h:888
↓ 6 callers
Method
load_with_ell_index_fast
src/cuda/flash_attn/cutlass/cutlass/transform/threadblock/ell_predicated_tile_iterator.h:893
↓ 6 callers
Function
load_with_pointer_offset
Loads a fragment from memory
src/cuda/flash_attn/cutlass/cutlass/conv/threadblock/predicated_scale_bias_vector_iterator.h:185
↓ 6 callers
Method
load_with_pointer_offset
Loads a fragment
src/cuda/flash_attn/cutlass/cutlass/transform/threadblock/regular_tile_iterator_pitch_linear_2dthreadtile.h:148
↓ 6 callers
Function
log
(x)
src/cuda/fla/ops/utils/op.py:17
↓ 6 callers
Function
logical_product
src/cuda/flash_attn/cutlass/cute/layout.hpp:1667
↓ 6 callers
Function
make_arithmetic_tuple
src/cuda/flash_attn/cutlass/cute/numeric/arithmetic_tuple.hpp:70
↓ 6 callers
Function
make_hook
(name)
tests/archive/test_layer0_detail.py:64
↓ 6 callers
Function
make_im2col_tma_copy
src/cuda/flash_attn/cutlass/cute/atom/copy_traits_sm90_im2col.hpp:811
↓ 6 callers
Function
make_layout
src/cuda/flash_attn/cutlass/cute/swizzle_layout.hpp:68
↓ 6 callers
Function
make_tensor_descriptor
( base, shape, strides, block_shape, _builder=None, )
src/cuda/fla/ops/utils/op.py:57
↓ 6 callers
Function
make_tiled_copy_C
src/cuda/flash_attn/cutlass/cute/atom/copy_atom.hpp:470
↓ 6 callers
Function
marlin_w2_padded_n
Compute padded output dimension for Marlin w2 (down_proj). The `moe_wna16_marlin_gemm` kernel's thread config lookup fails when both K and N dimensio
src/weights/mod.rs:1571
↓ 6 callers
Method
matmul
Matrix-vector multiply: output[N] = W[N,K] @ input[K] Input is f32, internally quantized to INT16. Output is f32.
src/decode.rs:688
↓ 6 callers
Function
matmul_int4_integer
Safe wrapper for the AVX2 integer INT4 matmul kernel.
src/kernel/avx2.rs:432
↓ 6 callers
Function
matmul_int4_transposed_integer
Safe wrapper for AVX2 integer transposed INT4 matmul. For large N, tiles the N dimension to keep scratch buffer in L1 cache.
src/kernel/avx2.rs:1211
↓ 6 callers
Function
merge_desc_sorted_arrays
src/cuda/flash_attn/cutlass/cutlass/epilogue/fusion/sm90_visitor_topk_softmax.hpp:228
↓ 6 callers
Function
normalize_hqq_attention_cache_profile
(cache_profile: Optional[str])
python/krasis/attention_backend.py:375
↓ 6 callers
Method
num_experts
Total number of routed experts per layer.
src/moe.rs:2095
← previous
next →
701–800 of 12,380, ranked by callers