MCPcopy Create free account

hub / github.com/THUDM/LongWriter / types & classes

Types & classes39 in github.com/THUDM/LongWriter

↓ 4 callersClassLlamaModel
Transformer decoder consisting of *config.num_hidden_layers* layers. Each layer is a [`LlamaDecoderLayer`] Args: config: LlamaConfig
train/patch/modeling_llama.py:915
↓ 3 callersClassLlamaRMSNorm
train/patch/modeling_llama.py:66
↓ 2 callersClassDataCollatorForLMDataset
train/main.py:47
↓ 2 callersClassLlamaRotaryEmbedding
train/patch/modeling_llama.py:86
↓ 1 callersClassChatGLMModel
train/patch/modeling_chatglm.py:644
↓ 1 callersClassCoreAttention
train/patch/modeling_chatglm.py:171
↓ 1 callersClassDataCollatorForLMPackDataset
train/main.py:66
↓ 1 callersClassGLMBlock
A single transformer layer. Transformer layer takes input with size [s, b, h] and returns an output of the same size.
train/patch/modeling_chatglm.py:415
↓ 1 callersClassInvalidScoreLogitsProcessor
train/patch/modeling_chatglm.py:59
↓ 1 callersClassLMDataset
train/dataset.py:7
↓ 1 callersClassLMPackDataset
train/dataset.py:47
↓ 1 callersClassLMSortDataset
train/dataset.py:27
↓ 1 callersClassLlamaDecoderLayer
train/patch/modeling_llama.py:710
↓ 1 callersClassLlamaMLP
train/patch/modeling_llama.py:232
↓ 1 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
train/patch/modeling_chatglm.py:369
↓ 1 callersClassRotaryEmbedding
train/patch/modeling_chatglm.py:94
↓ 1 callersClassSelfAttention
Parallel self-attention layer abstract class. Self-attention layer takes input with size [s, b, h] and returns output of the same size.
train/patch/modeling_chatglm.py:222
↓ 1 callersClassStopOnTokens
trans_web_demo.py:53
↓ 1 callersClassTrainerNoShuffle
train/trainer.py:25
ClassChatGLM4Tokenizer
train/patch/tokenization_chatglm.py:13
ClassChatGLMForConditionalGeneration
train/patch/modeling_chatglm.py:723
ClassChatGLMPreTrainedModel
An abstract class to handle weights initialization and a simple interface for downloading and loading pretrained models.
train/patch/modeling_chatglm.py:572
ClassDataArguments
train/main.py:19
ClassEmbedding
Language model embeddings.
train/patch/modeling_chatglm.py:616
ClassGLMTransformer
Transformer class.
train/patch/modeling_chatglm.py:489
ClassLlamaAttention
Multi-headed attention from 'Attention Is All You Need' paper
train/patch/modeling_llama.py:278
ClassLlamaDynamicNTKScalingRotaryEmbedding
LlamaRotaryEmbedding extended with Dynamic NTK scaling. Credits to the Reddit users /u/bloc97 and /u/emozilla
train/patch/modeling_llama.py:185
ClassLlamaFlashAttention2
Llama flash attention module. This module inherits from `LlamaAttention` as the weights of the module stays untouched. The only required chan
train/patch/modeling_llama.py:410
ClassLlamaForCausalLM
train/patch/modeling_llama.py:1158
ClassLlamaForQuestionAnswering
train/patch/modeling_llama.py:1507
ClassLlamaForSequenceClassification
train/patch/modeling_llama.py:1392
ClassLlamaForTokenClassification
train/patch/modeling_llama.py:1606
ClassLlamaLinearScalingRotaryEmbedding
LlamaRotaryEmbedding extended with linear scaling. Credits to the Reddit user /u/kaiokendev
train/patch/modeling_llama.py:173
ClassLlamaLongAttention
train/patch/modeling_llama.py:628
ClassLlamaPreTrainedModel
train/patch/modeling_llama.py:813
ClassLlamaSdpaAttention
Llama attention module using torch.nn.functional.scaled_dot_product_attention. This module inherits from `LlamaAttention` as the weights of t
train/patch/modeling_llama.py:529
ClassModelArguments
train/main.py:14
ClassRMSNorm
train/patch/modeling_chatglm.py:157
ClassTrainingArguments
train/main.py:37