MCPcopy Create free account

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

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

Methodget_code
(self)
codegeex/megatron/code_generation_utils.py:628
Methodget_data
Return the data currently in use.
codegeex/megatron/memory.py:114
Functionget_data_parallel_world_size
Return world size for the data parallel group.
codegeex/megatron/mpu/initialize.py:386
Methodget_doc_idx
(self)
codegeex/megatron/data/indexed_dataset.py:547
Functionget_embedding_group
Get the embedding group the caller rank belongs to.
codegeex/megatron/mpu/initialize.py:223
Functionget_forward_backward_func
()
codegeex/megatron/schedules.py:31
Functionget_indexed_dataset_
(data_prefix, data_impl, skip_warmup)
codegeex/megatron/data/dataset_utils.py:429
Functionget_linear_layer
Simple linear layer with weight initialization.
codegeex/megatron/model/utils.py:47
Methodget_loss_scale
(self)
codegeex/megatron/optimizer/optimizer.py:281
Functionget_mem_buff
Get the memory buffer.
codegeex/megatron/memory.py:31
Functionget_model
( backend: str = "megatron", quantized: bool = False, )
codegeex/__init__.py:8
Functionget_model_parallel_group
Get the model parallel group the caller rank belongs to.
codegeex/megatron/mpu/initialize.py:195
Functionget_model_parallel_rank
()
codegeex/megatron/mpu/initialize.py:284
Functionget_model_parallel_world_size
()
codegeex/megatron/mpu/initialize.py:249
Methodget_next_buffer
(self)
codegeex/megatron/memory.py:145
Functionget_op_support_info
get_op_support_info
codegeex/mindspore/scripts/layer_norm_x_backprop_v2.py:36
Functionget_op_support_info
get_op_support_info
codegeex/mindspore/scripts/layer_norm.py:43
Functionget_pipeline_model_parallel_first_rank
()
codegeex/megatron/mpu/initialize.py:353
Functionget_pipeline_model_parallel_last_rank
()
codegeex/megatron/mpu/initialize.py:360
Functionget_pipeline_model_parallel_next_rank
()
codegeex/megatron/mpu/initialize.py:368
Functionget_pipeline_model_parallel_prev_rank
()
codegeex/megatron/mpu/initialize.py:377
Functionget_samples_mapping
Get a list that maps a sample index to a starting sentence index, end sentence index, and length
codegeex/megatron/data/dataset_utils.py:477
Functionget_token_stream
( model, tokenizer, seq_length, out_seq_length, context_tokens,
codegeex/oneflow/inference.py:158
Functionget_token_stream
( model, tokenizer, seq_length, out_seq_length, context_tokens,
codegeex/paddle/inference.py:158
Methodget_word_embedding_weight
(self)
codegeex/mindspore/src/pangu_alpha.py:105
Methodget_word_embedding_weight
(self)
codegeex/mindspore/src/pangu_alpha_fp16_predict.py:101
Functionhalf_conversion
(val)
codegeex/megatron/model/module.py:134
Functioninit_
(tensor)
codegeex/megatron/model/utils.py:25
Functioninit_checkpointed_activations_memory_buffer
Initializ the memory buffer for the checkpointed activations.
codegeex/megatron/mpu/random.py:44
Functioninitialize_model_parallel
Initialize model data parallel groups. Arguments: tensor_model_parallel_size: number of GPUs used to parallelize model tensor.
codegeex/megatron/mpu/initialize.py:54
Methodinitialize_word_embeddings
(self, init_method_normal)
codegeex/megatron/model/module.py:64
Functioninspect_result
( input_dir: str = None, input_file: str = None, output_dir: str = None, pass_
codegeex/benchmark/inspect_result.py:73
Methodinv_scale
(self)
codegeex/megatron/optimizer/grad_scaler.py:35
Methodinv_vocab
Dictionary from vocab id token to text token.
codegeex/megatron/tokenizer/tokenizer.py:138
Methodinv_vocab
(self)
codegeex/megatron/tokenizer/tokenizer.py:203
Methodinv_vocab
(self)
codegeex/megatron/tokenizer/tokenizer.py:249
Functionis_pipeline_first_stage
Return True if in the first pipeline model-parallel stage, False otherwise.
codegeex/megatron/mpu/initialize.py:299
Functionis_pipeline_last_stage
Return True if in the last pipeline model-parallel stage, False otherwise.
codegeex/megatron/mpu/initialize.py:310
Functionis_unitialized
Useful for code segments that may be accessed with or without mpu initialization
codegeex/megatron/mpu/initialize.py:49
Functionlayer_norm
layernorm operator interface implementation calculating: x, gamma, beta mean = np.mean(x, reduce_axis, keepdims=True) varian
codegeex/mindspore/scripts/layer_norm.py:726
Functionlayer_norm_x_backprop_v2
algorithm: layernorm_grad calculating: gradient of layernorm compute partial derivation of x, gamma and beta pd_xl
codegeex/mindspore/scripts/layer_norm_x_backprop_v2.py:1027
Functionload_biencoder_checkpoint
selectively load retrieval models for indexing/retrieving from saved checkpoints
codegeex/megatron/checkpointing.py:508
Functionload_deepspeed_state
(model)
codegeex/megatron/checkpointing.py:282
Methodload_embedding_from_ckpt
r"""load the weights from the checkpoint
codegeex/mindspore/src/pangu_alpha.py:427
Methodload_embedding_from_ckpt
r"""load the weights from the checkpoint
codegeex/mindspore/src/pangu_alpha_fp16_predict.py:430
Methodload_param
(path)
codegeex/mindspore/src/pangu_alpha.py:430
Methodload_param
(path)
codegeex/mindspore/src/pangu_alpha_fp16_predict.py:433
Methodload_state_dict
Customized load.
codegeex/torch/codegeex_model.py:803
Methodload_state_dict
Customized load.
codegeex/torch/codegeex_model.py:912
Methodload_state_dict
Customized load.
codegeex/torch/codegeex_model.py:1006
Methodload_state_dict
(self, state_dict, strict=True)
codegeex/megatron/model/distributed.py:76
Methodload_state_dict
Customized load.
codegeex/megatron/model/language_model.py:406
Methodload_state_dict
Customized load.
codegeex/megatron/model/language_model.py:593
Methodload_state_dict
(self, state_dict, strict=True)
codegeex/megatron/model/module.py:198
Methodload_state_dict
(self, state_dict)
codegeex/megatron/optimizer/optimizer.py:120
Methodload_state_dict
(self, state_dict)
codegeex/megatron/optimizer/optimizer.py:416
Methodload_state_dict
(self, state_dict)
codegeex/megatron/optimizer/grad_scaler.py:47
Methodload_state_dict
(self, state_dict)
codegeex/megatron/optimizer/grad_scaler.py:58
Methodload_state_dict
(self, state_dict)
codegeex/megatron/optimizer/grad_scaler.py:129
Methodload_state_dict
Customized load.
codegeex/oneflow/codegeex_model.py:895
Methodload_state_dict
Customized load.
codegeex/oneflow/codegeex_model.py:1003
Methodload_state_dict
Customized load.
codegeex/oneflow/codegeex_model.py:1097
Functionloss_func
(loss_mask, output_tensor)
codegeex/megatron/tools/pretrain_codegeex.py:152
Functionlru_cache
()
codegeex/megatron/tokenizer/gpt2_tokenization.py:33
Functionmain
Main program.
codegeex/benchmark/humaneval-x/generate_humaneval_x.py:202
Functionmain
Main program.
codegeex/benchmark/humaneval-x/translate_humaneval_x.py:228
Functionmain
( tokenizer_path: str, dataset_path: Union[str, List[str]], output_prefix: str, language: str
codegeex/data/process_pretrain_dataset.py:81
Methodmain
(String[] args)
api/codegeex-api-example-java/src/main/java/cn/aminer/codegeex/example/CodeGenerationExample.java:22
Functionmake_builder
(out_file, impl, vocab_size=None)
codegeex/megatron/data/indexed_dataset.py:55
Functionmake_dataset
(path, impl, skip_warmup=False)
codegeex/megatron/data/indexed_dataset.py:64
Methodmask
(self)
codegeex/megatron/tokenizer/tokenizer.py:176
Methodmerge_file_
(self, another_file)
codegeex/megatron/data/indexed_dataset.py:315
Methodmerge_file_
(self, another_file)
codegeex/megatron/data/indexed_dataset.py:579
Functionmodel_parallel_cuda_manual_seed
Initialize model parallel cuda seed. This function should be called after the model parallel is initialized. Also, no torch.cuda.manual_seed
codegeex/megatron/mpu/random.py:220
Functionmodel_parallel_is_initialized
Check if model and data parallel groups are initialized.
codegeex/megatron/mpu/initialize.py:184
Functionmodel_provider
Build the model.
codegeex/megatron/tools/finetune_codegeex.py:19
Functionmodel_provider
Build the model.
codegeex/megatron/tools/pretrain_codegeex.py:20
Functionmodel_provider
Build the model.
tests/test_inference_megatron.py:26
Methodnum_tokens
(self, index)
codegeex/megatron/data/indexed_dataset.py:216
Methodnumel_in_use
Return number of elements in use.
codegeex/megatron/memory.py:86
Functionop_select_format
function of selecting dynamic format Parameters ---------- input_dy : dict shape and dtype of input dy, only support float16
codegeex/mindspore/scripts/layer_norm_x_backprop_v2.py:100
Functionop_select_format
select format dynamically
codegeex/mindspore/scripts/layer_norm.py:121
Functionopenai_gelu
(x)
codegeex/megatron/model/utils.py:69
Functionpad_and_convert_to_numpy
Pad sequences and convert them to numpy.
codegeex/megatron/data/dataset_utils.py:396
Methodparam_hook
(*unused)
codegeex/megatron/model/distributed.py:166
Functionpredict
( prompt, lang, seed, out_seq_length, temperature, top_k,
deployment/server_gradio.py:108
Methodprefetch
(self, indices)
codegeex/megatron/data/indexed_dataset.py:243
Methodprint_average_usage
Print memory usage average over time. We would like this value to be as high as possible.
codegeex/megatron/memory.py:121
Functionprint_params_min_max_norm
Print min, max, and norm of all parameters.
codegeex/megatron/utils.py:108
Methodprocess_sample_
(self, sample)
codegeex/data/processor.py:75
Methodprocess_sample_
(self, sample)
codegeex/data/processor.py:152
Methodreadable
Returns True if the IO object can be read.
codegeex/benchmark/execution.py:453
Functionrebuild_tokenizer
(args)
codegeex/megatron/global_vars.py:125
Functionrecv_backward
Receive tensor from next rank in pipeline (backward receive).
codegeex/megatron/p2p_communication.py:168
Functionrecv_forward
Receive tensor from previous rank in pipeline (forward receive).
codegeex/megatron/p2p_communication.py:150
Methodreload_model_params
Refreshes any internal state from the current model parameters. Call whenever the parameters are changed outside of the optimizer. For
codegeex/megatron/optimizer/optimizer.py:107
Methodreload_model_params
(self)
codegeex/megatron/optimizer/optimizer.py:357
Methodreport
(self)
codegeex/data/processor.py:79
Methodreport
(self)
codegeex/data/processor.py:156
Methodreset
Reset the buffer start index to the beginning of the buffer.
codegeex/megatron/memory.py:78
← previousnext →901–1,000 of 1,098, ranked by callers