MCPcopy Create free account

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

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

Methodeod
(self)
codegeex/megatron/tokenizer/tokenizer.py:170
Methodeod
(self)
codegeex/megatron/tokenizer/tokenizer.py:213
Methodeod
(self)
codegeex/megatron/tokenizer/tokenizer.py:245
Methodeod
(self)
codegeex/mindspore/src/tokenization_jieba.py:56
Functionerf_gelu
(x)
codegeex/megatron/model/utils.py:75
Methodeval
(self)
codegeex/mindspore/src/metrics.py:94
Functionevaluate_functional_correctness
( input_file: str = None, tmp_dir: str = "./", n_workers: int = 32, timeout: f
codegeex/benchmark/humaneval-x/evaluate_humaneval_x.py:99
Methodexists
(path)
codegeex/megatron/data/indexed_dataset.py:558
Functionfast_gelu
Mindspore's fast gelu implementation.
codegeex/torch/codegeex_model.py:7
Functionfast_gelu
Mindspore's fast gelu implementation.
codegeex/megatron/model/utils.py:56
Functionfast_gelu
Mindspore's fast gelu implementation.
codegeex/oneflow/codegeex_model.py:7
Functionfast_gelu
Mindspore's fast gelu implementation.
codegeex/paddle/codegeex_model.py:6
Methodfinalize
(self, index_file)
codegeex/megatron/data/indexed_dataset.py:591
Methodfloat16_convertor
(val)
codegeex/megatron/model/module.py:166
Functionfloat_conversion
(val)
codegeex/megatron/model/module.py:148
Methodforward
(self, hidden_states)
codegeex/torch/codegeex_model.py:41
Methodforward
( self, hidden_states, attention_mask, layer_past=None, get_key_value=
codegeex/torch/codegeex_model.py:85
Methodforward
( self, hidden_states, query_hidden_state, attention_mask, layer_past=
codegeex/torch/codegeex_model.py:261
Methodforward
( self, hidden_states, attention_mask, layer_past=None, get_key_value=
codegeex/torch/codegeex_model.py:438
Methodforward
( self, hidden_states, query_hidden_state, attention_mask, layer_past=
codegeex/torch/codegeex_model.py:514
Methodforward
( self, hidden_states, query_hidden_state, attention_mask, layer_past=
codegeex/torch/codegeex_model.py:611
Methodforward
(self, input_ids, position_ids)
codegeex/torch/codegeex_model.py:709
Methodforward
(self, position_ids)
codegeex/torch/codegeex_model.py:786
Methodforward
( self, input_ids, position_ids, attention_mask, l
codegeex/torch/codegeex_model.py:868
Methodforward
( self, input_ids, position_ids, attention_mask, layer_past=None,
codegeex/torch/codegeex_model.py:968
Methodforward
(self, *inputs, **kwargs)
codegeex/megatron/model/distributed.py:63
Methodforward
( self, input_ids, position_ids, attention_mask, l
codegeex/megatron/model/codegeex_model.py:48
Methodforward
(self, inputs, **kwargs)
codegeex/megatron/model/language_model.py:274
Methodforward
(self, position_ids, tokentype_ids=None)
codegeex/megatron/model/language_model.py:376
Methodforward
(self, inputs, **kwargs)
codegeex/megatron/model/language_model.py:449
Methodforward
( self, input_ids, position_ids, attention_mask, t
codegeex/megatron/model/language_model.py:541
Methodforward
( self, hidden_states, attention_mask, layer_past=None,
codegeex/megatron/model/transformer.py:164
Methodforward
( self, hidden_states, query_hidden_state, attention_mask,
codegeex/megatron/model/transformer.py:387
Methodforward
( self, hidden_states, attention_mask, layer_past=None,
codegeex/megatron/model/transformer.py:619
Methodforward
(self, inputs, **kwargs)
codegeex/megatron/model/transformer.py:716
Methodforward
( self, hidden_states, query_hidden_state, attention_mask,
codegeex/megatron/model/transformer.py:776
Methodforward
(self, inputs, **kwargs)
codegeex/megatron/model/transformer.py:878
Methodforward
( self, hidden_states, query_hidden_state, attention_mask,
codegeex/megatron/model/transformer.py:987
Methodforward
(self, *inputs, **kwargs)
codegeex/megatron/model/module.py:180
Methodforward
(self, input_)
codegeex/megatron/mpu/layers.py:211
Methodforward
(self, input_)
codegeex/megatron/mpu/layers.py:351
Methodforward
(self, input_)
codegeex/megatron/mpu/layers.py:483
Methodforward
(ctx, vocab_parallel_logits, target)
codegeex/megatron/mpu/cross_entropy.py:27
Methodforward
(ctx, run_function, *args)
codegeex/megatron/mpu/random.py:274
Methodforward
(ctx, input_)
codegeex/megatron/mpu/mappings.py:90
Methodforward
(ctx, input_)
codegeex/megatron/mpu/mappings.py:106
Methodforward
(ctx, input_)
codegeex/megatron/mpu/mappings.py:122
Methodforward
(ctx, input_)
codegeex/megatron/mpu/mappings.py:138
Methodforward
(self, input_)
codegeex/quantization/quantize_oneflow.py:89
Methodforward
(ctx, inp: torch.Tensor, quant_w: torch.Tensor, scale_w: torch.Tensor, weight_bit_width)
codegeex/quantization/quantize.py:11
Methodforward
(self, input_)
codegeex/quantization/quantize.py:68
Methodforward
(self, input_)
codegeex/quantization/quantize.py:118
Methodforward
(self, input_)
codegeex/quantization/quantize.py:177
Methodforward
(self, hidden_states)
codegeex/oneflow/codegeex_model.py:42
Methodforward
( self, hidden_states, attention_mask, layer_past=None, get_key_value=
codegeex/oneflow/codegeex_model.py:85
Methodforward
( self, hidden_states, query_hidden_state, attention_mask, layer_past=
codegeex/oneflow/codegeex_model.py:312
Methodforward
( self, hidden_states, attention_mask, layer_past=None, get_key_value=
codegeex/oneflow/codegeex_model.py:530
Methodforward
( self, hidden_states, query_hidden_state, attention_mask, layer_past=
codegeex/oneflow/codegeex_model.py:607
Methodforward
( self, hidden_states, query_hidden_state, attention_mask, layer_past=
codegeex/oneflow/codegeex_model.py:704
Methodforward
(self, input_ids, position_ids)
codegeex/oneflow/codegeex_model.py:802
Methodforward
(self, position_ids)
codegeex/oneflow/codegeex_model.py:878
Methodforward
( self, input_ids, position_ids, attention_mask, l
codegeex/oneflow/codegeex_model.py:959
Methodforward
( self, input_ids, position_ids, attention_mask, layer_past=None,
codegeex/oneflow/codegeex_model.py:1059
Methodforward
(self, hidden_states)
codegeex/paddle/codegeex_model.py:40
Methodforward
( self, hidden_states, attention_mask, layer_past=None, get_key_value=
codegeex/paddle/codegeex_model.py:84
Methodforward
( self, hidden_states, query_hidden_state, attention_mask, layer_past=
codegeex/paddle/codegeex_model.py:260
Methodforward
( self, hidden_states, attention_mask, layer_past=None, get_key_value=
codegeex/paddle/codegeex_model.py:437
Methodforward
( self, hidden_states, query_hidden_state, attention_mask, layer_past=
codegeex/paddle/codegeex_model.py:513
Methodforward
( self, hidden_states, query_hidden_state, attention_mask, layer_past=
codegeex/paddle/codegeex_model.py:610
Methodforward
(self, input_ids, position_ids)
codegeex/paddle/codegeex_model.py:708
Methodforward
(self, position_ids)
codegeex/paddle/codegeex_model.py:785
Methodforward
( self, input_ids, position_ids, attention_mask, l
codegeex/paddle/codegeex_model.py:867
Methodforward
( self, input_ids, position_ids, attention_mask, layer_past=None,
codegeex/paddle/codegeex_model.py:967
Functionforward_backward_no_pipelining
Run forward and backward passes with no pipeline parallelism (no inter-stage communication). Returns dictionary with losses.
codegeex/megatron/schedules.py:120
Functionforward_backward_pipelining_with_interleaving
Run interleaved 1F1B schedule (model split into model chunks), with communication between pipeline stages as needed. Returns dictionary with
codegeex/megatron/schedules.py:173
Functionforward_backward_pipelining_without_interleaving
Run non-interleaved 1F1B schedule, with communication between pipeline stages. Returns dictionary with losses if the last stage, empty dict o
codegeex/megatron/schedules.py:416
Functionforward_step
( model, tokens, seq_length, position_ids, attention_mask, lay
codegeex/torch/inference.py:127
Functionforward_step
Forward step.
codegeex/megatron/tools/finetune_codegeex.py:200
Functionforward_step
Forward step.
codegeex/megatron/tools/pretrain_codegeex.py:163
Functionforward_step
( model, tokens, seq_length, position_ids, attention_mask, lay
codegeex/oneflow/inference.py:127
Functionforward_step
( model, tokens, seq_length, position_ids, attention_mask, lay
codegeex/paddle/inference.py:127
Functiongather_output
( output_dir: str = "./output", output_prefix: str = None, if_remove_rank_files: int = 0, )
codegeex/benchmark/gather_output.py:7
Functiongenerate
( model, tokenizer: CodeGeeXTokenizer, prompt: str, out_seq_length: int, seq_length: in
codegeex/__init__.py:15
Functiongenerate
Text generation Inputs: model: the model for inferencing origin_inputs: the original inputs based on which the model will co
codegeex/mindspore/src/generate.py:84
Functiongenerate_and_write_samples_unconditional
(model)
codegeex/megatron/code_generation_utils.py:528
Functiongenerate_increment
Text generation for incremental inference Inputs: model: the model for inferencing origin_inputs: the original inputs based
codegeex/mindspore/src/generate.py:170
Functiongenerate_increment
Text generation for incremental inference Inputs: model: the model for inferencing origin_inputs: the original inputs based
codegeex/mindspore/src/generate_humaneval.py:130
Functiongenerate_increment
Text generation for incremental inference Inputs: model: the model for inferencing origin_inputs: the original inputs based
codegeex/mindspore/src/generate_greedy.py:45
Functiongenerate_nuclear_sampling
Beam search. Note that this function does not support model parallel!
codegeex/megatron/code_generation_utils.py:771
Functiongenerate_samples_eval
(model, context, max_gen_length, eos_token_id)
codegeex/megatron/code_generation_utils.py:225
Functiongenerate_samples_input_from_file
(model)
codegeex/megatron/code_generation_utils.py:105
Functiongenerate_samples_interactive
(model, print_frequency=24)
codegeex/megatron/code_generation_utils.py:377
Functiongenerate_samples_interactive_code_contest
(model, print_frequency=10)
codegeex/megatron/code_generation_utils.py:252
Methodget
Retrieves a single item from the dataset with the option to only return a portion of the item. get(idx) is the same as [idx] but get(
codegeex/megatron/data/indexed_dataset.py:524
Functionget_a_and_b_segments
Divide sample into a and b segments.
codegeex/megatron/data/dataset_utils.py:81
Functionget_available_dataset_impl
()
codegeex/megatron/data/indexed_dataset.py:33
Functionget_batch_pipe
Modification of `get_batch` to work on `next(data_iterator)` instead of `data_iterator`
codegeex/megatron/tools/finetune_codegeex.py:128
Functionget_batch_pipe
Modification of `get_batch` to work on `next(data_iterator)` instead of `data_iterator`
codegeex/megatron/tools/pretrain_codegeex.py:123
Functionget_change_ckpt_args
Provide extra arguments required for merging.
codegeex/megatron/mindspore_to_megatron.py:34
Functionget_change_ckpt_args
Provide extra arguments required for merging.
codegeex/megatron/merge_ckpt_parallel.py:13
← previousnext →801–900 of 1,098, ranked by callers