Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
281 commits
Select commit Hold shift + click to select a range
28b7189
Fix dense features concat
abheesht17 Aug 20, 2025
a47817d
Rename multi_hot_size to feature_list_length
abheesht17 Aug 20, 2025
9a33f09
Rename sparse to lookup
abheesht17 Aug 20, 2025
a66e1c6
Debug
abheesht17 Aug 20, 2025
a56532a
Try out XLA flags
abheesht17 Aug 20, 2025
0a9d00b
Format
abheesht17 Aug 20, 2025
42c4022
Format
abheesht17 Aug 20, 2025
6e76b59
Copy over Antonio's fixes
abheesht17 Sep 3, 2025
ed03727
Change dataloader to global bsz
abheesht17 Sep 10, 2025
68a8aec
Merge branch 'main' of https://github.com/abheesht17/keras-rs into ml…
abheesht17 Oct 15, 2025
9d97fda
Merge branch 'main' into ml-perf
abheesht17 Oct 15, 2025
6902303
Revert all non-example changes
abheesht17 Oct 15, 2025
5118325
Address some comments + move to step-based trainer
abheesht17 Oct 18, 2025
f097378
Merge branch 'keras-team:main' into ml-perf
abheesht17 Oct 18, 2025
59c9d08
Fix
abheesht17 Oct 18, 2025
af9ba92
Refactor configs to one file
abheesht17 Oct 18, 2025
8b6e300
Follow the original example in specifying input/output shape
abheesht17 Oct 19, 2025
760639a
Add debugging statements
abheesht17 Oct 19, 2025
deaf35a
Add debugging statements
abheesht17 Oct 19, 2025
3d0b640
Add debugging statements
abheesht17 Oct 19, 2025
5782407
Add debugging statements
abheesht17 Oct 19, 2025
94ffb7e
Temp comment out stats update code
abheesht17 Oct 20, 2025
c578ff8
Change input size to dist emb
abheesht17 Oct 20, 2025
b3425f9
Bsz
abheesht17 Oct 20, 2025
f2a849a
Bsz
abheesht17 Oct 20, 2025
d08479e
Bsz
abheesht17 Oct 20, 2025
604c07b
Restore stats stuff
abheesht17 Oct 21, 2025
1d5e983
Comment out stats update for now
abheesht17 Oct 21, 2025
832605e
Try alternate way of sharding dataset
abheesht17 Oct 21, 2025
e621af7
Try alternate way of sharding dataset
abheesht17 Oct 21, 2025
0b11227
Try alternate way of sharding dataset
abheesht17 Oct 21, 2025
136a57f
Debug
abheesht17 Oct 21, 2025
2ae73ce
Debug
abheesht17 Oct 21, 2025
17cb17b
Debug
abheesht17 Oct 21, 2025
37c21e3
Debug
abheesht17 Oct 21, 2025
ebcb9d0
Debug
abheesht17 Oct 21, 2025
e8b86a5
Debug
abheesht17 Oct 21, 2025
726dab1
Debug
abheesht17 Oct 21, 2025
e3af0e9
Debug
abheesht17 Oct 21, 2025
c79fc2c
Debug
abheesht17 Oct 21, 2025
627dec8
Debug
abheesht17 Oct 21, 2025
f4d255a
Debug
abheesht17 Oct 21, 2025
e3bde15
Fix data loading and change bsz to 16K
abheesht17 Oct 21, 2025
453e169
Reduce bsz
abheesht17 Oct 21, 2025
9bf0574
Increase bsz again
abheesht17 Oct 21, 2025
c6be1fb
Increase bsz again
abheesht17 Oct 21, 2025
8577902
Disable pbar
abheesht17 Oct 21, 2025
293b1ee
Add basic metric logger
abheesht17 Oct 21, 2025
d84be13
Add basic metric logger
abheesht17 Oct 21, 2025
bd68100
Reduce bsz
abheesht17 Oct 21, 2025
b552276
Reduce bsz
abheesht17 Oct 21, 2025
898c874
Reduce bsz
abheesht17 Oct 22, 2025
901bed0
Reduce bsz
abheesht17 Oct 22, 2025
82fe81d
Add cfg for v6e-16 full dataset
abheesht17 Oct 22, 2025
107c79d
Debug
abheesht17 Oct 22, 2025
73414eb
Debug
abheesht17 Oct 22, 2025
2ed102c
Debug
abheesht17 Oct 22, 2025
dc18965
Debug
abheesht17 Oct 22, 2025
83b9fe0
Debug
abheesht17 Oct 22, 2025
55a210d
Merge master changes
abheesht17 Oct 22, 2025
3492237
Comment out code
abheesht17 Oct 22, 2025
4cf06fd
Add logging statements
abheesht17 Oct 22, 2025
19fa3f5
Format
abheesht17 Oct 22, 2025
f89a6a9
Use Py logger instead of absl
abheesht17 Oct 22, 2025
6fee9dc
Clean up config passing
abheesht17 Oct 22, 2025
0130641
Fix warning log call
abheesht17 Oct 22, 2025
3d16e12
Fix cfg access in some places
abheesht17 Oct 22, 2025
9f184fc
Clean up logging
abheesht17 Oct 22, 2025
d83e4af
Add val logging
abheesht17 Oct 22, 2025
bae2695
Fix data generator so that data is refreshed correctly
abheesht17 Oct 22, 2025
5960be1
Fix
abheesht17 Oct 22, 2025
14fcc7c
Allow conditional data repetition
abheesht17 Oct 22, 2025
8c9797a
Temporarily remove validation
abheesht17 Oct 22, 2025
37e60fe
Uncomment stat updates
abheesht17 Oct 22, 2025
03512dd
Uncomment stat updates
abheesht17 Oct 22, 2025
9dba0fc
Debug
abheesht17 Oct 22, 2025
61d3b1a
Debug
abheesht17 Oct 22, 2025
a58a509
Debug
abheesht17 Oct 22, 2025
4a4abd3
Debug
abheesht17 Oct 22, 2025
19d82fd
Debug
abheesht17 Oct 23, 2025
2b32be0
Debug
abheesht17 Oct 23, 2025
126c590
Merge branch 'keras-team:main' into ml-perf
abheesht17 Oct 23, 2025
2c56aa7
Debug
abheesht17 Oct 23, 2025
6815d8b
Debug
abheesht17 Oct 23, 2025
86299be
Debug
abheesht17 Oct 24, 2025
1f98414
Debug
abheesht17 Oct 24, 2025
1b86450
Debug
abheesht17 Oct 24, 2025
a504a2e
Debug
abheesht17 Oct 24, 2025
e7451f0
Debug
abheesht17 Oct 24, 2025
8141086
Debug
abheesht17 Oct 24, 2025
4a700dc
Debug
abheesht17 Oct 24, 2025
8ef3782
Debug
abheesht17 Oct 24, 2025
17d5ec3
Debug
abheesht17 Oct 24, 2025
c2a6da2
Debug
abheesht17 Oct 24, 2025
9614833
Debug
abheesht17 Oct 24, 2025
90592c7
Debug
abheesht17 Oct 24, 2025
68c320a
Debug
abheesht17 Oct 25, 2025
079499a
Debug
abheesht17 Oct 25, 2025
1de870b
Debug
abheesht17 Oct 25, 2025
7251303
Debug
abheesht17 Oct 25, 2025
1fabedb
Debug
abheesht17 Oct 25, 2025
8e88127
Debug
abheesht17 Oct 25, 2025
2ac4497
Debug
abheesht17 Oct 25, 2025
1816c91
Debug
abheesht17 Oct 25, 2025
1f2a0f5
Debug
abheesht17 Oct 25, 2025
f74e4b5
Debug
abheesht17 Oct 25, 2025
3e78c47
Debug
abheesht17 Oct 25, 2025
17a6825
Debug
abheesht17 Oct 25, 2025
ea04145
Debug
abheesht17 Oct 25, 2025
1814497
Debug
abheesht17 Oct 25, 2025
7549ce3
Debug
abheesht17 Oct 25, 2025
521886e
Debug
abheesht17 Oct 25, 2025
3d26c36
Debug
abheesht17 Oct 25, 2025
3c81da7
Debug
abheesht17 Oct 26, 2025
5ec3caa
Debug
abheesht17 Oct 26, 2025
b6e7a48
Debug
abheesht17 Oct 26, 2025
0fa7497
Debug
abheesht17 Oct 26, 2025
c2d1a3b
Debug
abheesht17 Oct 26, 2025
dc9bfd8
Debug
abheesht17 Oct 26, 2025
67c9204
Debug
abheesht17 Oct 26, 2025
ecab799
Debug
abheesht17 Oct 26, 2025
e0a59cb
Debug
abheesht17 Oct 26, 2025
dcb1745
Debug
abheesht17 Oct 26, 2025
3d7f611
Debug
abheesht17 Oct 27, 2025
12d354e
Debug
abheesht17 Oct 27, 2025
6416fee
Debug
abheesht17 Oct 27, 2025
7c7d55d
Debug
abheesht17 Oct 27, 2025
357d540
Debug
abheesht17 Oct 27, 2025
1a03265
Debug
abheesht17 Oct 27, 2025
d71e7e0
Debug
abheesht17 Oct 27, 2025
eddff34
Debug
abheesht17 Oct 27, 2025
187c534
Debug
abheesht17 Oct 27, 2025
1c13e13
Debug
abheesht17 Oct 27, 2025
a26ef29
Debug
abheesht17 Oct 27, 2025
dffcb96
Debug
abheesht17 Oct 27, 2025
1995e16
Debug
abheesht17 Oct 27, 2025
2e42b53
Debug
abheesht17 Oct 27, 2025
9e8d153
Debug
abheesht17 Oct 27, 2025
e9c5ba3
Debug
abheesht17 Oct 27, 2025
a344487
Debug
abheesht17 Oct 27, 2025
05d422e
Debug
abheesht17 Oct 27, 2025
d35876d
Debug
abheesht17 Oct 27, 2025
7e41ec7
Debug
abheesht17 Oct 27, 2025
16019c3
Debug
abheesht17 Oct 27, 2025
7995733
Debug
abheesht17 Oct 27, 2025
3732bfd
Debug
abheesht17 Oct 27, 2025
9920143
Debug
abheesht17 Oct 27, 2025
aadb2b1
Debug
abheesht17 Oct 27, 2025
fc4a26a
Debug
abheesht17 Oct 27, 2025
059752f
Debug
abheesht17 Oct 27, 2025
e5929f5
Debug
abheesht17 Oct 27, 2025
29a47ff
Debug
abheesht17 Oct 27, 2025
dbd896e
Debug
abheesht17 Oct 27, 2025
c04d6f0
Debug
abheesht17 Oct 27, 2025
6af186d
Debug
abheesht17 Oct 27, 2025
1a59ca6
Debug
abheesht17 Oct 27, 2025
23e08b3
Debug
abheesht17 Oct 27, 2025
ab75ffb
Debug
abheesht17 Oct 27, 2025
8b26c09
Debug
abheesht17 Oct 27, 2025
41cae78
Debug
abheesht17 Oct 27, 2025
04c93b0
Debug
abheesht17 Oct 27, 2025
dc3251e
Debug
abheesht17 Oct 27, 2025
d199d4f
Debug
abheesht17 Oct 27, 2025
a920936
Debug
abheesht17 Oct 27, 2025
369c4d2
Debug
abheesht17 Oct 27, 2025
6599a10
Debug
abheesht17 Oct 27, 2025
2c7c4e0
Debug
abheesht17 Oct 27, 2025
9e09416
Debug
abheesht17 Oct 27, 2025
a626141
Debug
abheesht17 Oct 27, 2025
89aa78f
Debug
abheesht17 Oct 27, 2025
d06329a
Debug
abheesht17 Oct 27, 2025
b6b8413
Debug
abheesht17 Oct 27, 2025
7b10edf
Fix small emb order
abheesht17 Oct 27, 2025
f7b8407
Fix small emb order
abheesht17 Oct 27, 2025
2879d4b
Debug
abheesht17 Oct 27, 2025
6c3f8ce
Debug
abheesht17 Oct 27, 2025
8a5cfca
Debug
abheesht17 Oct 27, 2025
b8b4935
Debug
abheesht17 Oct 27, 2025
b349d26
Debug
abheesht17 Oct 27, 2025
c6b9ce0
Debug
abheesht17 Oct 27, 2025
3bb4335
Debug
abheesht17 Oct 27, 2025
d43447b
Debug
abheesht17 Oct 27, 2025
dd716a8
Debug
abheesht17 Oct 27, 2025
a39c3f7
Debug
abheesht17 Oct 27, 2025
8da4108
Debug
abheesht17 Oct 27, 2025
02a1e65
Debug
abheesht17 Oct 27, 2025
443daf9
Debug
abheesht17 Oct 27, 2025
02d1d2c
Debug
abheesht17 Oct 27, 2025
819b9c8
Debug
abheesht17 Oct 27, 2025
d6a8b76
Debug
abheesht17 Oct 27, 2025
c8c1ecc
Debug
abheesht17 Oct 28, 2025
60a0c93
Debug
abheesht17 Oct 28, 2025
c79a08a
Debug
abheesht17 Oct 28, 2025
8155280
Debug
abheesht17 Oct 28, 2025
f34ba98
Debug
abheesht17 Oct 28, 2025
8541e6e
Debug
abheesht17 Oct 28, 2025
6f31887
Debug
abheesht17 Oct 28, 2025
12e5023
Debug
abheesht17 Oct 28, 2025
4cd51b7
Debug
abheesht17 Oct 28, 2025
3e104ee
Debug
abheesht17 Oct 28, 2025
c599cf9
Debug
abheesht17 Oct 28, 2025
fe1fb19
Debug
abheesht17 Oct 28, 2025
355154f
Debug
abheesht17 Oct 28, 2025
b1171c3
Debug
abheesht17 Oct 28, 2025
ff94989
Debug
abheesht17 Oct 28, 2025
83598f7
Debug
abheesht17 Oct 28, 2025
d5d5946
Debug
abheesht17 Oct 28, 2025
fe77e08
Debug
abheesht17 Oct 28, 2025
dfe4019
Debug
abheesht17 Oct 28, 2025
af25d59
Debug
abheesht17 Oct 28, 2025
1c53c29
Debug
abheesht17 Oct 28, 2025
b1f478e
Debug
abheesht17 Oct 28, 2025
46f5733
Debug
abheesht17 Oct 28, 2025
534e7e3
Debug
abheesht17 Oct 28, 2025
b39c6d8
Debug
abheesht17 Oct 28, 2025
b9e7d71
Debug
abheesht17 Oct 28, 2025
929d7fd
Debug
abheesht17 Oct 28, 2025
e51b434
Debug
abheesht17 Oct 28, 2025
f1f9fed
Debug
abheesht17 Oct 28, 2025
eb78ec5
Debug
abheesht17 Oct 28, 2025
6f9ab3a
Debug
abheesht17 Oct 28, 2025
7c65c02
Debug
abheesht17 Oct 28, 2025
fa79280
Debug
abheesht17 Oct 28, 2025
6a9978c
Debug
abheesht17 Oct 28, 2025
aa5c7aa
Debug
abheesht17 Oct 28, 2025
24e0267
Debug
abheesht17 Oct 29, 2025
8d8bea9
Full run
abheesht17 Oct 29, 2025
248b150
Full run
abheesht17 Oct 29, 2025
4d73c5c
Full run
abheesht17 Oct 29, 2025
6ec11c1
Add profiling statements
abheesht17 Oct 29, 2025
dc738a2
Add profiling statements
abheesht17 Oct 29, 2025
7b6b036
Some dataloader options
abheesht17 Oct 29, 2025
4e950f0
Some dataloader options
abheesht17 Oct 29, 2025
657e8d5
Debug
abheesht17 Oct 29, 2025
0ed121b
Debug
abheesht17 Oct 29, 2025
0de1f0b
Debug
abheesht17 Oct 29, 2025
6cfc3fc
Debug
abheesht17 Oct 29, 2025
a1c65c4
Debug
abheesht17 Oct 29, 2025
7b4b18d
Debug
abheesht17 Oct 29, 2025
4e5259f
Debug
abheesht17 Oct 29, 2025
18b97f3
Debug
abheesht17 Oct 29, 2025
5c56e1b
Debug
abheesht17 Oct 29, 2025
37345dd
Debug
abheesht17 Oct 29, 2025
06a0a79
Remove auto stack kwargs
abheesht17 Oct 30, 2025
19c1dd8
Merge branch 'keras-team:main' into ml-perf
abheesht17 Oct 30, 2025
4bfbf95
Comment out profiling
abheesht17 Oct 30, 2025
a0578cc
Comment out stat update for now
abheesht17 Oct 30, 2025
05f8905
Debug
abheesht17 Oct 30, 2025
ff0625f
Debug
abheesht17 Oct 30, 2025
36535df
Debug
abheesht17 Oct 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
209 changes: 209 additions & 0 deletions examples/ml_perf/configs/v6e_16.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,209 @@
from keras.utils import Config

