MCPcopy Create free account

hub / github.com/zai-org/CodeGeeX / types & classes

Types & classes154 in github.com/zai-org/CodeGeeX

↓ 11 callersClassPanguAlphaConfig
PanGUConfig config class which defines the model size
codegeex/mindspore/src/pangu_alpha_config.py:21
↓ 8 callersClassCodeTokenizer
codegeex/mindspore/src/code_tokenizer.py:131
↓ 8 callersClassPanguAlphaModel
The PanguAlpha network consisting of two parts the backbone and the head Args: config(PanguAlphaConfig): the config of network In
codegeex/mindspore/src/pangu_alpha.py:461
↓ 6 callersClassQuantizedLinear
codegeex/quantization/quantize_oneflow.py:53
↓ 6 callersClassQuantizedLinear
codegeex/quantization/quantize.py:32
↓ 5 callersClassCodeGeeXModel
Code Generation Model for Multilingual Program Synthesis.
codegeex/megatron/model/codegeex_model.py:27
↓ 5 callersClassCodeGeeXTokenizer
codegeex/tokenizer/tokenizer.py:33
↓ 4 callersClassClipByGlobalNorm
Clip grads by global norm
codegeex/mindspore/src/utils.py:206
↓ 4 callersClassEvalNet
PanguAlpha evaluation net Args: backbone: backbone network of PanguAlpha generate: enable generate mode Inputs: i
codegeex/mindspore/src/pangu_alpha.py:547
↓ 4 callersClassLMDBDataset
codegeex/mindspore/src/sat_dataset.py:18
↓ 4 callersClassLossCallBack
Monitor the loss in training. If the loss in NAN or INF terminating training.
codegeex/mindspore/src/callbacks.py:31
↓ 4 callersClassPanGUAlphaWithLoss
PanguAlpha training loss for generation. Args: config(PanGUConfig) Inputs: input_ids: the tokenized inputs past:
codegeex/mindspore/src/pangu_alpha.py:496
↓ 4 callersClassQuantizedColumnParallelLinear
codegeex/quantization/quantize.py:77
↓ 3 callersClassAdamWeightDecayOp
Implements the Adam algorithm to fix the weight decay. It is a complete operator, not a combination of other ops. Note: When separat
codegeex/mindspore/src/adam.py:63
↓ 3 callersClassBlendableDataset
codegeex/megatron/data/blendable_dataset.py:25
↓ 3 callersClassCodeGeeXModel
CodeGeeX: A Multilingual Code Generation Model.
codegeex/torch/codegeex_model.py:948
↓ 3 callersClassConcatDataset
Dataset to concatenate multiple datasets. Purpose: useful to assemble different existing datasets, possibly large-scale datasets as the c
codegeex/mindspore/src/sat_dataset.py:125
↓ 3 callersClassEvalCallBack
Monitor the ppl loss in evaluating. Note: If per_print_times is 0, do NOT print loss. Args: print_per_step (int): Print
codegeex/mindspore/src/callbacks.py:92
↓ 3 callersClassEvalNet
PanguAlpha evaluation net Args: backbone: backbone network of PanguAlpha generate: enable generate mode Inputs: i
codegeex/mindspore/src/pangu_alpha_fp16_predict.py:562
↓ 3 callersClassGlobalNorm
Calculate the global norm value of given tensors
codegeex/mindspore/src/utils.py:136
↓ 3 callersClassLearningRate
Warmup-decay learning rate for PanguAlpha network.
codegeex/mindspore/src/utils.py:232
↓ 3 callersClassPPLMetric
Ppl metric
codegeex/mindspore/src/metrics.py:26
↓ 3 callersClassPanguAlphaModel
The PanguAlpha network consisting of two parts the backbone and the head Args: config(PanguAlphaConfig): the config of network In
codegeex/mindspore/src/pangu_alpha_fp16_predict.py:471
↓ 3 callersClassSaveCheckpointCallback
codegeex/mindspore/src/callbacks.py:161
↓ 2 callersClassBeam
codegeex/megatron/code_generation_utils.py:621
↓ 2 callersClassCodeGeeXModelPipe
Pipeline version of CodeGeeX.
codegeex/megatron/model/codegeex_model.py:127
↓ 2 callersClassFP32StateAdamWeightDecay
r""" This class is almost same with the mindspore's AdamWeightDecay implements, the only difference is the optimizer's state will be a
codegeex/mindspore/src/utils.py:40
↓ 2 callersClassHandle
codegeex/megatron/code_generation_utils.py:727
↓ 2 callersClassIndexedDataset
Loader for IndexedDataset
codegeex/megatron/data/indexed_dataset.py:148
↓ 2 callersClassMLP
MLP. MLP will take the input with h hidden state, project it to 4*h hidden dimension, perform nonlinear transformation, and project the s
codegeex/torch/codegeex_model.py:12
↓ 2 callersClassMLP
MLP. MLP will take the input with h hidden state, project it to 4*h hidden dimension, perform nonlinear transformation, and project the st
codegeex/oneflow/codegeex_model.py:14
↓ 2 callersClassMLP
MLP. MLP will take the input with h hidden state, project it to 4*h hidden dimension, perform nonlinear transformation, and project the s
codegeex/paddle/codegeex_model.py:11
↓ 2 callersClassMMapIndexedDatasetBuilder
codegeex/megatron/data/indexed_dataset.py:564
↓ 2 callersClassPadDataset
codegeex/mindspore/src/sat_dataset.py:56
↓ 2 callersClassPanGUAlphaWithFinetuneLoss
PanguAlpha training loss for generation. Args: config(PanGUConfig) Inputs: input_ids: the tokenized inputs past:
codegeex/mindspore/src/pangu_alpha.py:642
↓ 2 callersClassParallelMLP
MLP. MLP will take the input with h hidden state, project it to 4*h hidden dimension, perform nonlinear transformation, and project the s
codegeex/megatron/model/transformer.py:55
↓ 2 callersClassQuantizedRowParallelLinear
codegeex/quantization/quantize.py:136
↓ 2 callersClassSubsetDataset
codegeex/mindspore/src/sat_dataset.py:223
↓ 2 callersClassValidationLoss
codegeex/mindspore/src/metrics.py:67
↓ 1 callersClassAnnealingLR
Anneals the learning rate.
codegeex/megatron/learning_rates.py:23
↓ 1 callersClassCode13BDictionary
codegeex/mindspore/src/code_tokenizer.py:58
↓ 1 callersClassCodeGeeXModel
CodeGeeX: A Multilingual Code Generation Model.
codegeex/oneflow/codegeex_model.py:1039
↓ 1 callersClassCodeGeeXModel
CodeGeeX: A Multilingual Code Generation Model.
codegeex/paddle/codegeex_model.py:947
↓ 1 callersClassConstantGradScaler
codegeex/megatron/optimizer/grad_scaler.py:51
↓ 1 callersClassConstantNumMicroBatches
codegeex/megatron/microbatches.py:86
↓ 1 callersClassCudaRNGStatesTracker
Tracker for the cuda RNG states. Using the `add` method, a cuda rng state is initialized based on the input `seed` and is assigned to `name`.
codegeex/megatron/mpu/random.py:139
↓ 1 callersClassDynamicGradScaler
codegeex/megatron/optimizer/grad_scaler.py:62
↓ 1 callersClassEmbedding
Language model embeddings. Arguments: hidden_size: hidden size vocab_size: vocabulary size max_sequence_length: maximum s
codegeex/torch/codegeex_model.py:679
↓ 1 callersClassEmbedding
Language model embeddings. Arguments: hidden_size: hidden size vocab_size: vocabulary size max_sequence_length: maximum s
codegeex/megatron/model/language_model.py:100
↓ 1 callersClassEmbedding
Language model embeddings. Arguments: hidden_size: hidden size vocab_size: vocabulary size max_sequence_length: maximum si
codegeex/oneflow/codegeex_model.py:773
↓ 1 callersClassEmbedding
Language model embeddings. Arguments: hidden_size: hidden size vocab_size: vocabulary size max_sequence_length: maximum s
codegeex/paddle/codegeex_model.py:678
↓ 1 callersClassEmbeddingLayer
r"""Embedding layer of the PanGUAlpha Model
codegeex/mindspore/src/pangu_alpha.py:38
↓ 1 callersClassEmbeddingLayer
r"""Embedding layer of the PanGUAlpha Model
codegeex/mindspore/src/pangu_alpha_fp16_predict.py:37
↓ 1 callersClassFP32Optimizer
codegeex/megatron/optimizer/optimizer.py:453
↓ 1 callersClassFloat16Module
codegeex/megatron/model/module.py:159
↓ 1 callersClassFloat16OptimizerWithFloat16Params
Float16 optimizer for fp16 and bf16 data types. Arguments: optimizer: base optimizer such as Adam or SGD clip_grad: clip gradeint
codegeex/megatron/optimizer/optimizer.py:145
↓ 1 callersClassGPT2Tokenizer
GPT-2 BPE tokenizer. Peculiarities: - Byte-level BPE
codegeex/megatron/tokenizer/gpt2_tokenization.py:94
↓ 1 callersClassHgfTokenizerWrapper
Wrapper for Hugging Face tokenizer.
codegeex/megatron/tokenizer/tokenizer.py:217
↓ 1 callersClassIndexedCachedDataset
codegeex/megatron/data/indexed_dataset.py:233
↓ 1 callersClassIndexedDatasetBuilder
codegeex/megatron/data/indexed_dataset.py:285
↓ 1 callersClassJIEBATokenizer
r""" Jieba Tokenizer
codegeex/mindspore/src/tokenization_jieba.py:25
↓ 1 callersClassKernel
codegeex/kernels/__init__.py:11
↓ 1 callersClassLogitsNet
PanguAlpha evaluation net Args: backbone: backbone network of PanguAlpha generate: enable generate mode Inputs: i
codegeex/mindspore/src/pangu_alpha.py:597
↓ 1 callersClassMMapIndexedDataset
codegeex/megatron/data/indexed_dataset.py:356
↓ 1 callersClassMegatronPretrainingRandomSampler
codegeex/megatron/data/data_samplers.py:123
↓ 1 callersClassMegatronPretrainingSampler
codegeex/megatron/data/data_samplers.py:62
↓ 1 callersClassMemoryBuffer
Contiguous memory buffer. Allocate a contiguous memory of type `dtype` and size `numel`. It is used to reduce memory fragmentation. Usage
codegeex/megatron/memory.py:36
↓ 1 callersClassMemoryBuffer
codegeex/megatron/model/distributed.py:26
↓ 1 callersClassPanGuHead
Head to get the logits of each token in the vocab Args: config(): the config of network Inputs: state: the output of the
codegeex/mindspore/src/pangu_alpha.py:220
↓ 1 callersClassPanGuHead
Head to get the logits of each token in the vocab Args: config(): the config of network Inputs: state: the output of the
codegeex/mindspore/src/pangu_alpha_fp16_predict.py:216
↓ 1 callersClassPanguAlphaTrainOneStepWithLossScaleCell
Encapsulation class of PanguAlpha network training. Append an optimizer to the training network after that the construct function can be
codegeex/mindspore/src/pangu_alpha_wrapcell_finetune.py:94
↓ 1 callersClassPanguAlphaTrainOneStepWithLossScaleCell
Encapsulation class of PanguAlpha network training. Append an optimizer to the training network after that the construct function can be
codegeex/mindspore/src/pangu_alpha_wrapcell.py:94
↓ 1 callersClassPanguAlphaTrainPipelineWithLossScaleCell
Encapsulation class of PanguAlpha network training. Append an optimizer to the training network after that the construct function can be
codegeex/mindspore/src/pangu_alpha_wrapcell.py:168
↓ 1 callersClassPanguAlpha_Model
r"""The base backbone of the PanGuAlpha model
codegeex/mindspore/src/pangu_alpha.py:296
↓ 1 callersClassPanguAlpha_Model
r"""The base backbone of the PanGuAlpha model
codegeex/mindspore/src/pangu_alpha_fp16_predict.py:292
↓ 1 callersClassParallelSelfAttention
Parallel self-attention layer abstract class. Self-attention layer takes input with size [b, s, h] and returns output of the same size.
codegeex/megatron/model/transformer.py:103
↓ 1 callersClassParallelTopQueryLayer
A single top query layer. Top query layer takes input with size [b, s, h] and returns an output of the same size.
codegeex/megatron/model/transformer.py:732
↓ 1 callersClassParallelTopQuerySelfAttention
Parallel top query self-attention layer abstract class. Self-attention layer takes input with size [b, s, h] and returns output of the same s
codegeex/megatron/model/transformer.py:325
↓ 1 callersClassParallelTransformer
Transformer class.
codegeex/megatron/model/transformer.py:895
↓ 1 callersClassParallelTransformerLayer
A single transformer layer. Transformore layer takes input with size [b, s, h] and returns an output of the same size.
codegeex/megatron/model/transformer.py:573
↓ 1 callersClassPromptDataset
codegeex/megatron/data/prompt_dataset.py:179
↓ 1 callersClassPromptDatasetProcessor
codegeex/data/processor.py:8
↓ 1 callersClassPromptSample
codegeex/data/types.py:6
↓ 1 callersClassQueryEmbedding
Language model embeddings. Arguments: hidden_size: hidden size vocab_size: vocabulary size max_sequence_length: maximum s
codegeex/torch/codegeex_model.py:759
↓ 1 callersClassQueryEmbedding
Language model embeddings. Arguments: hidden_size: hidden size vocab_size: vocabulary size max_sequence_length: maximum s
codegeex/megatron/model/language_model.py:307
↓ 1 callersClassQueryEmbedding
Language model embeddings. Arguments: hidden_size: hidden size vocab_size: vocabulary size max_sequence_length: maximum si
codegeex/oneflow/codegeex_model.py:852
↓ 1 callersClassQueryEmbedding
Language model embeddings. Arguments: hidden_size: hidden size vocab_size: vocabulary size max_sequence_length: maximum s
codegeex/paddle/codegeex_model.py:758
↓ 1 callersClassQueryLayer
r"""Query Layer at the final layer.
codegeex/mindspore/src/pangu_alpha.py:109
↓ 1 callersClassQueryLayer
r"""Query Layer at the final layer.
codegeex/mindspore/src/pangu_alpha_fp16_predict.py:105
↓ 1 callersClassRampupBatchsizeNumMicroBatches
codegeex/megatron/microbatches.py:103
↓ 1 callersClassRandomMappingDataset
Dataset wrapper to randomly mapping indices to original order. Will also enlarge the length
codegeex/mindspore/src/sat_dataset.py:175
↓ 1 callersClassSelfAttention
self-attention layer abstract class. Self-attention layer takes input with size [b, s, h] and returns output of the same size.
codegeex/torch/codegeex_model.py:51
↓ 1 callersClassSelfAttention
self-attention layer abstract class. Self-attention layer takes input with size [b, s, h] and returns output of the same size.
codegeex/oneflow/codegeex_model.py:52
↓ 1 callersClassSelfAttention
self-attention layer abstract class. Self-attention layer takes input with size [b, s, h] and returns output of the same size.
codegeex/paddle/codegeex_model.py:50
↓ 1 callersClassTimeoutException
codegeex/benchmark/execution.py:437
↓ 1 callersClassTimers
Group of timers.
codegeex/megatron/global_vars.py:237
↓ 1 callersClassTopQueryLayer
A single top query layer. Top query layer takes input with size [b, s, h] and returns an output of the same size.
codegeex/torch/codegeex_model.py:479
↓ 1 callersClassTopQueryLayer
A single top query layer. Top query layer takes input with size [b, s, h] and returns an output of the same size.
codegeex/oneflow/codegeex_model.py:573
↓ 1 callersClassTopQueryLayer
A single top query layer. Top query layer takes input with size [b, s, h] and returns an output of the same size.
codegeex/paddle/codegeex_model.py:478
↓ 1 callersClassTopQuerySelfAttention
Top query self-attention layer abstract class. Self-attention layer takes input with size [b, s, h] and returns output of the same size.
codegeex/torch/codegeex_model.py:227
next →1–100 of 154, ranked by callers