MCPcopy Create free account

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

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

Method__len__
(self)
codegeex/mindspore/src/sat_dataset.py:10
Method__len__
(self)
codegeex/mindspore/src/sat_dataset.py:38
Method__len__
(self)
codegeex/mindspore/src/sat_dataset.py:62
Method__len__
(self)
codegeex/mindspore/src/sat_dataset.py:100
Method__len__
(self)
codegeex/mindspore/src/sat_dataset.py:118
Method__len__
(self)
codegeex/mindspore/src/sat_dataset.py:158
Method__len__
(self)
codegeex/mindspore/src/sat_dataset.py:185
Method__len__
(self)
codegeex/mindspore/src/sat_dataset.py:214
Method__len__
(self)
codegeex/mindspore/src/sat_dataset.py:230
Method__len__
(self)
codegeex/mindspore/src/code_tokenizer.py:109
Method__len__
(self)
codegeex/mindspore/src/tokenization_jieba.py:52
Method__repr__
(self)
codegeex/megatron/code_generation_utils.py:625
Method__repr__
(self)
codegeex/megatron/code_generation_utils.py:731
Method__setstate__
(self, state)
codegeex/megatron/data/indexed_dataset.py:477
Method__str__
(self)
codegeex/mindspore/src/pangu_alpha_config.py:71
Function_apply_global_norm
(enable_grad_fp16, clip_norm, global_norm, grad)
codegeex/mindspore/src/utils.py:90
Function_bias_dropout_add
(x, bias, residual, prob)
codegeex/megatron/model/transformer.py:555
Function_clip_grad
Clip gradients. Inputs: clip_type (int): The way to clip, 0 for 'value', 1 for 'norm'. clip_value (float): Specifies how muc
codegeex/mindspore/src/pangu_alpha_wrapcell_finetune.py:37
Function_clip_grad
Clip gradients. Inputs: clip_type (int): The way to clip, 0 for 'value', 1 for 'norm'. clip_value (float): Specifies how muc
codegeex/mindspore/src/pangu_alpha_wrapcell.py:37
Function_compile_dependencies
()
codegeex/megatron/initialize.py:105
Method_get_buffer_type
(param)
codegeex/megatron/model/distributed.py:118
Function_get_data_nz
get placeholders of data_dy, data_x, data_variance, data_mean and data_gamma
codegeex/mindspore/scripts/layer_norm_x_backprop_v2.py:847
Method_get_param_groups
(self)
codegeex/megatron/optimizer/optimizer.py:136
Function_get_square_sum
(grad, value)
codegeex/mindspore/src/utils.py:80
Method_get_state
(self)
codegeex/megatron/optimizer/optimizer.py:125
Method_logits_helper
A wrapper to massage inputs/outputs from pipeline.
codegeex/megatron/model/codegeex_model.py:176
Method_set_param_groups
(self, value)
codegeex/megatron/optimizer/optimizer.py:139
Method_set_state
(self, value)
codegeex/megatron/optimizer/optimizer.py:128
Function_update_run_kernel
Update parameters by AdamWeightDecay op.
codegeex/mindspore/src/adam.py:36
Functionadd_checkpoint_callback_policy
r""" Add checkpoint policy to callback.
codegeex/mindspore/save_1p_ckpt_from_8p_ckpt.py:81
Functionadd_code_generate_args
Code generation arguments.
codegeex/benchmark/humaneval-x/translate_humaneval_x.py:19
Functionadd_code_generation_args
Code generation arguments.
codegeex/benchmark/humaneval-x/generate_humaneval_x.py:21
Functionadd_code_generation_args
Code generation arguments.
tests/test_inference_megatron.py:36
Methodadd_item
(self, tensor)
codegeex/megatron/data/indexed_dataset.py:571
Methodadd_tokentype_embeddings
Add token-type embedding. This function is provided so we can add token-type embeddings in case the pretrained model does not have it.
codegeex/megatron/model/language_model.py:164
Methodadd_tokentype_embeddings
Add token-type embedding. This function is provided so we can add token-type embeddings in case the pretrained model does not have it.
codegeex/megatron/model/language_model.py:360
Methodallreduce_gradients
(self)
codegeex/megatron/model/distributed.py:60
Functionattention_mask_func
(attention_scores, attention_mask)
codegeex/megatron/model/utils.py:41
Methodbackward
(ctx, grad_output)
codegeex/megatron/mpu/cross_entropy.py:92
Methodbackward
(ctx, grad_output)
codegeex/megatron/mpu/mappings.py:94
Methodbackward
(ctx, grad_output)
codegeex/megatron/mpu/mappings.py:110
Methodbackward
(ctx, grad_output)
codegeex/megatron/mpu/mappings.py:126
Methodbackward
(ctx, grad_output)
codegeex/megatron/mpu/mappings.py:142
Methodbackward
(ctx, grad_output: torch.Tensor)
codegeex/quantization/quantize.py:23
Functionbias_dropout_add_fused_inference
(x, bias, residual, prob)
codegeex/megatron/model/transformer.py:568
Functionbias_dropout_add_fused_train
(x, bias, residual, prob)
codegeex/megatron/model/transformer.py:562
Functionbroadcast_data
Broadcast data from rank zero of each model parallel group to the members of the same model parallel group. Arguments: keys: list of
codegeex/megatron/mpu/data.py:82
Methodbuild_layer
(layer_number)
codegeex/torch/codegeex_model.py:592
Methodbuild_layer
(layer_number)
codegeex/megatron/model/transformer.py:921
Methodbuild_layer
(layer_number)
codegeex/oneflow/codegeex_model.py:685
Methodbuild_layer
(layer_number)
codegeex/paddle/codegeex_model.py:591
Functioncb
()
codegeex/megatron/mpu/random.py:89
Functioncheck_correctness
Evaluates the functional correctness of a completion by running the test suite provided in the problem.
codegeex/benchmark/execution.py:44
Functioncheckpoint
Checkpoint a model or part of the model. This has been directly copied from torch.utils.checkpoint.
codegeex/megatron/mpu/random.py:339
Functioncleanup_text
Cleans up the generated code text.
codegeex/mindspore/src/generate_humaneval.py:37
Methodcls
(self)
codegeex/megatron/tokenizer/tokenizer.py:152
Functioncommand_exists
(cmd)
codegeex/megatron/tools/pretrain_codegeex.py:197
Functioncompile_helper
Compile helper function ar runtime. Make sure this is invoked on a single process.
codegeex/megatron/data/dataset_utils.py:66
Methodconstruct
( self, input_ids, input_position, init_reset, batch_valid_length )
codegeex/mindspore/src/pangu_alpha.py:92
Methodconstruct
r""" The forward process of the block.
codegeex/mindspore/src/pangu_alpha.py:144
Methodconstruct
(self, state, embed)
codegeex/mindspore/src/pangu_alpha.py:252
Methodconstruct
r"""forward pass of the model
codegeex/mindspore/src/pangu_alpha.py:388
Methodconstruct
(self, input_ids, input_position, attention_mask, init_reset=True, batch_valid_length=None)
codegeex/mindspore/src/pangu_alpha.py:488
Methodconstruct
r"""Forward process of the pangu alpha model
codegeex/mindspore/src/pangu_alpha.py:527
Methodconstruct
evaluation net
codegeex/mindspore/src/pangu_alpha.py:575
Methodconstruct
evaluation net
codegeex/mindspore/src/pangu_alpha.py:624
Methodconstruct
r"""Forward process of the pangu alpha model
codegeex/mindspore/src/pangu_alpha.py:673
Methodconstruct
Calculate global norm construct
codegeex/mindspore/src/utils.py:193
Methodconstruct
Clip grads by global norm construct
codegeex/mindspore/src/utils.py:223
Methodconstruct
dynamic learning rate
codegeex/mindspore/src/utils.py:261
Methodconstruct
Defines the computation performed.
codegeex/mindspore/src/pangu_alpha_wrapcell_finetune.py:130
Methodconstruct
Defines the computation performed.
codegeex/mindspore/src/pangu_alpha_wrapcell_finetune.py:221
Methodconstruct
Defines the computation performed.
codegeex/mindspore/src/pangu_alpha_wrapcell.py:130
Methodconstruct
Defines the computation performed.
codegeex/mindspore/src/pangu_alpha_wrapcell.py:221
Methodconstruct
( self, input_ids, input_position, init_reset, batch_valid_length )
codegeex/mindspore/src/pangu_alpha_fp16_predict.py:89
Methodconstruct
r""" The forward process of the block.
codegeex/mindspore/src/pangu_alpha_fp16_predict.py:140
Methodconstruct
(self, state, embed)
codegeex/mindspore/src/pangu_alpha_fp16_predict.py:248
Methodconstruct
r"""forward pass of the model
codegeex/mindspore/src/pangu_alpha_fp16_predict.py:383
Methodconstruct
(self, input_ids, input_position, attention_mask, init_reset=True, batch_valid_length=None)
codegeex/mindspore/src/pangu_alpha_fp16_predict.py:499
Methodconstruct
r"""Forward process of the pangu alpha model
codegeex/mindspore/src/pangu_alpha_fp16_predict.py:542
Methodconstruct
evaluation net
codegeex/mindspore/src/pangu_alpha_fp16_predict.py:590
Methodconstruct
AdamWeightDecayOp
codegeex/mindspore/src/adam.py:156
Methodconvert_ids_to_tokens
Converts a sequence of ids in BPE tokens using the vocab.
codegeex/megatron/tokenizer/gpt2_tokenization.py:307
Methodconvert_ids_to_tokens
(self, ids)
codegeex/mindspore/src/tokenization_jieba.py:68
Functioncopy_tensor_model_parallel_attributes
(destination_tensor, source_tensor)
codegeex/megatron/mpu/layers.py:74
Functioncreate_doc_idx
(sizes)
codegeex/megatron/data/indexed_dataset.py:140
Functioncreate_masked_lm_predictions
Creates the predictions for the masked LM objective. Note: Tokens here are vocab ids and not text tokens.
codegeex/megatron/data/dataset_utils.py:172
Functioncreate_tokens_and_tokentypes
Merge segments A and B, add [CLS] and [SEP] and build tokentypes.
codegeex/megatron/data/dataset_utils.py:133
Methodcustom
(start, end)
codegeex/megatron/model/transformer.py:956
Methodcustom_forward
(*inputs)
codegeex/megatron/model/transformer.py:957
Functiondataset_exists
(path, impl)
codegeex/megatron/data/indexed_dataset.py:83
Functiondestroy_model_parallel
Set the groups to none.
codegeex/megatron/mpu/initialize.py:396
Methoddetokenize
(self, token_ids)
codegeex/megatron/tokenizer/tokenizer.py:209
Methoddetokenize
(self, token_ids)
codegeex/megatron/tokenizer/tokenizer.py:238
Functiondicts_to_jsonl
Method saves list of dicts into jsonl file. :param data: (list) list of dicts to be stored, :param filename: (str) path to the output fil
codegeex/benchmark/execution.py:15
Methoddoc_idx
(self)
codegeex/megatron/data/indexed_dataset.py:455
Methoddoc_idx
(self)
codegeex/megatron/data/indexed_dataset.py:544
Functiondummy_handler
()
codegeex/megatron/schedules.py:113
Methodend_document
(self)
codegeex/megatron/data/indexed_dataset.py:312
Methodend_document
(self)
codegeex/megatron/data/indexed_dataset.py:576
← previousnext →701–800 of 1,098, ranked by callers