mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-08 20:40:34 +00:00
[shardformer] rewrite tests for opt/bloom/llama/vit/chatglm (#4395)
* rewrite opt tests * rewrite llama tests * rewrite bloom & vit tests * rewrite chatglm tests * fix LinearCol for classfiers * add judge for other tp layers, fix lazy init in util
This commit is contained in:
committed by
Hongxin Liu
parent
21e0a42fd1
commit
7711bd524a
@@ -7,11 +7,7 @@ from ..registry import ModelAttribute, model_zoo
|
||||
# Register single-sentence VIT
|
||||
# ===============================
|
||||
|
||||
config = transformers.ViTConfig(
|
||||
num_hidden_layers=4,
|
||||
# hidden_size=128,
|
||||
# intermediate_size=256,
|
||||
num_attention_heads=4)
|
||||
config = transformers.ViTConfig(num_hidden_layers=4, hidden_size=128, intermediate_size=256, num_attention_heads=4)
|
||||
|
||||
|
||||
# define data gen function
|
||||
|
Reference in New Issue
Block a user