mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-12 12:47:21 +00:00
[booster] implemented mixed precision class (#3151)
* [booster] implemented mixed precision class * polish code
This commit is contained in:
@@ -6,7 +6,7 @@ from ..registry import ModelAttribute, model_zoo
|
||||
# ===============================
|
||||
# Register single-sentence GPT
|
||||
# ===============================
|
||||
BATCH_SIZE = 2
|
||||
BATCH_SIZE = 1 # it can only be 1 as GPT cannot handle batch sizes > 1 if no padding token is defined.
|
||||
SEQ_LENGTH = 16
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user