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_configGenerator 1.0 KB

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
33
34
35
36
37
38
39
40
41
42
  1. import argparse
  2. from GANDLF.cli import config_generator, copyrightMessage
  3. if __name__ == "__main__":
  4. parser = argparse.ArgumentParser(
  5. prog="GANDLF_ConfigGenerator",
  6. formatter_class=argparse.RawTextHelpFormatter,
  7. description="Generate multiple GaNDLF configurations based on a single baseline GaNDLF for experimentation.\n\n"
  8. + copyrightMessage,
  9. )
  10. parser.add_argument(
  11. "-c",
  12. "--config",
  13. metavar="",
  14. type=str,
  15. help="Path to base config.",
  16. required=True,
  17. )
  18. parser.add_argument(
  19. "-s",
  20. "--strategy",
  21. metavar="",
  22. type=str,
  23. help="Config creation strategy in a yaml format.",
  24. required=True,
  25. )
  26. parser.add_argument(
  27. "-o",
  28. "--output",
  29. metavar="",
  30. type=str,
  31. help="Path to output directory.",
  32. required=True,
  33. )
  34. args = parser.parse_args()
  35. config_generator(args.config, args.strategy, args.output)
  36. print("Finished.")
Tip!

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

Comments

Loading...