formtgpt / model /__init__.py
Ystar124's picture
Upload DocLLM custom Transformer model
6cacf86 verified
Raw History Blame Contribute Delete
477 Bytes
"""
Custom DocLLM Transformer package.
"""
from model.config import ModelConfig
from model.layers import RMSNorm, RotaryEmbedding, SwiGLU, StandardMLP, apply_rope
from model.attention import CausalSelfAttention, KVCache
from model.transformer import DocLLM, TransformerBlock
__all__ = [
"ModelConfig",
"RMSNorm",
"RotaryEmbedding",
"SwiGLU",
"StandardMLP",
"apply_rope",
"CausalSelfAttention",
"KVCache",
"DocLLM",
"TransformerBlock"
]