MCPcopy Create free account

hub / github.com/zai-org/CodeGeeX / functions

Functions1,098 in github.com/zai-org/CodeGeeX

↓ 2 callersFunctionget_virtual_pipeline_model_parallel_rank
Return the virtual pipeline-parallel rank.
codegeex/megatron/mpu/initialize.py:327
↓ 2 callersFunctionget_virtual_pipeline_model_parallel_world_size
Return the virtual pipeline-parallel world size.
codegeex/megatron/mpu/initialize.py:339
↓ 2 callersMethodindex
(self, sym: str)
codegeex/mindspore/src/code_tokenizer.py:112
↓ 2 callersFunctionis_code_generation_finished
Checks whether the generated code is finished.
codegeex/benchmark/utils.py:115
↓ 2 callersMethodis_finished
(self)
codegeex/megatron/code_generation_utils.py:734
↓ 2 callersFunctionis_start_piece
Check if the current word piece is the starting piece (BERT).
codegeex/megatron/data/dataset_utils.py:163
↓ 2 callersMethodload_state_dict
Customized load.
codegeex/megatron/model/codegeex_model.py:108
↓ 2 callersFunctionmodel_provider
Build the model.
codegeex/megatron/inference.py:18
↓ 2 callersMethodpad_seq
(self, prompt_tokens: List[int], code_tokens: List[int], extra: dict = None)
codegeex/data/processor.py:34
↓ 2 callersFunctionparallel_lm_logits
LM logits using word embedding weights.
codegeex/megatron/model/language_model.py:46
↓ 2 callersFunctionpretrain
Main training program. This function will run the followings in the order provided: 1) initialize Megatron. 2) setup model, optim
codegeex/megatron/training.py:77
↓ 2 callersFunctionprocess_humaneval_test
(sample, problems, example_test=False)
codegeex/benchmark/evaluate_humaneval_x.py:27
↓ 2 callersFunctionprocess_humaneval_test
(sample, problems, example_test=False)
codegeex/benchmark/humaneval-x/evaluate_humaneval_x.py:27
↓ 2 callersMethodread_data
(self, path)
codegeex/megatron/data/indexed_dataset.py:177
↓ 2 callersMethodreset
Set to the initial state (no tracker).
codegeex/megatron/mpu/random.py:154
↓ 2 callersFunctionrun_generation_distributed
(model)
codegeex/megatron/inference.py:35
↓ 2 callersFunctionsampler
Convert the log_probs to probability
codegeex/mindspore/src/generate.py:38
↓ 2 callersFunctionscatter_to_tensor_model_parallel_region
(input_)
codegeex/megatron/mpu/mappings.py:159
↓ 2 callersMethodset_input_tensor
See megatron.model.transformer.set_input_tensor()
codegeex/megatron/model/codegeex_model.py:44
↓ 2 callersFunctionset_weight_decay
Set weight decay coefficient, zero for bias and layernorm, 1e-1 for rest
codegeex/mindspore/train.py:59
↓ 2 callersMethodstate_dict_for_save_checkpoint
(self, destination=None, prefix='', keep_vars=False)
codegeex/megatron/model/codegeex_model.py:99
↓ 2 callersMethodstate_dict_for_save_checkpoint
( self, destination=None, prefix="", keep_vars=False )
codegeex/megatron/model/module.py:191
↓ 2 callersMethodstring
(self, idx: int)
codegeex/mindspore/src/code_tokenizer.py:115
↓ 2 callersFunctiontop_k_logits
This function has been mostly taken from huggingface conversational ai code at https://medium.com/huggingface/how-to-build-a-state-of-the-
codegeex/megatron/code_generation_utils.py:75
↓ 2 callersFunctiontopk_fun
Get topk
codegeex/mindspore/src/generate.py:26
↓ 2 callersFunctiontopk_fun
Get topk
codegeex/mindspore/src/generate_humaneval.py:63
↓ 2 callersFunctiontopk_fun
Get topk
codegeex/mindspore/src/generate_finetune.py:28
↓ 2 callersMethodword_embeddings_weight
(self)
codegeex/megatron/model/module.py:50
↓ 1 callersFunctionWalkDict
(x)
codegeex/paddle/pt_to_pdparams.py:15
↓ 1 callersMethod__init__
(self, num_tokentypes=0, parallel_output=False)
codegeex/megatron/model/codegeex_model.py:30
↓ 1 callersMethod__init__
(self, module, args)
codegeex/megatron/model/module.py:160
↓ 1 callersMethod__init__
( self, optimizer, clip_grad, log_num_zeros_in_grad, params_have_main_grad )
codegeex/megatron/optimizer/optimizer.py:454
↓ 1 callersMethod__init__
( self, tokenize: Callable, pad_token: int, keep_order: bool = False,
codegeex/data/processor.py:89
↓ 1 callersMethod__init__
(self, dataset, seq_len, eod_id)
codegeex/mindspore/src/sat_dataset.py:57
↓ 1 callersMethod__init__
( self, network, optimizer, scale_update_cell=None,
codegeex/mindspore/src/pangu_alpha_wrapcell_finetune.py:107
↓ 1 callersMethod__init__
(self, data_length)
codegeex/mindspore/src/metrics.py:31
↓ 1 callersMethod__init__
( self, name, dataset_size=-1, local_rank=0, rank_
codegeex/mindspore/src/callbacks.py:37
↓ 1 callersMethod__init__
( self, network, optimizer, scale_update_cell=None,
codegeex/mindspore/src/pangu_alpha_wrapcell.py:107
↓ 1 callersFunction_add_activation_checkpoint_args
(parser)
codegeex/megatron/arguments.py:1520
↓ 1 callersFunction_add_autoresume_args
(parser)
codegeex/megatron/arguments.py:1298
↓ 1 callersFunction_add_biencoder_args
(parser)
codegeex/megatron/arguments.py:1316
↓ 1 callersFunction_add_checkpointing_args
(parser)
codegeex/megatron/arguments.py:898
↓ 1 callersFunction_add_data_args
(parser)
codegeex/megatron/arguments.py:1152
↓ 1 callersFunction_add_distributed_args
(parser)
codegeex/megatron/arguments.py:1040
↓ 1 callersFunction_add_inference_args
(parser)
codegeex/megatron/arguments.py:773
↓ 1 callersFunction_add_initialization_args
(parser)
codegeex/megatron/arguments.py:748
↓ 1 callersFunction_add_learning_rate_args
(parser)
codegeex/megatron/arguments.py:806
↓ 1 callersFunction_add_logging_args
(parser)
codegeex/megatron/arguments.py:426
↓ 1 callersFunction_add_memoryopt_args
Memory optimization arguments.
codegeex/megatron/arguments.py:1485
↓ 1 callersFunction_add_mixed_precision_args
(parser)
codegeex/megatron/arguments.py:973
↓ 1 callersFunction_add_network_size_args
(parser)
codegeex/megatron/arguments.py:319
↓ 1 callersFunction_add_regularization_args
(parser)
codegeex/megatron/arguments.py:495
↓ 1 callersFunction_add_training_args
(parser)
codegeex/megatron/arguments.py:589
↓ 1 callersFunction_add_validation_args
(parser)
codegeex/megatron/arguments.py:1128
↓ 1 callersFunction_add_vit_args
(parser)
codegeex/megatron/arguments.py:1425
↓ 1 callersFunction_add_zero_args
Text generate arguments.
codegeex/megatron/arguments.py:1453
↓ 1 callersFunction_build_doc_idx
Build an array with length = number-of-epochs * number-of-dcuments. Each index is mapped to a corresponding document.
codegeex/megatron/data/prompt_dataset.py:319
↓ 1 callersFunction_build_index_mappings
Build index mappings. We only have to build doc-idx in prompt dataset. Args: name: name of the dataset. data_prefix: prefix o
codegeex/megatron/data/prompt_dataset.py:253
↓ 1 callersFunction_build_key_size_numel_dictionaries
Build the size on rank 0 and broadcast.
codegeex/megatron/mpu/data.py:36
↓ 1 callersFunction_build_num_microbatches_calculator
(args)
codegeex/megatron/global_vars.py:107
↓ 1 callersFunction_check_arg_is_not_none
(args, arg)
codegeex/megatron/arguments.py:315
↓ 1 callersFunction_check_data_types
Check that all the keys have the same target data type.
codegeex/megatron/mpu/data.py:26
↓ 1 callersFunction_check_dynamic_format
check dynamic format branch
codegeex/mindspore/scripts/layer_norm_x_backprop_v2.py:87
↓ 1 callersFunction_check_param_value
Check the type of inputs.
codegeex/mindspore/src/adam.py:53
↓ 1 callersFunction_check_params
check parameters including shape_dy, shape_x, shape_var, shape_mean, shape_gamma, dtype and kernel_name Parameters ---------- pa
codegeex/mindspore/scripts/layer_norm_x_backprop_v2.py:224
↓ 1 callersFunction_check_shape
check parameters including shape_dy, shape_x, shape_var, shape_mean and shape_gamma Parameters ---------- params_map: dict
codegeex/mindspore/scripts/layer_norm_x_backprop_v2.py:247
↓ 1 callersFunction_check_shape_and_dtype
()
codegeex/mindspore/scripts/layer_norm.py:337
↓ 1 callersFunction_check_shape_gamma
check if parameter shape_gamma meets the requirements of function Parameters ---------- shape_x: list or tuple shape of x
codegeex/mindspore/scripts/layer_norm_x_backprop_v2.py:325
↓ 1 callersFunction_check_shape_mean
check if parameter shape_mean meets the requirements of function Parameters ---------- shape_x: list or tuple shape of x
codegeex/mindspore/scripts/layer_norm_x_backprop_v2.py:285
↓ 1 callersFunction_check_vector_to_cube
judge case using cube to handle reducesum only supported follow case in Ascend910 and Ascend710: ori_shape: ((batch), m, 1024(768)),
codegeex/mindspore/scripts/layer_norm.py:330
↓ 1 callersMethod_checkpointed_forward
Forward method with activation checkpointing.
codegeex/megatron/model/transformer.py:953
↓ 1 callersMethod_copy_main_params_to_model_params
(self)
codegeex/megatron/optimizer/optimizer.py:343
↓ 1 callersMethod_copy_model_grads_to_main_grads
(self)
codegeex/megatron/optimizer/optimizer.py:286
↓ 1 callersMethod_copy_model_params_to_main_params
(self)
codegeex/megatron/optimizer/optimizer.py:350
↓ 1 callersFunction_get_data_gm
get placeholders of data_dy, data_x, data_variance, data_mean and data_gamma Parameters ---------- shapes: dict {"shape_dy":
codegeex/mindspore/scripts/layer_norm_x_backprop_v2.py:398
↓ 1 callersMethod_get_layer
(self, layer_number)
codegeex/torch/codegeex_model.py:608
↓ 1 callersMethod_get_layer
(self, layer_number)
codegeex/oneflow/codegeex_model.py:701
↓ 1 callersMethod_get_layer
(self, layer_number)
codegeex/paddle/codegeex_model.py:607
↓ 1 callersMethod_get_layer_index
(self, layer_number)
codegeex/torch/codegeex_model.py:605
↓ 1 callersMethod_get_layer_index
(self, layer_number)
codegeex/megatron/model/transformer.py:943
↓ 1 callersMethod_get_layer_index
(self, layer_number)
codegeex/oneflow/codegeex_model.py:698
↓ 1 callersMethod_get_layer_index
(self, layer_number)
codegeex/paddle/codegeex_model.py:604
↓ 1 callersFunction_get_model_parallel_group
Calculate the communication group of model parallel dim in one pipeline stage
codegeex/mindspore/src/utils.py:98
↓ 1 callersFunction_get_params
compute parameters including param_axis, reduce_axis and mean_num Parameters ---------- shape_x: list or tuple shape of x
codegeex/mindspore/scripts/layer_norm_x_backprop_v2.py:426
↓ 1 callersFunction_get_params_for_weight_decay_optimization
Divide params into with-weight-decay and without-weight-decay groups. Layernorms and baises will have no weight decay but the rest will.
codegeex/megatron/optimizer/__init__.py:26
↓ 1 callersFunction_get_pd_mean
compute pd_mean according to reduce_axis, pd_xl, pd_var, var_elta_2 and sub_x_mean Parameters ---------- params: dict {"
codegeex/mindspore/scripts/layer_norm_x_backprop_v2.py:561
↓ 1 callersFunction_get_pd_mean_nz
compute pd_mean according to reduce_axis, pd_xl, pd_var, var_elta_2 and sub_x_mean
codegeex/mindspore/scripts/layer_norm_x_backprop_v2.py:907
↓ 1 callersFunction_get_pd_var
compute pd_var according to data_x, data_mean, reduce_axis and pd_xl Parameters ---------- data: dict placeholders after cas
codegeex/mindspore/scripts/layer_norm_x_backprop_v2.py:519
↓ 1 callersFunction_get_pd_var_front
compute front part of pd_var according to data_variance Parameters ---------- data: dict placeholders after cast cast_dt
codegeex/mindspore/scripts/layer_norm_x_backprop_v2.py:491
↓ 1 callersFunction_get_pd_var_front_nz
compute front part of pd_var according to data_variance
codegeex/mindspore/scripts/layer_norm_x_backprop_v2.py:874
↓ 1 callersFunction_get_pd_var_nz
compute pd_var according to data_x, data_mean, reduce_axis and pd_xl
codegeex/mindspore/scripts/layer_norm_x_backprop_v2.py:889
↓ 1 callersFunction_get_pd_x
compute pd_x, res_for_gamma according to data, params and shape_x `pd_x = pd_xl * np.power((data_variance + EPSLON), (-0.5))`
codegeex/mindspore/scripts/layer_norm_x_backprop_v2.py:600
↓ 1 callersFunction_get_pd_x_nz
compute pd_x according to data, params and shape_x
codegeex/mindspore/scripts/layer_norm_x_backprop_v2.py:920
↓ 1 callersFunction_get_pd_xl
compute pd_xl according to data_dy, data_gamma and shape_x Parameters ---------- data: dict placeholders after cast shap
codegeex/mindspore/scripts/layer_norm_x_backprop_v2.py:469
↓ 1 callersFunction_get_pd_xl_nz
compute pd_xl according to data_dy, data_gamma and shape_x
codegeex/mindspore/scripts/layer_norm_x_backprop_v2.py:863
↓ 1 callersFunction_get_pds
get params and data, compute pd_x, pd_gamma, pd_beta. Parameters ---------- data_dy: TVM tensor the placeholder of dy input
codegeex/mindspore/scripts/layer_norm_x_backprop_v2.py:688
↓ 1 callersFunction_get_pds_nz
get params and data, compute pd_x, pd_gamma, pd_beta.
codegeex/mindspore/scripts/layer_norm_x_backprop_v2.py:961
↓ 1 callersFunction_get_pipeline_group
Calculate the communication group between all pipeline stages
codegeex/mindspore/src/utils.py:118
↓ 1 callersMethod_get_pointers
(sizes)
codegeex/megatron/data/indexed_dataset.py:373
↓ 1 callersFunction_get_res
compute pd_x, pd_gamma, pd_beta according to data, params and shape_x Parameters ---------- data: dict placeholders after ca
codegeex/mindspore/scripts/layer_norm_x_backprop_v2.py:656
← previousnext →201–300 of 1,098, ranked by callers