mirror of
https://github.com/xai-org/grok-1.git
synced 2025-04-03 18:00:10 +03:00
Merge 9024770ce8
into 7050ed204b
This commit is contained in:
commit
7f05f69b67
4
model.py
4
model.py
@ -90,9 +90,7 @@ def ffn_size(emb_size, widening_factor):
|
||||
|
||||
|
||||
def apply_rules(rules):
|
||||
def _apply_rules(path, value):
|
||||
del value # Unused.
|
||||
|
||||
def _apply_rules(path, _):
|
||||
path_list = [str(i.key).split("/") for i in path if isinstance(i, jax.tree_util.DictKey)]
|
||||
flattened_path = jax.tree_util.tree_flatten(path_list)[0]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user