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
↓ 1 callers
Function
get_parameters_in_billions
(model)
codegeex/megatron/utils.py:202
↓ 1 callers
Function
get_shrink_embedding_gradient_alpha
(iteration)
codegeex/megatron/model/language_model.py:29
↓ 1 callers
Function
get_train_valid_test_split_
Get dataset splits from comma or '/' separated string list.
codegeex/megatron/data/dataset_utils.py:450
↓ 1 callers
Function
infer_dataset_impl
(path)
codegeex/megatron/data/indexed_dataset.py:37
↓ 1 callers
Function
initialize_wandb_experiment
Initialize wandb experiment.
codegeex/megatron/initialize.py:314
↓ 1 callers
Function
is_code_generation_finished
Checks whether the generated code text is finished.
codegeex/mindspore/src/generate_humaneval.py:25
↓ 1 callers
Method
is_in_use
Whether the current buffer hold on to any memory.
codegeex/megatron/memory.py:82
↓ 1 callers
Function
is_support_nz_non_aligned
is_support_nz_non_aligned
codegeex/mindspore/scripts/layer_norm.py:709
↓ 1 callers
Function
layer_norm_compute
DSL description of the layernorm operator's mathematical calculation process Parameters ---------- input_x: TVM tensor the p
codegeex/mindspore/scripts/layer_norm.py:571
↓ 1 callers
Function
layer_norm_compute_nz
DSL description of the layernorm operator's mathematical calculation process Parameters ---------- input_x: TVM tensor the p
codegeex/mindspore/scripts/layer_norm.py:433
↓ 1 callers
Function
layer_norm_x_back_nz_compute
DSL description of the layernorm_grad operator's mathematical calculation process Parameters ---------- data_dy: TVM tensor
codegeex/mindspore/scripts/layer_norm_x_backprop_v2.py:994
↓ 1 callers
Function
layer_norm_x_backprop_v2_compute
DSL description of the layernorm_grad operator's mathematical calculation process Parameters ---------- input_dy : dict
codegeex/mindspore/scripts/layer_norm_x_backprop_v2.py:748
↓ 1 callers
Function
loadAttentionLayerFromNp
(npCkptPath, transformer, layerID)
codegeex/megatron/mindspore_to_megatron.py:90
↓ 1 callers
Function
loadEmbeddingFromNp
(npCkptPath, languageModel, vocabSize=52224)
codegeex/megatron/mindspore_to_megatron.py:73
↓ 1 callers
Function
loadModelFromNp
(sd, args)
codegeex/megatron/mindspore_to_megatron.py:53
↓ 1 callers
Function
loadQueryLayerFromNp
(npCkptPath, transformer)
codegeex/megatron/mindspore_to_megatron.py:199
↓ 1 callers
Function
load_model
r""" The main function for load model
codegeex/mindspore/generation_batch.py:40
↓ 1 callers
Function
load_model
r""" The main function for load model
codegeex/mindspore/generation_humaneval.py:42
↓ 1 callers
Function
load_model
r""" The main function for load model
codegeex/mindspore/convertion_1p.py:40
↓ 1 callers
Function
load_model
r""" The main function for load model
codegeex/mindspore/generation.py:40
↓ 1 callers
Function
load_model
r""" The main function for load model
codegeex/mindspore/generation_values_1p.py:40
↓ 1 callers
Function
load_model
r""" The main function for load model
codegeex/mindspore/generation_values.py:39
↓ 1 callers
Function
load_model
r""" The main function for load model
codegeex/mindspore/generation_finetune.py:41
↓ 1 callers
Function
load_model
r""" The main function for load model
codegeex/mindspore/generation_1p.py:40
↓ 1 callers
Function
load_pretrain_dataset
(dataset_path: Union[str, List[str]])
codegeex/data/process_pretrain_dataset.py:32
↓ 1 callers
Function
loss_func
(loss_mask, output_tensor)
codegeex/megatron/tools/finetune_codegeex.py:157
↓ 1 callers
Function
main
()
codegeex/torch/get_ckpt_qkv.py:9
↓ 1 callers
Function
main
()
codegeex/megatron/mindspore_to_megatron.py:290
↓ 1 callers
Function
main
()
codegeex/megatron/convert_ckpt_parallel.py:48
↓ 1 callers
Function
main
()
codegeex/megatron/merge_ckpt_parallel.py:43
↓ 1 callers
Function
main
()
codegeex/megatron/tools/collect_env.py:7
↓ 1 callers
Function
main
()
codegeex/benchmark/gather_output.py:51
↓ 1 callers
Function
main
()
codegeex/benchmark/inspect_result.py:281
↓ 1 callers
Function
main
()
codegeex/benchmark/evaluate_humaneval_x.py:234
↓ 1 callers
Function
main
()
codegeex/benchmark/humaneval-x/evaluate_humaneval_x.py:234
↓ 1 callers
Function
main
(opt)
codegeex/paddle/pt_to_pdparams.py:47
↓ 1 callers
Function
main
Main process for predict or export model
codegeex/mindspore/generation_batch.py:298
↓ 1 callers
Function
main
Main process for predict or export model
codegeex/mindspore/generation_humaneval.py:245
↓ 1 callers
Function
main
Main process for predict or export model
codegeex/mindspore/convertion_1p.py:246
↓ 1 callers
Function
main
Main process for predict or export model
codegeex/mindspore/generation.py:249
↓ 1 callers
Function
main
Main process for predict or export model
codegeex/mindspore/generation_values_1p.py:243
↓ 1 callers
Function
main
Main process for predict or export model
codegeex/mindspore/generation_values.py:208
↓ 1 callers
Function
main
Main process for predict or export model
codegeex/mindspore/generation_finetune.py:285
↓ 1 callers
Function
main
Main process for predict or export model
codegeex/mindspore/generation_1p.py:242
↓ 1 callers
Function
main
()
tests/test_inference_paddle.py:129
↓ 1 callers
Function
main
()
tests/test_inference.py:118
↓ 1 callers
Function
main
()
tests/test_inference_oneflow.py:119
↓ 1 callers
Function
main
()
tests/test_inference_megatron.py:136
↓ 1 callers
Function
main
()
api/codegeex-api-example-python/generation_example.py:33
↓ 1 callers
Function
main
()
deployment/server_gradio.py:85
↓ 1 callers
Function
make_mmap_builder
(out_file, vocab_size=None)
codegeex/megatron/data/indexed_dataset.py:119
↓ 1 callers
Method
map_token
(self, token: Union[int, str])
codegeex/mindspore/src/code_tokenizer.py:118
↓ 1 callers
Method
map_tokens
(self, tokens)
codegeex/mindspore/src/code_tokenizer.py:123
↓ 1 callers
Function
maybe_copy
(attribute)
codegeex/megatron/mpu/layers.py:75
↓ 1 callers
Function
maybe_set
(attribute, value)
codegeex/megatron/mpu/layers.py:66
↓ 1 callers
Function
model_provider
Build the model.
tests/test_inference_paddle.py:15
↓ 1 callers
Function
model_provider
Build the model.
tests/test_inference.py:12
↓ 1 callers
Function
model_provider
Build the model.
tests/test_inference_oneflow.py:17
↓ 1 callers
Function
model_provider
Build the model.
deployment/server_gradio.py:14
↓ 1 callers
Function
nuclear_sample_tokens
(model, input_tokens, attention_mask, position_ids, contex
codegeex/megatron/code_generation_utils.py:600
↓ 1 callers
Function
nuclear_sampling
(logits: torch.FloatTensor, temperature: float, top_p: float = None, top_k: int = None)
codegeex/megatron/code_generation_utils.py:566
↓ 1 callers
Function
nz_non_aligned
DSL description of the layernorm operator's mathematical calculation process for non_aligned scene
codegeex/mindspore/scripts/layer_norm.py:354
↓ 1 callers
Function
package_file
package multiple files
codegeex/mindspore/src/preprocess.py:38
↓ 1 callers
Function
pad_batch
(batch, pad_id, seq_length)
codegeex/torch/inference.py:117
↓ 1 callers
Function
pad_batch
(batch, pad_id, seq_length)
codegeex/oneflow/inference.py:117
↓ 1 callers
Function
pad_batch
(batch, pad_id, seq_length)
codegeex/paddle/inference.py:117
↓ 1 callers
Method
pad_seq
(self, prompt_tokens: List[int], label: int, extra: dict = None)
codegeex/data/processor.py:114
↓ 1 callers
Function
parse_args
Parse all arguments.
codegeex/megatron/arguments.py:25
↓ 1 callers
Function
parse_opt
()
codegeex/paddle/pt_to_pdparams.py:29
↓ 1 callers
Method
performHttpPost
发起 HTTP POST 请求。 @param url 请求的URL @param payload 请求的JSON数据 @return 请求返回的内容,若出错则返回 null。
api/codegeex-api-example-java/src/main/java/cn/aminer/codegeex/example/CodeGenerationExample.java:50
↓ 1 callers
Function
process_extra_prompt
Processes the extra prompt.
codegeex/benchmark/utils.py:102
↓ 1 callers
Function
process_sample
( sample: Dict, language: str=None, mode: str="pretrain", )
codegeex/data/process_pretrain_dataset.py:49
↓ 1 callers
Method
process_sample
Process a sample.
codegeex/data/processor.py:48
↓ 1 callers
Method
process_sample
Process a sample.
codegeex/data/processor.py:128
↓ 1 callers
Method
process_sample_strict
Instead of processing lazily, we turn the iterable into a list.
codegeex/data/processor.py:66
↓ 1 callers
Method
process_sample_strict
Instead of processing lazily, we turn the iterable into a list.
codegeex/data/processor.py:143
↓ 1 callers
Function
quantize_oneflow
Replace fp16 linear with quantized linear
codegeex/quantization/quantize_oneflow.py:103
↓ 1 callers
Method
read_index
(self, path)
codegeex/megatron/data/indexed_dataset.py:159
↓ 1 callers
Function
read_translation_dataset
( data_file_src: str = None, data_file_tgt: str = None, lang_src: str = None, lang_tgt: str =
codegeex/benchmark/utils.py:69
↓ 1 callers
Method
readline
(self, *args, **kwargs)
codegeex/benchmark/execution.py:447
↓ 1 callers
Function
reliability_guard
This disables various destructive functions and prevents the generated code from interfering with the test (e.g. fork bomb, killing other pro
codegeex/benchmark/execution.py:477
↓ 1 callers
Method
reload_model_params
(self)
codegeex/megatron/optimizer/optimizer.py:498
↓ 1 callers
Function
report_memory
Simple GPU memory report.
codegeex/megatron/utils.py:92
↓ 1 callers
Method
reset
Reset timer.
codegeex/megatron/global_vars.py:215
↓ 1 callers
Function
restore_checkpoint
r""" Load checkpoint process.
codegeex/mindspore/train.py:333
↓ 1 callers
Function
restore_exception_checkpoint
Restore exception checkpoint. Args: args_param: training job params sink_size: training job sink size dataset: datase
codegeex/mindspore/train.py:425
↓ 1 callers
Function
run_predict
run predict
codegeex/mindspore/generation_batch.py:193
↓ 1 callers
Function
run_predict
run predict
codegeex/mindspore/generation_humaneval.py:195
↓ 1 callers
Function
run_predict
run predict
codegeex/mindspore/convertion_1p.py:206
↓ 1 callers
Function
run_predict
run predict
codegeex/mindspore/generation.py:195
↓ 1 callers
Function
run_predict
run predict
codegeex/mindspore/generation_values_1p.py:201
↓ 1 callers
Function
run_predict
run predict
codegeex/mindspore/generation_values.py:174
↓ 1 callers
Function
run_predict
run predict
codegeex/mindspore/generation_finetune.py:196
↓ 1 callers
Function
run_predict
run predict
codegeex/mindspore/generation_1p.py:201
↓ 1 callers
Function
run_train
r"""The main training process.
codegeex/mindspore/train.py:121
↓ 1 callers
Function
run_train
r"""The main training process.
codegeex/mindspore/finetune.py:121
↓ 1 callers
Function
run_train_pipeline
r"""The main training process in pipeline.
codegeex/mindspore/train.py:506
↓ 1 callers
Function
run_transform_model_parallel_ckpt
(args_opt)
codegeex/mindspore/save_1p_ckpt_from_8p_ckpt.py:213
↓ 1 callers
Function
run_transform_opt_shard_ckpt
(args_opt)
codegeex/mindspore/save_8p_ckpt.py:154
↓ 1 callers
Function
sample_sequence_batch
( model, tokenizer, context_tokens, context_lengths, attention_mask,
codegeex/torch/inference.py:217
← previous
next →
401–500 of 1,098, ranked by callers