Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

gandlf_verifyInstall 882 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  1. #!usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import os, argparse, sys
  4. # main function
  5. if __name__ == "__main__":
  6. parser = argparse.ArgumentParser(
  7. prog="GANDLF_VerifyInstall",
  8. formatter_class=argparse.RawTextHelpFormatter,
  9. description="Verify GaNDLF installation.",
  10. )
  11. try:
  12. import GANDLF as gf
  13. print("GaNDLF installed version:", gf.__version__)
  14. except:
  15. raise Exception(
  16. "GaNDLF not properly installed, please see https://mlcommons.github.io/GaNDLF/setup"
  17. )
  18. # we always want to do submodule update to ensure any hash updates are ingested correctly
  19. try:
  20. os.system(f"{sys.executable} -m pip install -e .")
  21. except:
  22. print("Git was not found, please try again.")
  23. args = parser.parse_args()
  24. print("GaNDLF is ready. See https://mlcommons.github.io/GaNDLF/usage")
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...