-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[kunlunxin] fix Vit and add configs (#362)
* init * add efficientnet * modify config * modify config * modify config * add efficientnet * modify config * add efficientnet * bug fix * add efficientnet * add efficientnet * fix code style * fix code style * fix code style * Revert "fix code style" This reverts commit ae86109. * fix code style * fix code style * fix code style * fix code style * fix code style * bug fix * add kunlunxin readme * fix mobilenetv2 on kunlunxin * add mobilenet config_R300x2x8.py * fix mobilenetv2 on kunlunxin * fix vit on kunlunxin * add vit 1x8 on kunlunxin * add vit 2x8 1x1 on kunlunxin * add vit 2x8 1x1 on kunlunxin * add vit 2x8 1x1 on kunlunxin * fix code style * fix code style --------- Co-authored-by: Feilei Du <[email protected]>
- Loading branch information
1 parent
1e54399
commit c7fb7a1
Showing
7 changed files
with
45 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from config_common import * | ||
|
||
train_batch_size = 128 | ||
eval_batch_size = 512 | ||
gradient_accumulation_steps = 4 | ||
# epochs = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
|
||
train_batch_size = 128 | ||
eval_batch_size = 512 | ||
lr = 0.003 * 0.5 | ||
gradient_accumulation_steps = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from config_common import * | ||
|
||
train_batch_size = 128 | ||
eval_batch_size = 512 | ||
gradient_accumulation_steps = 2 | ||
# epochs = 8 |
4 changes: 4 additions & 0 deletions
4
training/kunlunxin/vit-pytorch/config/environment_variables.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export XACC=1 | ||
export BKCL_PCIE_RING=1 | ||
export BKCL_TIMEOUT=1800 | ||
export XMLIR_D_XPU_L3_SIZE=66060288 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
https://download.pytorch.org/whl/cpu/torchvision-0.13.1%2Bcpu-cp38-cp38-linux_x86_64.whl | ||
tabulate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters