Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
jeswan committed Jan 28, 2021
1 parent 35e127b commit 58b5b18
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions jiant/proj/main/modeling/model_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,7 @@ def create_taskmodel(task, jiant_transformers_model, **taskmodel_kwargs) -> Task
head_kwargs["vocab_size"] = jiant_transformers_model.config.vocab_size
head_kwargs["layer_norm_eps"] = (jiant_transformers_model.config.layer_norm_eps,)
head_kwargs["hidden_act"] = jiant_transformers_model.config.hidden_act
head_kwargs["model_arch"] = ModelArchitectures(
jiant_transformers_model.config.model_type
)
head_kwargs["model_arch"] = ModelArchitectures(jiant_transformers_model.config.model_type)

head = JiantHeadFactory()(task, **head_kwargs)

Expand Down

0 comments on commit 58b5b18

Please sign in to comment.