config = Config()

# === Experiment metadata ===
config.experiment_name = "v6e_16"
config.model_dir = "./v6e_16"

# === Dataset ===
dataset_config = Config()
dataset_config.file_pattern = None
dataset_config.val_file_pattern = None

# Features
dataset_config.label = "clicked"
dataset_config.dense = [f"int-feature-{i}" for i in range(1, 14)]
dataset_config.lookup = [
{
"name": "categorical-feature-14",
"vocabulary_size": 40000000,
"feature_list_length": 3,
"new_name": "0",
},
{
"name": "categorical-feature-15",
"vocabulary_size": 39060,
"feature_list_length": 2,
"new_name": "1",
},
{
"name": "categorical-feature-16",
"vocabulary_size": 17295,
"feature_list_length": 1,
"new_name": "2",
},
{
"name": "categorical-feature-17",
"vocabulary_size": 7424,
"feature_list_length": 2,
"new_name": "3",
},
{
"name": "categorical-feature-18",
"vocabulary_size": 20265,
"feature_list_length": 6,
"new_name": "4",
},
{
"name": "categorical-feature-19",
"vocabulary_size": 3,
"feature_list_length": 1,
"new_name": "5",
},
{
"name": "categorical-feature-20",
"vocabulary_size": 7122,
"feature_list_length": 1,
"new_name": "6",
},
{
"name": "categorical-feature-21",
"vocabulary_size": 1543,
"feature_list_length": 1,
"new_name": "7",
},
{
"name": "categorical-feature-22",
"vocabulary_size": 63,
"feature_list_length": 1,
"new_name": "8",
},
{
"name": "categorical-feature-23",
"vocabulary_size": 40000000,
"feature_list_length": 7,
"new_name": "9",
},
{
"name": "categorical-feature-24",
"vocabulary_size": 3067956,
"feature_list_length": 3,
"new_name": "10",
},
{
"name": "categorical-feature-25",
"vocabulary_size": 405282,
"feature_list_length": 8,
"new_name": "11",
},
{
"name": "categorical-feature-26",
"vocabulary_size": 10,
"feature_list_length": 1,
"new_name": "12",
},
{
"name": "categorical-feature-27",
"vocabulary_size": 2209,
"feature_list_length": 6,
"new_name": "13",
},
{
"name": "categorical-feature-28",
"vocabulary_size": 11938,
"feature_list_length": 9,
"new_name": "14",
},
{
"name": "categorical-feature-29",
"vocabulary_size": 155,
"feature_list_length": 5,
"new_name": "15",
},
{
"name": "categorical-feature-30",
"vocabulary_size": 4,
"feature_list_length": 1,
"new_name": "16",
},
{
"name": "categorical-feature-31",
"vocabulary_size": 976,
"feature_list_length": 1,
"new_name": "17",
},
{
"name": "categorical-feature-32",
"vocabulary_size": 14,
"feature_list_length": 1,
"new_name": "18",
},
{
"name": "categorical-feature-33",
"vocabulary_size": 40000000,
"feature_list_length": 12,
"new_name": "19",
},
{
"name": "categorical-feature-34",
"vocabulary_size": 40000000,
"feature_list_length": 100,
"new_name": "20",
},
{
"name": "categorical-feature-35",
"vocabulary_size": 40000000,
"feature_list_length": 27,
"new_name": "21",
},
# {
# "name": "categorical-feature-36",
# "vocabulary_size": 590152,
# "feature_list_length": 10,
# "new_name": "22",
# },
{
"name": "categorical-feature-37",
"vocabulary_size": 12973,
"feature_list_length": 3,
"new_name": "23",
},
{
"name": "categorical-feature-38",
"vocabulary_size": 108,
"feature_list_length": 1,
"new_name": "24",
},
{
"name": "categorical-feature-39",
"vocabulary_size": 36,
"feature_list_length": 1,
"new_name": "25",
},
]

# === Model ===
model_config = Config()
# Embedding
model_config.embedding_dim = 128
model_config.allow_id_dropping = True
model_config.embedding_threshold = 21000
model_config.max_ids_per_partition = 8192
model_config.max_unique_ids_per_partition = 4096
model_config.learning_rate = 0.0034

# MLP
model_config.bottom_mlp_dims = [512, 256, 128]
model_config.top_mlp_dims = [1024, 1024, 512, 256, 1]

# DCN
model_config.num_dcn_layers = 3
model_config.dcn_projection_dim = 512

# === Training ===
training_config = Config()
training_config.learning_rate = 0.0034
training_config.global_batch_size = 16896
# Set `num_steps` instead of `num_epochs`, because we are using a Python
# generator.
training_config.num_steps = 10
training_config.eval_freq = 5
training_config.num_eval_steps = 10

# === Assign all configs to the root config ===
config.dataset = dataset_config
config.model = model_config
config.training = training_config

config.freeze()
Loading
Loading