MCPcopy Create free account

hub / github.com/JinjieNi/MegaDLMs / functions

Functions4,219 in github.com/JinjieNi/MegaDLMs

↓ 1 callersFunctiontrain_valid_datasets_provider
Build train and validation dataset.
tasks/vision/segmentation/finetune_setr.py:21
↓ 1 callersFunctiontraining_log
Log training information such as losses, timing, ....
megatron/training/training_nan_skipping.py:979
↓ 1 callersFunctionunset_num_microbatches_calculator
Unset microbatches calculator. Useful for multiple runs. See `tests/unit_tests/ckpt_converter/test_ckpt_converter.py` for an example.
megatron/core/num_microbatches_calculator.py:54
↓ 1 callersMethoduntokenize
Returns the original text (with whitespace reinserted).
tasks/orqa/unsupervised/tokenizers.py:48
↓ 1 callersMethodunwrap
Returns the original object.
megatron/core/dist_checkpointing/mapping.py:514
↓ 1 callersFunctionupcycle_state_dict
Convert a dense model's state_dict to a MoE model's state_dict. This function facilitates the conversion of the state_dict from a dense mode
megatron/core/transformer/moe/upcycling_utils.py:137
↓ 1 callersMethodupdate
Update number of microbatches depending on batch size rampup.
megatron/core/num_microbatches_calculator.py:293
↓ 1 callersMethodupdate
Update number of microbatches. Args: consumed_samples (int): Number of samples consumed. consistency_check (bool): Op
megatron/core/num_microbatches_calculator.py:441
↓ 1 callersMethodupdate_center
Update center used for teacher output.
megatron/legacy/model/vision/dino.py:73
↓ 1 callersFunctionupdate_checkpoint
(input_dir: Path, output_dir: Path, overwrite_ok: bool = False)
tools/weights_conversion/utils/permute_qkv.py:60
↓ 1 callersFunctionupdate_chunk_counts
Set n_chunks_train & n_chunks sampled for each individual DB. Args: config (RetroPreprocessingConfig): Retro preprocessing config.
megatron/core/datasets/retro/db/build.py:396
↓ 1 callersMethodupdate_generation_status
Checks which prompts have reached an end condition We check which prompts have reached an end condition and set the corresponding fla
megatron/core/inference/text_generation_controllers/text_generation_controller.py:151
↓ 1 callersMethodupdate_packing_info_random_shrink
Upate the packing params due to the random shrink in difflm training.
megatron/core/models/difflm/gpt_model.py:339
↓ 1 callersMethodupdate_packing_info_shift_by_one
Upate the packing params due to the shift by one in difflm training (for convenience, we didn't modify the gpt dataset which shifts
megatron/core/models/difflm/gpt_model.py:362
↓ 1 callersFunctionupdate_train_iters
(args)
megatron/training/training_nan_skipping.py:498
↓ 1 callersFunctionurl_is_malformed
(url)
tools/openwebtext/blacklist_urls.py:219
↓ 1 callersMethoduse_varilen_data
(self, input_ids, varilen_prob=0.01)
megatron/core/models/difflm/gpt_model.py:269
↓ 1 callersFunctionvalidate
Validation method for validating saved neighbor IDs. Args: f (h5py.File): File containing save neighbor IDs.
megatron/core/datasets/retro/query/query.py:297
↓ 1 callersFunctionvalidate_integrity_and_strict_load
Validates sharding integrity and potential mismatches with the checkpoint. `validate_access_integrity` controls sharding integrity check (orthogo
megatron/core/dist_checkpointing/validation.py:126
↓ 1 callersMethodvalidate_metadata_integrity
Codifies the constraints on metadata attributes. Meeting those constraints is guaranteed when instantiating a ShardedTensor class wit
megatron/core/dist_checkpointing/mapping.py:94
↓ 1 callersMethodvalidate_metadata_integrity
(self)
megatron/core/dist_checkpointing/mapping.py:551
↓ 1 callersFunctionvalidate_yaml
(args, defaults={})
megatron/training/yaml_arguments.py:41
↓ 1 callersFunctionverify_and_get_config_attr_descs
(config_cls, strict_docstring_match=True)
tools/retro/config_utils.py:487
↓ 1 callersFunctionverify_step
(activation_sample_path, our_forward, our_model, base_forward, base_model, batch)
tools/weights_conversion/utils/verify_correctness_dlm.py:154
↓ 1 callersFunctionverify_transformers_version
()
tools/checkpoint/loader_mixtral_hf.py:61
↓ 1 callersFunctionverify_transformers_version
()
tools/checkpoint/loader_llama_mistral.py:44
↓ 1 callersFunctionwhite_space_fix
(text)
tools/retro/text_generation/evaluate.py:21
↓ 1 callersFunctionwhite_space_fix
(text)
tasks/orqa/unsupervised/qa_utils.py:163
↓ 1 callersFunctionwindow_reverse
Args: windows: (num_windows*B, window_size, window_size, C) window_size (int): Window size H (int): Height of image
megatron/legacy/model/vision/esvit_swin_backbone.py:59
↓ 1 callersFunctionwindow_reverse
Args: windows: (num_windows*B, window_size, window_size, C) window_size (int): Window size H (int): Height of image
megatron/legacy/model/vision/swin_backbone.py:54
↓ 1 callersFunctionwrite_fromscratch_model
( args, model_path, input_base_path, num_output_shards: int=2, norm_eps: float=1e-6, r
tools/weights_conversion/megatron_to_hf_te.py:95
↓ 1 callersFunctionwrite_json
(text, path)
tools/weights_conversion/megatron_to_hf_te.py:24
↓ 1 callersFunctionwrite_json
(text, path)
tools/checkpoint/loader_llama_mistral.py:68
↓ 1 callersFunctionwrite_predictions
(all_predictions, all_labels, all_uid, args)
tasks/ensemble_classifier.py:93
↓ 1 callersFunctionwrite_tokenizer
(args: Namespace)
tools/weights_conversion/megatron_to_hf_te.py:274
FunctionPYBIND11_MODULE
megatron/core/datasets/helpers.cpp:838
Method__call__
(self, tokens, position_ids, attention_mask)
tools/run_vlm_text_generation.py:183
Method__call__
(self, img)
megatron/legacy/data/vit_dataset.py:24
Method__call__
(self, img)
megatron/legacy/data/vit_dataset.py:43
Method__call__
(self, input)
megatron/legacy/data/vit_dataset.py:74
Method__call__
(self, input)
megatron/legacy/data/vit_dataset.py:140
Method__call__
(self, image)
megatron/legacy/data/vit_dataset.py:206
Method__call__
Define call method for ImageNetPolicy class.
megatron/legacy/data/autoaugment.py:104
Method__call__
Define call method for SubPolicy class.
megatron/legacy/data/autoaugment.py:311
Method__call__
Call timer with name and log level.
megatron/core/timers.py:186
Method__call__
Returns the value, the rank, and unit as a Tuple Returns: Tuple[float, int, str]: value, rank, unit
megatron/core/utils.py:687
Method__call__
Callable for the instance. Set context state, Useful when the context is used for cpu timers only when bdata=True Args:
megatron/core/utils.py:1358
Method__call__
(self, *args, **kwargs)
megatron/core/transformer/transformer_layer.py:401
Method__call__
Invocation of the forward methods. Note that self.inference_params is being modified by the forward step.
megatron/inference/text_generation/forward_step.py:41
Method__call__
Call function to perform photometric distortion on images. Args: results (dict): Result dict from loading pipeline. Return
tasks/vision/segmentation/transforms.py:96
Method__call__
(self, img, mask)
tasks/vision/segmentation/transforms.py:191
Method__call__
(self, img, mask)
tasks/vision/segmentation/transforms.py:244
Method__call__
(self, img, mask)
tasks/vision/segmentation/transforms.py:255
Method__call__
Args: img (PIL Image): Input image. Returns: PIL Image: Color jittered image.
tasks/vision/segmentation/transforms.py:422
Method__call__
args: y_true : 3-d ndarray in [batch_size, img_rows, img_cols] y_pred : 4-d ndarray in [batch_size, chs, img_rows, im
tasks/vision/segmentation/metrics.py:98
Method__call__
args: y_true : 4-d ndarray in [batch_size, chs, img_rows, img_cols] y_pred : 4-d ndarray in [batch_size, chs, img_row
tasks/vision/segmentation/metrics.py:145
Method__call__
args: y_true : 4-d ndarray in [batch_size, chs, img_rows, img_cols] y_pred : 4-d ndarray in [batch_size, chs, img_row
tasks/vision/segmentation/metrics.py:175
Method__call__
args: y_true : 4-d ndarray in [batch_size, chs, img_rows, img_cols] y_pred : 4-d ndarray in [batch_size, chs, img_row
tasks/vision/segmentation/metrics.py:216
Method__call__
args: y_true : 4-d ndarray in [batch_size, chs, img_rows, img_cols] y_pred : 4-d ndarray in [batch_size, chs, img_row
tasks/vision/segmentation/metrics.py:257
Method__call__
args: y_true : 4-d ndarray in [batch_size, chs, img_rows, img_cols] y_pred : 4-d ndarray in [batch_size, chs, img_row
tasks/vision/segmentation/metrics.py:306
Method__call__
args: y_true : 4-d ndarray in [batch_size, chs, img_rows, img_cols] y_pred : 4-d ndarray in [batch_size, chs, img_row
tasks/vision/segmentation/metrics.py:360
Method__call__
args: y_true : 4-d ndarray in [batch_size, channels, img_rows, img_cols] y_pred : 4-d ndarray in [batch_size, channel
tasks/vision/segmentation/metrics.py:401
Method__call__
args: y_true : 4-d ndarray in [batch_size, channels, img_rows, img_cols] y_pred : 4-d ndarray in [batch_size, channel
tasks/vision/segmentation/metrics.py:421
Method__call__
args: y_true : 4-d ndarray in [batch_size, channels, img_rows, img_cols] y_pred : 4-d ndarray in [batch_size, channel
tasks/vision/segmentation/metrics.py:455
Method__call__
args: y_true : 4-d ndarray in [batch_size, channels, img_rows, img_cols] y_pred : 4-d ndarray in [batch_size, channel
tasks/vision/segmentation/metrics.py:523
Method__call__
(self, img, mask)
tasks/vision/segmentation/data.py:25
Method__call__
(self, input)
tasks/vision/segmentation/data.py:54
Method__call__
(self, input)
tasks/vision/segmentation/data.py:63
Method__del__
Clean up the object
megatron/core/datasets/indexed_dataset.py:313
Method__del__
Clean up the object.
megatron/core/datasets/indexed_dataset.py:390
Method__del__
Clean up the object
megatron/core/datasets/indexed_dataset.py:501
Method__del__
Clean up the object
megatron/core/datasets/indexed_dataset.py:599
Method__del__
(self)
tests/unit_tests/transformer/moe/test_token_dispatcher.py:87
Method__del__
(self)
tasks/orqa/unsupervised/tokenizers.py:152
Method__enter__
Define context/instance entry Returns: StragglerDetector: the instance
megatron/core/utils.py:1349
Method__enter__
Make checkpoint directory.
tests/functional_tests/test_cases/common/ckpt_converter/__main__.py:40
Method__exit__
Define context/instance exit, calls the stop method Args: ex_type (Optional[Type[BaseException]]): Exception type ex_
megatron/core/utils.py:1372
Method__exit__
(self, type, value, tb)
megatron/training/dist_signal_handler.py:73
Method__exit__
Remove checkpoint directory.
tests/functional_tests/test_cases/common/ckpt_converter/__main__.py:48
Method__exit__
(self, exc_type, exc_val, exc_tb)
tests/unit_tests/dist_checkpointing/__init__.py:68
Function__getattr__
(name)
megatron/core/models/bert/bert_layer_specs.py:77
Method__getitem__
(self, key)
tools/checkpoint/schema_base.py:25
Method__getitem__
(self, idx)
tools/bert_embedding/dataset.py:39
Method__getitem__
(self, i)
tools/bert_embedding/embed.py:142
Method__getitem__
(self, i)
tools/bert_embedding/huggingface.py:119
Method__getitem__
(self, idx: int)
tools/retro/sft/dataset_conv.py:84
Method__getitem__
(self, idx: int)
tools/retro/sft/dataset_conv.py:118
Method__getitem__
Get an ICT example of a pseudo-query and the block of text from which it was extracted
megatron/legacy/data/ict_dataset.py:78
Method__getitem__
(self, idx)
megatron/legacy/data/orqa_wiki_dataset.py:150
Method__getitem__
(self, idx)
megatron/legacy/data/multimodal_dataset.py:41
Method__getitem__
Args: index (int): Index Returns: tuple: (sample, target) where target is class_index of the target class.
megatron/legacy/data/image_folder.py:207
Method__getitem__
Get the data associated with an indexed sample.
megatron/legacy/data/realm_dataset_utils.py:106
Method__getitem__
(self, idx)
megatron/legacy/data/data_samplers.py:124
Method__getitem__
Get the data associated with an indexed sample.
megatron/legacy/data/biencoder_dataset_utils.py:116
Method__getitem__
Return a sample that contains a dummy image, text sequence and the associated labels and cost and attention masks. Args: idx (int
megatron/core/datasets/multimodal_dataset.py:42
Method__getitem__
Abstract method implementation Args: idx (int): The index into the dataset Returns: Dict[str, Union[int, num
megatron/core/datasets/t5_dataset.py:224
Method__getitem__
(self, idx: int)
megatron/core/datasets/blended_dataset.py:93
Method__getitem__
Abstract method implementation Args: idx (int): The index into the dataset Returns: Dict[str, Union[int, num
megatron/core/datasets/bert_dataset.py:77
Method__getitem__
Abstract method implementation Args: idx (Optioal[int]): The index into the dataset Returns: Dict[str, torch
megatron/core/datasets/gpt_dataset.py:174
Method__getitem__
(self, idx: int)
megatron/core/datasets/gpt_dataset.py:741
← previousnext →2,001–2,100 of 4,219, ranked by callers