Skip to content

Commit

Permalink
[frontend] output bert params
Browse files Browse the repository at this point in the history
  • Loading branch information
xTayEx committed Nov 28, 2023
1 parent cbdfc44 commit abbc6fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/BuddyLlama/import-llama2.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
# Import the model into MLIR module and parameters.
with torch.no_grad():
gm, params = dynamo_compiler.importer(
model, torch.tensor([[1 for i in range(40)]], dtype=torch.int64)
model, torch.tensor([[1 for _ in range(40)]], dtype=torch.int64)
)

path_prefix = os.path.dirname(os.path.abspath(__file__))
Expand Down
2 changes: 1 addition & 1 deletion examples/BuddyPython/bert.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
with torch.no_grad():
module, params = dynamo_compiler.importer(model, **encoded_text)
print(module)
# print(params)
print(params)

0 comments on commit abbc6fc

Please sign in to comment.