Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
add set_seed for spr path (#1242)
Browse files Browse the repository at this point in the history
  • Loading branch information
sywangyi authored Jul 28, 2023
1 parent ca1e26e commit 4c75efe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions workflows/chatbot/inference/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,9 @@ def main():
from optimum.habana.utils import set_seed

set_seed(args.seed)
else:
from transformers import set_seed
set_seed(args.seed)

tokenizer_path = (
args.tokenizer_name if args.tokenizer_name is not None else base_model_path
Expand Down

0 comments on commit 4c75efe

Please sign in to comment.