Skip to content

Commit

Permalink
model_config instead of cfg.model
Browse files Browse the repository at this point in the history
  • Loading branch information
danbider committed Aug 16, 2023
1 parent 9ec0f69 commit a4439c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/train/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def main(cfg: DictConfig):
# Build Model
with init_context:
print('Initializing model...')
model = build_composer_model(cfg.model, tokenizer)
model = build_composer_model(model_config, tokenizer)

# Log number of parameters
n_params = sum(p.numel() for p in model.parameters())
Expand Down

0 comments on commit a4439c5

Please sign in to comment.