-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TT-Train] Added Yaml Configs support (#15352)
### What's changed * Moved models out of examples. * Added yaml configs support * A few small improvements ### Checklist - [x] Post commit CI passes - [x] Blackhole Post commit (if applicable) - [x] Model regression CI testing passes (if applicable) - [x] Device performance regression CI testing passes (if applicable) - [x] New/Existing tests provide coverage for changes
- Loading branch information
1 parent
37fc6b6
commit dce7015
Showing
29 changed files
with
428 additions
and
268 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{ | ||
"editor.formatOnSave": true | ||
"editor.formatOnSave": true, | ||
"files.autoSave": "afterDelay", | ||
"C_Cpp.clang_format_style": ".clang-format" | ||
} |
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,14 @@ | ||
training_config: | ||
batch_size: 128 | ||
logging_interval: 50 | ||
num_epochs: 10 | ||
learning_rate: 0.1 | ||
momentum: 0.9 | ||
weight_decay: 0.0 | ||
is_eval: false | ||
model_save_interval: 500 | ||
model_path: "/tmp/mnist_mlp.msgpack" | ||
mlp_config: | ||
input_features: 784 | ||
hidden_features: [128] | ||
output_features: 10 |
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,17 @@ | ||
training_config: | ||
project_name: "tt_train_nano_gpt" | ||
seed: 5489 | ||
model_save_interval: 500 | ||
batch_size: 64 | ||
num_epochs: 1 | ||
max_steps: 5000 | ||
learning_rate: 0.0003 | ||
weight_decay: 0.01 | ||
|
||
transformer_config: | ||
num_heads: 6 | ||
embedding_dim: 384 | ||
dropout_prob: 0.2 | ||
num_blocks: 6 | ||
vocab_size: 96 | ||
max_sequence_length: 256 |
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
project(linear_regression) | ||
|
||
set(SOURCES main.cpp) | ||
|
||
add_executable(linear_regression ${SOURCES}) | ||
target_link_libraries(linear_regression PRIVATE ttml) |
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.