Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/zai-org/CodeGeeX
/ functions
Functions
1,098 in github.com/zai-org/CodeGeeX
⨍
Functions
1,098
◇
Types & classes
154
↳
Endpoints
1
Function
reset_checkpointed_activations_memory_buffer
Reset the memory used for checkpointing.
codegeex/megatron/mpu/random.py:72
Method
save_vocabulary
Save the tokenizer vocabulary and merge files to a directory.
codegeex/megatron/tokenizer/gpt2_tokenization.py:328
Method
scale
(self)
codegeex/megatron/optimizer/grad_scaler.py:31
Function
send_backward
Send tensor to previous rank in pipeline (backward send).
codegeex/megatron/p2p_communication.py:201
Function
send_backward_recv_backward
Batched recv from next rank and send to previous rank in pipeline.
codegeex/megatron/p2p_communication.py:267
Function
send_backward_recv_forward
Batched send and recv with previous rank in pipeline.
codegeex/megatron/p2p_communication.py:234
Function
send_forward
Send tensor to next rank in pipeline (forward send).
codegeex/megatron/p2p_communication.py:186
Function
send_forward_backward_recv_forward_backward
Batched send and recv with previous and next ranks in pipeline.
codegeex/megatron/p2p_communication.py:282
Function
send_forward_recv_backward
Batched send and recv with next rank in pipeline.
codegeex/megatron/p2p_communication.py:216
Function
send_forward_recv_forward
Batched recv from previous rank and send to next rank in pipeline.
codegeex/megatron/p2p_communication.py:252
Method
sep
(self)
codegeex/megatron/tokenizer/tokenizer.py:158
Function
server
()
codegeex/benchmark/humaneval-x/generate_humaneval_x.py:250
Function
server
()
codegeex/benchmark/humaneval-x/translate_humaneval_x.py:274
Function
set_defaults_if_not_set_tensor_model_parallel_attributes
(tensor)
codegeex/megatron/mpu/layers.py:65
Method
set_doc_idx
(self, doc_idx_)
codegeex/megatron/data/indexed_dataset.py:550
Method
set_input_tensor
See megatron.model.transformer.set_input_tensor()
codegeex/megatron/model/language_model.py:537
Method
set_input_tensor
Set input tensor to be used instead of forward()'s input. When doing pipeline parallelism the input from the previous stage comes fro
codegeex/megatron/model/transformer.py:977
Function
set_parallel_configure_for_layer
r""" Default setting for the pipeline is: `(layer_id + offset) // (layers / pipeline_stage)`. Args: network(Cell) - Repr
codegeex/mindspore/src/pangu_alpha.py:261
Function
set_parallel_configure_for_layer
r""" Default setting for the pipeline is: `(layer_id + offset) // (layers / pipeline_stage)`. Args: network(Cell) - Repr
codegeex/mindspore/src/pangu_alpha_fp16_predict.py:257
Function
set_pipeline_model_parallel_rank
Set pipeline model parallel rank.
codegeex/megatron/mpu/initialize.py:270
Function
set_pipeline_model_parallel_world_size
Set the pipeline model parallel size
codegeex/megatron/mpu/initialize.py:235
Method
set_state_dict
Customized load.
codegeex/paddle/codegeex_model.py:802
Method
set_state_dict
Customized load.
codegeex/paddle/codegeex_model.py:911
Method
set_state_dict
Customized load.
codegeex/paddle/codegeex_model.py:1005
Function
set_virtual_pipeline_model_parallel_rank
Set the virtual pipeline-parallel rank.
codegeex/megatron/mpu/initialize.py:333
Function
set_weight_decay
Set weight decay coefficient, zero for bias and layernorm, 1e-1 for rest
codegeex/mindspore/save_1p_ckpt_from_8p_ckpt.py:66
Function
signal_handler
(signum, frame)
codegeex/benchmark/execution.py:410
Method
sizes
(self)
codegeex/megatron/data/indexed_dataset.py:451
Method
sizes
(self)
codegeex/megatron/data/indexed_dataset.py:540
Function
split_train_val_test
(ds, split=[0.99, 0.01, 0.0], seed=None)
codegeex/mindspore/src/sat_dataset.py:239
Method
state_dict
(self, destination=None, prefix="", keep_vars=False)
codegeex/megatron/model/distributed.py:66
Method
state_dict
(self)
codegeex/megatron/optimizer/optimizer.py:116
Method
state_dict
(self)
codegeex/megatron/optimizer/optimizer.py:408
Method
state_dict
(self)
codegeex/megatron/optimizer/grad_scaler.py:43
Method
state_dict
(self)
codegeex/megatron/optimizer/grad_scaler.py:55
Method
state_dict
(self)
codegeex/megatron/optimizer/grad_scaler.py:122
Method
state_dict_for_save_checkpoint
( self, destination=None, prefix="", keep_vars=False )
codegeex/torch/codegeex_model.py:673
Method
state_dict_for_save_checkpoint
For easy load.
codegeex/torch/codegeex_model.py:792
Method
state_dict_for_save_checkpoint
For easy load.
codegeex/torch/codegeex_model.py:895
Method
state_dict_for_save_checkpoint
(self, destination=None, prefix='', keep_vars=False)
codegeex/torch/codegeex_model.py:997
Method
state_dict_for_save_checkpoint
( self, destination=None, prefix="", keep_vars=False )
codegeex/megatron/model/distributed.py:69
Method
state_dict_for_save_checkpoint
For easy load.
codegeex/megatron/model/language_model.py:391
Method
state_dict_for_save_checkpoint
For easy load.
codegeex/megatron/model/language_model.py:572
Method
state_dict_for_save_checkpoint
Use this function to override the state dict for saving checkpoints.
codegeex/megatron/model/module.py:43
Method
state_dict_for_save_checkpoint
( self, destination=None, prefix="", keep_vars=False )
codegeex/oneflow/codegeex_model.py:767
Method
state_dict_for_save_checkpoint
For easy load.
codegeex/oneflow/codegeex_model.py:884
Method
state_dict_for_save_checkpoint
For easy load.
codegeex/oneflow/codegeex_model.py:986
Method
state_dict_for_save_checkpoint
(self, destination=None, prefix='', keep_vars=False)
codegeex/oneflow/codegeex_model.py:1088
Method
state_dict_for_save_checkpoint
( self, destination=None, prefix="", keep_vars=False )
codegeex/paddle/codegeex_model.py:672
Method
state_dict_for_save_checkpoint
For easy load.
codegeex/paddle/codegeex_model.py:791
Method
state_dict_for_save_checkpoint
For easy load.
codegeex/paddle/codegeex_model.py:894
Method
state_dict_for_save_checkpoint
(self, destination=None, prefix='', keep_vars=False)
codegeex/paddle/codegeex_model.py:996
Method
step
(self)
codegeex/megatron/optimizer/optimizer.py:103
Method
step
(self)
codegeex/megatron/optimizer/optimizer.py:361
Method
step_end
Print loss after each step
codegeex/mindspore/src/callbacks.py:61
Method
step_end
step end
codegeex/mindspore/src/callbacks.py:123
Method
step_end
(self, run_context)
codegeex/mindspore/src/callbacks.py:175
Method
supports_prefetch
(self)
codegeex/megatron/data/indexed_dataset.py:229
Method
supports_prefetch
(self)
codegeex/megatron/data/indexed_dataset.py:240
Method
supports_prefetch
(self)
codegeex/megatron/data/indexed_dataset.py:554
Method
symbolic
(graph, input_)
codegeex/megatron/mpu/mappings.py:86
Method
symbolic
(graph, input_)
codegeex/megatron/mpu/mappings.py:102
Method
symbolic
(graph, input_)
codegeex/megatron/mpu/mappings.py:118
Method
symbolic
(graph, input_)
codegeex/megatron/mpu/mappings.py:134
Function
task_unit
task for each process
codegeex/mindspore/src/preprocess.py:145
Function
tensor_grad_scale
(scale, grad)
codegeex/mindspore/src/pangu_alpha_wrapcell_finetune.py:72
Function
tensor_grad_scale
(scale, grad)
codegeex/mindspore/src/pangu_alpha_wrapcell.py:72
Function
tensor_grad_scale_pipeline
(scale, grad, accu_grad)
codegeex/mindspore/src/pangu_alpha_wrapcell_finetune.py:77
Function
tensor_grad_scale_pipeline
(scale, grad, accu_grad)
codegeex/mindspore/src/pangu_alpha_wrapcell.py:77
Function
tensor_shard_grad_scale_pipeline
(scale, grad, accu_grad)
codegeex/mindspore/src/pangu_alpha_wrapcell_finetune.py:87
Function
tensor_shard_grad_scale_pipeline
(scale, grad, accu_grad)
codegeex/mindspore/src/pangu_alpha_wrapcell.py:87
Method
tokenize
(self, text)
codegeex/megatron/tokenizer/tokenizer.py:206
Method
tokenize
(self, text)
codegeex/megatron/tokenizer/tokenizer.py:231
Function
topk_fun
Get topk
codegeex/mindspore/src/generate_greedy.py:27
Function
train_valid_test_datasets_provider
Build train, valid, and test datasets.
codegeex/megatron/tools/finetune_codegeex.py:230
Function
train_valid_test_datasets_provider
Build train, valid, and test datasets.
codegeex/megatron/tools/pretrain_codegeex.py:178
Function
truncate_segments
Truncates a pair of sequences to a maximum sequence length.
codegeex/megatron/data/dataset_utils.py:113
Function
try_format_code
(code: str)
codegeex/data/process_pretrain_dataset.py:19
Function
unsafe_execute
(tmp_dir)
codegeex/benchmark/execution.py:57
Method
update
(self, consumed_samples, consistency_check)
codegeex/megatron/microbatches.py:82
Method
update
(self, found_inf)
codegeex/megatron/optimizer/grad_scaler.py:39
Method
update
(self, found_inf)
codegeex/megatron/optimizer/grad_scaler.py:52
Method
update
Update list of ppl
codegeex/mindspore/src/metrics.py:82
Function
valid_forward_step
Forward step.
codegeex/megatron/tools/finetune_codegeex.py:215
Function
valid_loss_func
(loss_mask, output_tensor)
codegeex/megatron/tools/finetune_codegeex.py:182
Method
vocab
Dictionary from vocab text token to id token.
codegeex/megatron/tokenizer/tokenizer.py:132
Method
vocab
(self)
codegeex/megatron/tokenizer/tokenizer.py:199
Method
vocab
(self)
codegeex/megatron/tokenizer/tokenizer.py:253
Function
vocab_parallel_cross_entropy
Helper function for the cross entropy.
codegeex/megatron/mpu/cross_entropy.py:113
Method
vocab_size
(self)
codegeex/megatron/tokenizer/tokenizer.py:127
Method
vocab_size
(self)
codegeex/megatron/tokenizer/tokenizer.py:195
Method
vocab_size
(self)
codegeex/megatron/tokenizer/tokenizer.py:257
Method
vocab_size
(self)
codegeex/mindspore/src/tokenization_jieba.py:49
Method
word_embeddings_weight
Easy accessory for the DeepSpeed pipeline engine to tie embeddings across stages.
codegeex/megatron/model/language_model.py:302
Method
word_embeddings_weight
Easy accessory for the DeepSpeed pipeline engine to tie embeddings across stages.
codegeex/megatron/model/language_model.py:476
Function
write_jsonl
Writes an iterable of dictionaries to jsonl
codegeex/data/data_utils.py:84
Method
zero_grad
(self, set_to_none=True)
codegeex/megatron/optimizer/optimizer.py:90
Method
zero_grad
We only need to zero the model related parameters, i.e., float16_groups & fp32_from_fp32_groups.
codegeex/megatron/optimizer/optimizer.py:273
← previous
1,001–1,098 of 1,098, ranked by callers