Skip to content

Commit

Permalink
small fix in hf_config
Browse files Browse the repository at this point in the history
  • Loading branch information
jmercat committed Apr 18, 2024
1 parent 07661b4 commit 1004591
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,18 @@ venv
wandb
logs
checkpoints
data
results
preproc_data
logs
wandb
*.pt
.pytest_cache
.vscode
.git
tmp
attention_logs
not_val_shard
attention_logs
training/eval_data

2 changes: 1 addition & 1 deletion open_lm/utils/transformers/hf_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ def __init__(

def set_params(self, params: Params):
self.tie_word_embeddings = params.weight_tying
for field in fields(params):
for field in fields(Params):
setattr(self, field.name, getattr(params, field.name))

0 comments on commit 1004591

Please sign in to comment.