mindformers.models¶
models init
mindformers.models¶
Base Config for all models’ config |
|
BaseImageProcessor for all image preprocess. |
|
The base model that contains the class method from_pretained and save_pretrained, any new model that should inherit the class. |
|
Base processor |
|
Pretrained Tokenizer provides detailed the tokenizer method. |
mindformers.models.bert¶
BERT config class which defines the model size |
|
Bidirectional Encoder Representations from Transformers. |
|
Bert with dense layer for txt classification task. |
|
Provide bert pre-training loss through network. |
|
Bert with dense layer for question answering task. |
|
|
|
Bert Tokenizer. |
|
Bert processor, consists of a tokenizer (BaseTokenizer) for text input. |
mindformers.models.t5¶
T5 config class which defines the model size |
|
A T5 model with the loss added. |
|
T5 processor, consists of a tokenizer (BaseTokenizer) for text input. |
|
Tokenize the input string and convert them into the ids. |
mindformers.models.clip¶
Config For CLIP Model |
|
Config For CLIP Vision Module |
|
Config For CLIP Text Module |
|
CLIPModel. |
|
CLIP Tokenizer |
|
CLIP Processor, consists of a feature extractor (BaseFeatureEXtractor) for image input, and a tokenizer (BaseTokenizer) for text input. |
|
CLIPImageProcessor. |
mindformers.models.mae¶
Config for Mae model |
|
Pretrain MAE Module. |
|
ViTMAEProcessor, consists of a feature extractor (BaseFeatureEXtractor) for image input. |
|
ViTMAEImageProcessor. |
mindformers.models.swin¶
Swin config class which defines the model size |
|
Swin Transformer. |
|
Swin Transformer Model. |
|
SwinImageProcessor. |
|
Swin processor, consists of a feature extractor (BaseFeatureEXtractor) for image input. |
mindformers.models.vit¶
Config for ViT model |
|
Vision Transformer with support for patch or hybrid CNN input stage. |
|
Vit processor, consists of a feature extractor (BaseFeatureEXtractor) for image input, and a tokenizer (BaseTokenizer) for text input. |
|
ViTImageProcessor. |
|
Vision Transformer with support for patch or hybrid CNN input stage. |
mindformers.models.gpt2¶
Gpt config class which defines the model size |
|
The backbone of GPT network |
|
Provide gpt training loss or logits through network. |
|
Tokenize the input string and convert them into the ids. |
|
GPT2 processor, consists of a tokenizer (BaseTokenizer) for text input. |
mindformers.models.glm¶
GLM config class which defines the model size |
|
Provide glm chat capability through network. |
|
Provide glm training loss or logits through network. |
|
GLM Model for pretraining with LoRA |
|
GLM Model for pretraining with LoRA |
|
Construct a ChatGLM tokenizer. |
|
GLM processor, consists of a tokenizer (BaseTokenizer) for text input. |
mindformers.models.llama¶
LLaMA config class which defines the model size. |
|
Transformer decoder consisting of config.num_hidden_layers layers. |
|
Provide llama training loss or logits through network. |
|
Llama Model for finetuning with LoRA |
|
Tokenize the input string and convert them into the ids. |
|
Llama processor, consists of a tokenizer (BaseTokenizer) for text input. |
mindformers.models.bloom¶
Bloom config class which defines the model size |
|
The backbone of Bloom network |
|
Provide bloom training loss or logits through network. |
|
Tokenize the input string and convert them into the ids. |
|
Bloom processor, consists of a tokenizer (BaseTokenizer) for text input. |