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

#609 Ci fix

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:bugfix/infra-000_ci
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
  1. class UnsupportedTrainingParameterFormat(Exception):
  2. """Exception raised illegal training param format.
  3. Attributes:
  4. message -- explanation of the error
  5. """
  6. def __init__(self, desc):
  7. self.message = "Unsupported training parameter format: " + desc
  8. super().__init__(self.message)
  9. class UnsupportedOptimizerFormat(UnsupportedTrainingParameterFormat):
  10. """Exception raised illegal optimizer format.
  11. Attributes:
  12. message -- explanation of the error
  13. """
  14. def __init__(self):
  15. super().__init__("optimizer parameter expected one of ['Adam','SGD','RMSProp'], or torch.optim.Optimizer object")
  16. class IllegalDataloaderInitialization(Exception):
  17. """Exception raised illegal data loaders."""
  18. def __init__(self):
  19. super().__init__("train_loader, valid_loader and class parameters are required when initializing Trainer with data loaders")
  20. class GPUModeNotSetupError(Exception):
  21. """Exception raised when the DDP should be setup but is not."""
  22. def __init__(self):
  23. super().__init__(
  24. "Your environment was not setup to support DDP. Please run at the beginning of your script:\n"
  25. ">>> from super_gradients.common.environment.env_helpers import init_trainer\n"
  26. ">>> setup_device(multi_gpu=..., num_gpus=...)\n"
  27. )
Discard
Tip!

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