Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
yangky11 committed Jul 13, 2024
1 parent d346981 commit 1c2b541
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/convert_checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def convert(model_type: str, src: str, dst: str) -> None:
model = PremiseRetriever.load(src, device, freeze=True)
model.encoder.save_pretrained(dst)
model.tokenizer.save_pretrained(dst)


def main() -> None:
parser = argparse.ArgumentParser()
Expand All @@ -32,4 +32,4 @@ def main() -> None:


if __name__ == "__main__":
main()
main()

0 comments on commit 1c2b541

Please sign in to comment.