Skip to content

Commit

Permalink
Config.from_json: support for legacy bias and lm_head_bias
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei-Aksionov authored and rasbt committed Mar 18, 2024
1 parent 188162d commit 8def859
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions litgpt/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ def norm_class(self) -> Type:
n_query_groups=1,
rotary_percentage=1.0,
parallel_residual=False,
bias=False,
bias_map=BiasMap(False),
norm_class_name="RMSNorm",
mlp_class_name="GemmaMLP",
gelu_approximate="tanh",
Expand All @@ -885,7 +885,7 @@ def norm_class(self) -> Type:
head_size=256,
rotary_percentage=1.0,
parallel_residual=False,
bias=False,
bias_map=BiasMap(False),
norm_class_name="RMSNorm",
mlp_class_name="GemmaMLP",
gelu_approximate="tanh",
Expand Down Expand Up @@ -998,7 +998,7 @@ def norm_class(self) -> Type:
n_query_groups=8,
rotary_percentage=1.0,
parallel_residual=False,
bias=False,
bias_map=BiasMap(False),
norm_class_name="RMSNorm",
norm_eps=1e-05,
mlp_class_name="LLaMAMLP",
Expand Down Expand Up @@ -1074,7 +1074,7 @@ def norm_class(self) -> Type:
n_query_groups=8,
rotary_percentage=1.0,
parallel_residual=False,
bias=False,
bias_map=BiasMap(False),
norm_class_name="RMSNorm",
norm_eps=1e-05,
mlp_class_name="LLaMAMLP",
Expand Down Expand Up @@ -1150,7 +1150,7 @@ def norm_class(self) -> Type:
n_query_groups=8,
rotary_percentage=1.0,
parallel_residual=False,
bias=False,
bias_map=BiasMap(False),
norm_class_name="RMSNorm",
norm_eps=1e-05,
mlp_class_name="LLaMAMLP",
Expand Down Expand Up @@ -1409,7 +1409,7 @@ def norm_class(self) -> Type:
n_query_groups=8,
rotary_percentage=1.0,
parallel_residual=False,
bias=False,
bias_map=BiasMap(False),
norm_class_name="RMSNorm",
norm_eps=1e-05,
mlp_class_name="LLaMAMLP",
Expand Down

0 comments on commit 8def859

Please sign in to comment.