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
↓ 21 callers
Method
valid
Returns true if the current coordinate is within the filter tensor W
src/cuda/flash_attn/cutlass/cutlass/conv/threadblock/conv3d_fprop_filter_tile_access_iterator_optimized.h:227
↓ 20 callers
Function
_fail
(msg: str)
tests/test_network.py:40
↓ 20 callers
Function
_to_device
Transfer tensor to target device, using CPU bounce if P2P is broken.
python/krasis/model.py:155
↓ 20 callers
Function
const_max
src/cuda/flash_attn/cutlass/cutlass/fast_math.h:758
↓ 20 callers
Function
cutlass_get_smem_pointer
CUTLASS helper to get SMEM pointer
src/cuda/flash_attn/cutlass/cutlass/arch/memory_sm75.h:63
↓ 20 callers
Function
dispatch_matmul_free
Free-function dispatch for quantized matmul (avoids &self borrow conflict).
src/decode.rs:1902
↓ 20 callers
Function
flatten
src/cuda/flash_attn/cutlass/cute/layout.hpp:529
↓ 20 callers
Method
get
Returns a pointer
src/cuda/flash_attn/cutlass/cutlass/transform/threadblock/regular_scale_bias_vector_access_iterator.h:129
↓ 20 callers
Method
get
src/cuda/flash_attn/cutlass/cute/pointer_base.hpp:157
↓ 20 callers
Function
load_with_byte_offset
Loads a fragment from memory with additional logical offset
src/cuda/flash_attn/cutlass/cutlass/gemm/warp/mma_tensor_op_tile_iterator.h:385
↓ 20 callers
Function
log_memory_usage
Log current memory usage from /proc/self/status and /proc/meminfo. Called from diagnostic logging points to track memory consumption.
src/syscheck.rs:227
↓ 20 callers
Method
make_fragment_B
src/cuda/flash_attn/cutlass/cute/atom/mma_atom.hpp:172
↓ 20 callers
Function
make_tiled_copy_impl
src/cuda/flash_attn/cutlass/cute/atom/copy_atom.hpp:438
↓ 20 callers
Function
quantize_activation_int16
Quantize BF16 activation vector to INT16 with per-group scales. For each group: scale = max(|x|) / 32767, int16[i] = round(x[i] / scale). INT16 per-g
src/kernel/avx2.rs:234
↓ 20 callers
Function
real
src/cuda/flash_attn/cutlass/cutlass/complex.h:395
↓ 20 callers
Method
size_bits
src/cuda/marlin/scalar_type.hpp:157
↓ 20 callers
Function
store_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_simt_tile_iterator.h:507
↓ 19 callers
Function
_html_escape
(s: str)
tests/reference_test.py:85
↓ 19 callers
Method
copy
src/cuda/flash_attn/cutlass/cute/arch/copy.hpp:55
↓ 19 callers
Function
cp_async4
src/cuda/marlin/marlin_vendor_common.h:102
↓ 19 callers
Function
fast_divmod
* Find quotient and remainder using device-side intrinsics */
src/cuda/flash_attn/cutlass/cutlass/fast_math.h:275
↓ 19 callers
Function
fast_sqrt
src/cuda/flash_attn/cutlass/cutlass/fast_math.h:859
↓ 19 callers
Method
get
Value
src/cuda/flash_attn/cutlass/cute/container/array_subbyte.hpp:161
↓ 19 callers
Method
get_flat_coord
src/cuda/flash_attn/cutlass/cute/layout.hpp:261
↓ 19 callers
Function
info
(msg: str)
tests/validate_model.py:105
↓ 19 callers
Method
init_masks
src/cuda/flash_attn/cutlass/cutlass/pipeline/sm100_pipeline.hpp:150
↓ 19 callers
Method
isnan
Is NaN implementation
src/cuda/flash_attn/cutlass/cutlass/float8.h:190
↓ 19 callers
Function
make_identity_layout
src/cuda/flash_attn/cutlass/cute/layout.hpp:483
↓ 19 callers
Function
make_tiled_copy_A
src/cuda/flash_attn/cutlass/cute/atom/copy_atom.hpp:452
↓ 19 callers
Function
print
src/cuda/flash_attn/cutlass/cute/atom/copy_atom.hpp:648
↓ 19 callers
Method
tensor_info
Get metadata for a tensor.
src/weights/safetensors_io.rs:155
↓ 18 callers
Method
_dense_mlp_tensor
Extract a BF16 tensor from a dense MLP weight value. Dense MLP weights are either plain BF16 tensors or (weight_int8, scale) tuples f
python/krasis/model.py:6595
↓ 18 callers
Function
_format_metric_pct
(value: Optional[float], digits: int = 0)
tests/reference_test.py:777
↓ 18 callers
Function
_parse_float
(text: Any)
tests/trace_diff.py:205
↓ 18 callers
Method
add
(self, pos: int, row_hash: str, values: List[float])
python/krasis/hqq_self_calibrate.py:239
↓ 18 callers
Function
add_pointer_offset
src/cuda/flash_attn/cutlass/cutlass/epilogue/threadblock/shared_load_iterator.h:67
↓ 18 callers
Function
block_id_in_cluster
Returns the relative dim3 block rank local to the cluster.
src/cuda/flash_attn/cutlass/cute/arch/cluster_sm90.hpp:126
↓ 18 callers
Function
get_gmem_layout
src/cuda/flash_attn/cutlass/cutlass/detail/collective/mixed_input_utils.hpp:519
↓ 18 callers
Method
inverse
src/cuda/flash_attn/cutlass/cutlass/layout/matrix.h:114
↓ 18 callers
Method
isfinite
Is finite implementation
src/cuda/flash_attn/cutlass/cutlass/float8.h:176
↓ 18 callers
Function
load_prequantized_weight
Load a pre-quantized INT4 weight directly (compressed-tensors format). Reads weight_packed (I32), weight_scale (BF16), weight_shape (I32[2]).
src/weights/mod.rs:6488
↓ 18 callers
Method
make_fragment_A
src/cuda/flash_attn/cutlass/cute/atom/mma_atom.hpp:146
↓ 18 callers
Method
raw
Accesses raw internal state
src/cuda/flash_attn/cutlass/cutlass/half.h:463
↓ 18 callers
Method
retile_S
src/cuda/flash_attn/cutlass/cute/atom/copy_atom.hpp:416
↓ 18 callers
Function
take
src/cuda/flash_attn/cutlass/cute/layout.hpp:507
↓ 17 callers
Function
blocked_product
src/cuda/flash_attn/cutlass/cute/layout.hpp:1748
↓ 17 callers
Method
flush
Flush any remaining buffered tokens (end of stream).
src/server.rs:45
↓ 17 callers
Method
is_source_needed
Determine if the source is needed. May return false if
src/cuda/flash_attn/cutlass/cutlass/epilogue/threadblock/epilogue_with_broadcast.h:123
↓ 17 callers
Function
load_hqq_attention_manifest
( model_path: str, cache_profile: Optional[str] = HQQ_CACHE_PROFILE_BASELINE, nbits: int = 4,
python/krasis/attention_backend.py:756
↓ 17 callers
Function
make_zip_tensor
src/cuda/flash_attn/cutlass/cute/tensor_zip.hpp:157
↓ 17 callers
Method
moe_forward
Run MoE forward for a single token on one layer. Args: moe_layer_idx: 0-based MoE layer index (skipping dense layers) activation_bf16: BF16 activatio
src/moe.rs:1968
↓ 17 callers
Function
norm
src/cuda/flash_attn/cutlass/cutlass/complex.h:481
↓ 17 callers
Function
partition_fragment_C
src/cuda/flash_attn/cutlass/cute/atom/mma_atom.hpp:621
↓ 17 callers
Function
report_event
Record a named event with current VRAM snapshot. No-op if reporting is not enabled.
src/vram_monitor.rs:392
↓ 17 callers
Method
resize
Changes the size of the view without affecting pointer or layout
src/cuda/flash_attn/cutlass/cutlass/tensor_view.h:170
↓ 17 callers
Function
stride
src/cuda/flash_attn/cutlass/cute/tensor_impl.hpp:541
↓ 16 callers
Function
abs
src/cuda/flash_attn/cutlass/cute/numeric/math.hpp:65
↓ 16 callers
Function
alignment_for_swizzle
src/cuda/flash_attn/cutlass/cutlass/detail/layout.hpp:418
↓ 16 callers
Method
clear
Efficient clear method
src/cuda/flash_attn/cutlass/cutlass/array.h:360
↓ 16 callers
Function
conj
src/cuda/flash_attn/cutlass/cutlass/complex.h:568
↓ 16 callers
Method
fill
src/cuda/flash_attn/cutlass/cute/container/array.hpp:171
↓ 16 callers
Function
get_logical_ptr
src/cuda/flash_attn/cutlass/cutlass/detail/collective/mixed_input_utils.hpp:493
↓ 16 callers
Function
get_nonswizzle_portion
src/cuda/flash_attn/cutlass/cute/swizzle_layout.hpp:152
↓ 16 callers
Function
imag
src/cuda/flash_attn/cutlass/cutlass/complex.h:404
↓ 16 callers
Function
is_awq_scaled_tensor
Check if a tensor should have AWQ per-channel scaling applied.
python/krasis/awq_calibrate.py:1002
↓ 16 callers
Method
load_init
src/cuda/flash_attn/cutlass/cutlass/gemm/collective/sm100_mma_warpspecialized.hpp:495
↓ 16 callers
Function
load_with_byte_offset
Loads a fragment from memory with additional logical offset
src/cuda/flash_attn/cutlass/cutlass/gemm/warp/mma_complex_tensor_op_tile_iterator_sm80.h:253
↓ 16 callers
Function
make_tiled_copy_B
src/cuda/flash_attn/cutlass/cute/atom/copy_atom.hpp:461
↓ 16 callers
Method
mma
src/cuda/flash_attn/cutlass/cutlass/gemm/collective/sm100_mma_warpspecialized.hpp:648
↓ 16 callers
Method
stride
Returns the stride of the layout
src/cuda/flash_attn/cutlass/cutlass/layout/tensor_op_multiplicand_sm80.h:127
↓ 16 callers
Function
synclog_emit_tma_load
src/cuda/flash_attn/cutlass/cutlass/arch/synclog.hpp:813
↓ 16 callers
Function
thr_size
src/cuda/flash_attn/cutlass/cute/atom/mma_atom.hpp:690
↓ 16 callers
Function
tile_shape
src/cuda/flash_attn/cutlass/cute/atom/mma_atom.hpp:672
↓ 15 callers
Function
RematerializeBlockIdxZ
Helper to rematerialize block Idx. Reduces register liveness.
src/cuda/flash_attn/cutlass/cutlass/gemm/threadblock/index_remat.h:78
↓ 15 callers
Function
_emit_real_model_timing
(payload: dict)
python/krasis/attention_backend.py:370
↓ 15 callers
Function
_fused_add_rmsnorm
In-place fused add + RMSNorm. hidden = RMSNorm(hidden + residual, weight, eps) residual = hidden + residual (before norm)
python/krasis/layer.py:38
↓ 15 callers
Method
_message_screen
(self, title: str, lines: List[str], *, wait: bool = True)
python/krasis/launcher.py:1779
↓ 15 callers
Function
_pass
(msg: str)
tests/test_network.py:36
↓ 15 callers
Function
_utc_now
()
python/krasis/hqq_self_calibrate.py:125
↓ 15 callers
Function
assert_raises_contains
(fn, text: str)
tests/test_hqq_cache_profile.py:89
↓ 15 callers
Function
canonical_lane_idx
Returns a lane index in the warp. The threads in warp may not be convergent
src/cuda/flash_attn/cutlass/cutlass/cutlass.h:114
↓ 15 callers
Function
ceil_div
src/cuda/flash_attn/cutlass/cute/layout.hpp:1608
↓ 15 callers
Function
check_cuda_status
src/cuda/flash_attn/cutlass/cutlass/experimental/distributed/device/detail.hpp:46
↓ 15 callers
Function
composition
src/cuda/flash_attn/cutlass/cute/swizzle_layout.hpp:299
↓ 15 callers
Function
construct
src/cuda/flash_attn/cutlass/cute/algorithm/tuple_algorithms.hpp:626
↓ 15 callers
Method
count
src/cuda/flash_attn/cutlass/cutlass/pipeline/sm90_pipeline.hpp:198
↓ 15 callers
Function
cp_async_fence
Establishes an ordering w.r.t previously issued cp.async instructions. Does not block.
src/cuda/flash_attn/cutlass/cute/arch/copy_sm80.hpp:162
↓ 15 callers
Function
div_ceil
src/cuda/marlin/marlin_vendor_common.h:86
↓ 15 callers
Function
fold
src/cuda/flash_attn/cutlass/cute/algorithm/tuple_algorithms.hpp:387
↓ 15 callers
Function
launch_dependent_grids
Issuing the launch_dependents instruction hints a dependent kernel to launch earlier launch_dependents doesn't impact the functionality but the perfor
src/cuda/flash_attn/cutlass/cutlass/arch/grid_dependency_control.h:78
↓ 15 callers
Function
load_with_byte_offset
Loads a fragment from memory with additional logical offset
src/cuda/flash_attn/cutlass/cutlass/gemm/warp/scale_bias_tile_iterator.h:258
↓ 15 callers
Function
load_with_pointer_offset
Loads a fragment from memory with additional logical offset
src/cuda/flash_attn/cutlass/cutlass/gemm/warp/mma_tensor_op_tile_iterator.h:419
↓ 15 callers
Function
max_common_vector
src/cuda/flash_attn/cutlass/cute/layout.hpp:1409
↓ 15 callers
Method
num_moe_layers
Number of MoE layers loaded.
src/moe.rs:2067
↓ 15 callers
Method
partition_fragment_B
src/cuda/flash_attn/cutlass/cute/atom/mma_atom.hpp:560
↓ 15 callers
Function
partition_shape_A
src/cuda/flash_attn/cutlass/cute/atom/mma_atom.hpp:634
↓ 15 callers
Function
pipeline_check_is_producer
src/cuda/flash_attn/cutlass/cutlass/pipeline/sm90_pipeline.hpp:64
↓ 15 callers
Function
prepend
src/cuda/flash_attn/cutlass/cute/algorithm/tuple_algorithms.hpp:816
↓ 15 callers
Method
store_tail
src/cuda/flash_attn/cutlass/cutlass/epilogue/collective/detail.hpp:476
↓ 15 callers
Function
store_with_pointer_offset
Stores a fragment to memory with additional pointer offset
src/cuda/flash_attn/cutlass/cutlass/gemm/warp/mma_tensor_op_tile_iterator.h:4636
← previous
next →
301–400 of 12,380, ranked by callers