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

#869 Add DagsHub Logger to Super Gradients

Merged
Ghost merged 1 commits into Deci-AI:master from timho102003:dagshub_logger
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
  1. """
  2. Example code for running SuperGradient's recipes.
  3. General use: python -m super_gradients.train_from_kd_recipe --config-name="DESIRED_RECIPE".
  4. For recipe's specific instructions and details refer to the recipe's configuration file in the recipes directory.
  5. """
  6. from omegaconf import DictConfig
  7. import hydra
  8. from super_gradients import init_trainer
  9. from super_gradients.training.kd_trainer import KDTrainer
  10. @hydra.main(config_path="recipes", version_base="1.2")
  11. def _main(cfg: DictConfig) -> None:
  12. KDTrainer.train_from_config(cfg)
  13. def main() -> None:
  14. init_trainer() # `init_trainer` needs to be called before `@hydra.main`
  15. _main()
  16. if __name__ == "__main__":
  17. main()
Discard
Tip!

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