Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/THUDM/LongWriter
/ types & classes
Types & classes
39 in github.com/THUDM/LongWriter
⨍
Functions
151
◇
Types & classes
39
↳
Endpoints
1
↓ 4 callers
Class
LlamaModel
Transformer decoder consisting of *config.num_hidden_layers* layers. Each layer is a [`LlamaDecoderLayer`] Args: config: LlamaConfig
train/patch/modeling_llama.py:915
↓ 3 callers
Class
LlamaRMSNorm
train/patch/modeling_llama.py:66
↓ 2 callers
Class
DataCollatorForLMDataset
train/main.py:47
↓ 2 callers
Class
LlamaRotaryEmbedding
train/patch/modeling_llama.py:86
↓ 1 callers
Class
ChatGLMModel
train/patch/modeling_chatglm.py:644
↓ 1 callers
Class
CoreAttention
train/patch/modeling_chatglm.py:171
↓ 1 callers
Class
DataCollatorForLMPackDataset
train/main.py:66
↓ 1 callers
Class
GLMBlock
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 callers
Class
InvalidScoreLogitsProcessor
train/patch/modeling_chatglm.py:59
↓ 1 callers
Class
LMDataset
train/dataset.py:7
↓ 1 callers
Class
LMPackDataset
train/dataset.py:47
↓ 1 callers
Class
LMSortDataset
train/dataset.py:27
↓ 1 callers
Class
LlamaDecoderLayer
train/patch/modeling_llama.py:710
↓ 1 callers
Class
LlamaMLP
train/patch/modeling_llama.py:232
↓ 1 callers
Class
MLP
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 callers
Class
RotaryEmbedding
train/patch/modeling_chatglm.py:94
↓ 1 callers
Class
SelfAttention
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 callers
Class
StopOnTokens
trans_web_demo.py:53
↓ 1 callers
Class
TrainerNoShuffle
train/trainer.py:25
Class
ChatGLM4Tokenizer
train/patch/tokenization_chatglm.py:13
Class
ChatGLMForConditionalGeneration
train/patch/modeling_chatglm.py:723
Class
ChatGLMPreTrainedModel
An abstract class to handle weights initialization and a simple interface for downloading and loading pretrained models.
train/patch/modeling_chatglm.py:572
Class
DataArguments
train/main.py:19
Class
Embedding
Language model embeddings.
train/patch/modeling_chatglm.py:616
Class
GLMTransformer
Transformer class.
train/patch/modeling_chatglm.py:489
Class
LlamaAttention
Multi-headed attention from 'Attention Is All You Need' paper
train/patch/modeling_llama.py:278
Class
LlamaDynamicNTKScalingRotaryEmbedding
LlamaRotaryEmbedding extended with Dynamic NTK scaling. Credits to the Reddit users /u/bloc97 and /u/emozilla
train/patch/modeling_llama.py:185
Class
LlamaFlashAttention2
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
Class
LlamaForCausalLM
train/patch/modeling_llama.py:1158
Class
LlamaForQuestionAnswering
train/patch/modeling_llama.py:1507
Class
LlamaForSequenceClassification
train/patch/modeling_llama.py:1392
Class
LlamaForTokenClassification
train/patch/modeling_llama.py:1606
Class
LlamaLinearScalingRotaryEmbedding
LlamaRotaryEmbedding extended with linear scaling. Credits to the Reddit user /u/kaiokendev
train/patch/modeling_llama.py:173
Class
LlamaLongAttention
train/patch/modeling_llama.py:628
Class
LlamaPreTrainedModel
train/patch/modeling_llama.py:813
Class
LlamaSdpaAttention
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
Class
ModelArguments
train/main.py:14
Class
RMSNorm
train/patch/modeling_chatglm.py:157
Class
TrainingArguments
train/main.py:37