ColossalAI/tests/kit/model_zoo/transformers
Jianghai 7596e9ae08 [pipeline] rewrite bert tests and fix some bugs (#4409)
* add pipeline policy and bert forward to be done

* add bertmodel pipeline forward and make tests

* add Bert_Policy and test for policy

* update formatting

* update formatting

* update the code

* fix bugs

* fix name confilt

* add bloom model and policy ,revise the base class of policy

* revise

* revision

* add bert_for_pretraining

* add bert_for_pretraining forward and policy

* fix typos

* cancel warning

* change the imediate output to default dict

* change the default output of get_shared_params

* rewrite bert test

* rewrite bert test

* fix some bugs

* del pipeline tests

* del pipeline tests

* del useless print

* del useless print

* rewrite data repeats
2023-08-15 23:25:14 +08:00
..
__init__.py [shardformer] support Blip2 (#4243) 2023-08-15 23:25:14 +08:00
albert.py [test] added transformers models to test model zoo (#3135) 2023-03-15 11:26:10 +08:00
bert.py [pipeline] rewrite bert tests and fix some bugs (#4409) 2023-08-15 23:25:14 +08:00
blip2.py [Shardformer] Merge flash attention branch to pipeline branch (#4362) 2023-08-15 23:25:14 +08:00
bloom.py [Shardformer] Merge flash attention branch to pipeline branch (#4362) 2023-08-15 23:25:14 +08:00
chatglm.py [Shardformer] Merge flash attention branch to pipeline branch (#4362) 2023-08-15 23:25:14 +08:00
gpt.py [Shardformer] Merge flash attention branch to pipeline branch (#4362) 2023-08-15 23:25:14 +08:00
llama.py [shardformer] adapted T5 and LLaMa test to use kit (#4049) 2023-07-04 16:05:01 +08:00
opt.py [test] Hotfix/fix some model test and refactor check util api (#4369) 2023-08-15 23:25:14 +08:00
sam.py [shardformer] support SAM (#4231) 2023-08-15 23:25:14 +08:00
t5.py [Shardformer] Merge flash attention branch to pipeline branch (#4362) 2023-08-15 23:25:14 +08:00
vit.py [shardformer] support pipeline base vit model (#4284) 2023-08-15 23:25:14 +08:00
whisper.py [Shardformer] Merge flash attention branch to pipeline branch (#4362) 2023-08-15 23:25:14 +08:00