Skip to content

Commit

Permalink
transformer test succeed
Browse files Browse the repository at this point in the history
  • Loading branch information
wusar committed Aug 15, 2023
1 parent 8e3595d commit fe5b8ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/llama/llama_ark.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def __init__(self, params: ModelArgs):
# )

self.layers = []
for layer_id in range(6):
for layer_id in range(self.n_layers):
self.tmp_layer = TransformerBlock(layer_id, params)
self.layers.append(self.tmp_layer)

Expand Down
4 changes: 2 additions & 2 deletions examples/llama/llama_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,5 +371,5 @@ def test_rotary_embedding():
# test_attention()
# test_feedforward()
# test_transformerblock()
# test_transformer()
test_rotary_embedding()
test_transformer()
# test_rotary_embedding()

0 comments on commit fe5b8ad

Please sign in to comment.