MCPcopy Create free account

hub / github.com/HazyResearch/HipKittens / types & classes

Types & classes190 in github.com/HazyResearch/HipKittens

↓ 3 callersClassMetaData
analysis/baselines/attn/triton_baseline_v02.py:34
↓ 2 callersClassIndexedDataset
Loader for IndexedDataset
training/llama/train/datamodules/datasets/indexed_dataset.py:136
↓ 1 callersClassBertSelfAttention
training/bert/models/base.py:6
↓ 1 callersClassBlock
training/llama/llama/models/block.py:18
↓ 1 callersClassCrossEntropyLoss
training/llama/train/losses/cross_entropy.py:9
↓ 1 callersClassCudaArrayWrapper
distributed-kernels/bf16_gemm/example.py:28
↓ 1 callersClassFaultTolerantDistributedSampler
training/llama/train/datamodules/fault_tolerant_sampler.py:64
↓ 1 callersClassGPT2Embeddings
training/llama/llama/models/embedding.py:8
↓ 1 callersClassGPTModel
training/llama/llama/models/gpt.py:174
↓ 1 callersClassIndexedCachedDataset
training/llama/train/datamodules/datasets/indexed_dataset.py:227
↓ 1 callersClassIndexedDatasetBuilder
training/llama/train/datamodules/datasets/indexed_dataset.py:279
↓ 1 callersClassLMDataset
training/llama/train/datamodules/datasets/lm_dataset.py:10
↓ 1 callersClassMMapIndexedDataset
training/llama/train/datamodules/datasets/indexed_dataset.py:351
↓ 1 callersClassMMapIndexedDatasetBuilder
training/llama/train/datamodules/datasets/indexed_dataset.py:571
↓ 1 callersClassMovieReviewDataset
training/bert/tasks.py:82
↓ 1 callersClassRandomFaultTolerantSampler
training/llama/train/datamodules/fault_tolerant_sampler.py:9
↓ 1 callersClassRotaryEmbedding
The rotary position embeddings from RoFormer_ (Su et. al). A crucial insight from the method is that the query and keys are transformed b
training/llama/llama/models/rotary.py:331
↓ 1 callersClassSHMArray
training/llama/train/datamodules/language_modeling_hf.py:29
↓ 1 callersClassSentimentClassifier
training/bert/tasks.py:154
↓ 1 callersClass_Writer
training/llama/train/datamodules/datasets/indexed_dataset.py:357
ClassAITERBertSelfAttention
Uses aiter.flash_attn_func when there is NO padding. Falls back to MHA-style expansion if num_key_value_heads < num_attention_heads (GQA).
training/bert/models/aiter.py:6
ClassAITERCrossAttention
Implement the scaled dot product attention with softmax. Arguments --------- softmax_scale: The temperature to use for the softmax att
training/llama/llama/models/attentions/aiter.py:55
ClassAITERSelfAttention
Implement the scaled dot product attention with softmax. Arguments --------- softmax_scale: The temperature to use for the softmax att
training/llama/llama/models/attentions/aiter.py:6
ClassApplyRotaryEmb
training/llama/llama/models/rotary.py:38
ClassApplyRotaryEmbKV_
training/llama/llama/models/rotary.py:267
ClassApplyRotaryEmbQKV_
training/llama/llama/models/rotary.py:194
ClassClassificationHead
Head for sentence-level classification tasks.
training/llama/llama/models/seq_common.py:71
ClassClassificationHeadDual
Head for sentence-level classification tasks.
training/llama/llama/models/seq_common.py:99
ClassClassificationHeadLinear
Head for sentence-level classification tasks.
training/llama/llama/models/seq_common.py:49
ClassConvMlp
MLP using 1x1 convs that keeps spatial dims
training/llama/llama/models/seq_common.py:321
ClassCrossAttention
Implement the scaled dot product attention with softmax. Arguments --------- softmax_scale: The temperature to use for the softmax att
training/llama/llama/models/attentions/base.py:61
ClassCrossEntropyLoss
training/llama/llama/ops/triton/cross_entropy.py:143
ClassDefaultCollateMixin
Controls collating in the DataLoader The CollateMixin classes instantiate a dataloader by separating collate arguments with the rest of the datal
training/llama/train/datamodules/base.py:23
ClassFlopCount
Counter the number of FLOPs used by the model
training/llama/train/callbacks/flop_count.py:14
ClassGPT2MixerConfig
training/llama/llama/models/gpt.py:20
ClassGPTLMHeadModel
training/llama/llama/models/gpt.py:279
ClassGPTPreTrainedModel
An abstract class to handle weights initialization and a simple interface for dowloading and loading pretrained models.
training/llama/llama/models/gpt.py:116
ClassGatedMlp
MLP as used in gMLP
training/llama/llama/models/seq_common.py:292
ClassGatedMlp
training/llama/llama/models/mlp.py:41
ClassGluMlp
MLP w/ GLU style gating See: https://arxiv.org/abs/1612.08083, https://arxiv.org/abs/2002.05202
training/llama/llama/models/seq_common.py:262
ClassHipAttnFunction
Inputs/outputs are BNHD (batch, seq, heads, dim), like your harness. Forward: O, L via tk_kernel_fwd.dispatch_fwd Backward: dQ,dK,dV vi
training/llama/llama/models/attentions/hipkittens.py:9
ClassHipCrossAttention
Implement the scaled dot product attention with softmax. Arguments --------- softmax_scale: The temperature to use for the softmax att
training/llama/llama/models/attentions/hipkittens.py:165
ClassHipKittensBertSelfAttention
Uses HipKittensFlashAttnFn when there is NO padding. Falls back to MHA-style expansion if num_key_value_heads < num_attention_heads (GQA).
training/bert/models/hipkittens.py:363
ClassHipKittensFlashAttnFn
Inputs/outputs are BNHD (batch, seq, heads, dim), like your harness. Forward: O, L via tk_kernel_fwd.dispatch_fwd Backward: dQ,dK,dV vi
training/bert/models/hipkittens.py:30
ClassHipSelfAttention
Implement the scaled dot product attention with softmax. Arguments --------- softmax_scale: The temperature to use for the softmax att
training/llama/llama/models/attentions/hipkittens.py:123
ClassImageResolutionCollateMixin
self.collate_fn(resolution, img_size) produces a collate function that resizes inputs to size img_size/resolution
training/llama/train/datamodules/base.py:129
ClassImageResolutionSequenceDataset
training/llama/train/datamodules/base.py:262
ClassIndex
training/llama/train/datamodules/datasets/indexed_dataset.py:352
ClassIrisInstance
Iris instance wrapper for Python
distributed-kernels/iris_py.cpp:46
ClassIrisTensor
Iris Tensor wrapper class
distributed-kernels/iris_py.cpp:11
ClassLMDataModule
training/llama/train/datamodules/language_modeling_hf.py:41
ClassLMHead
training/llama/llama/models/seq_common.py:134
ClassLayerNormFn
training/llama/llama/ops/triton/layer_norm.py:699
ClassLayerNormLinearFn
training/llama/llama/ops/triton/layer_norm.py:956
ClassLogConfusionMatrix
Generate confusion matrix every epoch and send it to wandb. Expects validation step to return predictions and targets.
training/llama/train/callbacks/wandb_callbacks.py:138
ClassLogF1PrecRecHeatmap
Generate f1, precision, recall heatmap every epoch and send it to wandb. Expects validation step to return predictions and targets.
training/llama/train/callbacks/wandb_callbacks.py:196
ClassLogImagePredictions
Logs a validation batch and their predictions to wandb. Example adapted from: https://wandb.ai/wandb/wandb-lightning/reports/Image-Classif
training/llama/train/callbacks/wandb_callbacks.py:259
ClassLoggingContext
training/llama/train/utils/utils.py:13
ClassLossScaleMonitor
Monitor the loss scale for AMP (fp16).
training/llama/train/callbacks/loss_scale_monitor.py:9
ClassMHA
Multi-head self-attention and cross-attention
training/llama/llama/models/mha.py:45
ClassMlp
MLP as used in Vision Transformer, MLP-Mixer and related networks
training/llama/llama/models/seq_common.py:207
ClassMlp
training/llama/llama/models/mlp.py:12
ClassMlpBig
MLP as used in Vision Transformer, MLP-Mixer and related networks
training/llama/llama/models/seq_common.py:236
ClassModelCheckpointMine
training/llama/train/callbacks/model_checkpoint.py:8
ClassNormMonitor
Monitor the scales of weights and gradients.
training/llama/train/callbacks/norm_monitor.py:22
ClassNumTokens
Keep track of how many tokens we've seen.
training/llama/train/metrics/num_tokens.py:9
ClassParamsLog
Log the number of parameters of the model
training/llama/train/callbacks/params_log.py:8
ClassPerplexity
r""" Perplexity measures how well a language model predicts a text sample. It's calculated as the average number of bits per word a model need
training/llama/train/metrics/perplexity.py:21
ClassPositionalEncoding
r"""Inject some information about the relative or absolute position of the tokens in the sequence. The positional encodings have the same dime
training/llama/llama/models/seq_common.py:161
ClassRMSNorm
training/llama/llama/ops/triton/layer_norm.py:926
ClassResolutionSequenceDataset
training/llama/train/datamodules/base.py:237
ClassSelfAttention
Implement the scaled dot product attention with softmax. Arguments --------- softmax_scale: The temperature to use for the softmax att
training/llama/llama/models/attentions/base.py:9
ClassSequenceDataset
training/llama/train/datamodules/base.py:163
ClassSequenceLMModel
training/llama/train/tasks/seq.py:177
ClassSequenceModel
training/llama/train/tasks/seq.py:20
ClassSequenceResolutionCollateMixin
self.collate_fn(resolution) produces a collate function that subsamples elements of the sequence
training/llama/train/datamodules/base.py:103
ClassSpeedMonitor
Monitor the speed of each step and each epoch.
training/llama/train/callbacks/speed_monitor.py:12
ClassTimingResult
Timing result structure
kernels/gemm/fp8fp32/profile_utils.cpp:5
ClassTimingResult
Timing result structure
kernels/torch_scaled/profile_utils.cpp:5
ClassTimmCosineLRScheduler
Wrap timm.scheduler.CosineLRScheduler so we can call scheduler.step() without passing in epoch. It supports resuming as well.
training/llama/train/optim/timm_lr_scheduler.py:8
ClassTimmMixup
Wrap timm.data.Mixup that avoids the assert that batch size must be even.
training/llama/train/datamodules/timm_mixup.py:7
ClassUploadCheckpointsAsArtifact
Upload checkpoints to wandb as an artifact, at the end of run.
training/llama/train/callbacks/wandb_callbacks.py:111
ClassUploadCodeAsArtifact
Upload all code files to wandb as an artifact, at the beginning of the run.
training/llama/train/callbacks/wandb_callbacks.py:64
ClassUploadPredsAsArtifact
Upload all code files to wandb as an artifact, at the beginning of the run.
training/llama/train/callbacks/wandb_callbacks.py:50
ClassWatchModel
Make wandb watch model at the beginning of the run.
training/llama/train/callbacks/wandb_callbacks.py:37
Class_attention
analysis/baselines/attn/triton_baseline_v01.py:440
Class_attention
analysis/baselines/attn/triton_baseline_v02.py:1084
Classattn_bwd_combined_globals
analysis/attn/bkwd/benchmark/attn_bkwd_causal_HBN.cpp:38
Classattn_bwd_combined_globals
analysis/attn/bkwd/benchmark/attn_bkwd_non_causal_8_warps.cpp:47
Classattn_bwd_combined_globals
analysis/attn/bkwd/benchmark/attn_bkwd_causal_HNB.cpp:38
Classattn_bwd_combined_globals
analysis/attn/bkwd/benchmark/attn_bkwd_non_causal_4_warps.cpp:47
Classattn_bwd_combined_globals
analysis/attn/bkwd/benchmark/attn_bkwd_non_causal_HBN.cpp:37
Classattn_bwd_combined_globals
analysis/attn/bkwd/benchmark/attn_bkwd_non_causal_HNB.cpp:37
Classattn_bwd_combined_globals
kernels/attn/gqa_backwards/attn_bkwd_non_causal.cpp:37
Classattn_bwd_combined_globals
kernels/attn/gqa_backwards/archive/GQA_bkwd_asm.cpp:24
Classattn_bwd_combined_globals
kernels/attn/gqa_backwards/archive/GQA_bkwd_4warps.cpp:34
Classattn_bwd_combined_globals
kernels/attn/gqa_backwards/archive/GQA_bkwd_8warps.cpp:34
Classattn_bwd_combined_globals
kernels/attn/gqa_causal_backwards/attn_bkwd_causal.cpp:38
Classattn_bwd_combined_globals
training/llama/csrc/attn_bkwd_causal_HBN.cpp:38
Classattn_bwd_combined_globals
training/llama/csrc/attn_bkwd_causal_HNB.cpp:38
next →1–100 of 190, ranked by callers