↓ 2 callersFunctionprint_progress(prefix, start_time, num_docs, num_fixed_text,
num_non_english_docs, chars_non_english_docs
tools/openwebtext/cleanup_dataset.py:17
↓ 2 callersFunctionreformat_prompt(query, neighbours, dataset_name, ft_neighbours, \
max_output_len, tokenizer, max_seq_leng
tools/retro/sft/dataset_conv.py:331
↓ 2 callersFunctionrepeat_kv This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
tools/weights_conversion/hf_configs/gptneox_1.7b_dlm/modeling_dlm.py:119
↓ 2 callersFunctionrepeat_kv This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
tools/weights_conversion/hf_configs/gptneox_1.7b_ar/modeling_ar.py:113
↓ 2 callersFunctionrepeat_kv This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
tools/weights_conversion/hf_configs/gpt2_1b_dlm/modeling_dlm.py:119
↓ 2 callersFunctionsetup_moe_model_and_optimizer(
seed,
tp,
pp,
ep,
initialize_fn=initialize_moe_model,
bf16=True,
dist_opt=True,
tests/unit_tests/dist_checkpointing/utils.py:192
↓ 2 callersFunctionwindow_partition Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
megatron/legacy/model/vision/esvit_swin_backbone.py:45
↓ 2 callersFunctionwindow_partition Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
megatron/legacy/model/vision/swin_backbone.py:39
↓ 1 callersMethod__init__(self, config, num_classes, finetune=False,
pre_process=True, post_process=True)
megatron/legacy/model/vision/classification.py:16