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

#381 Feature/sg 000 connect to lab

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:feature/sg-000_connect_to_lab
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. 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__(
  16. "optimizer parameter expected one of ['Adam','SGD','RMSProp'], or torch.optim.Optimizer object")
  17. class IllegalDataloaderInitialization(Exception):
  18. """Exception raised illegal data loaders.
  19. """
  20. def __init__(self):
  21. super().__init__(
  22. "train_loader, valid_loader and class parameters are required when initializing Trainer with data loaders")
  23. class GPUModeNotSetupError(Exception):
  24. """Exception raised when the DDP should be setup but is not.
  25. """
  26. def __init__(self):
  27. super().__init__("Your environment was not setup to support DDP. Please run at the beginning of your script:\n"
  28. ">>> from super_gradients.common.environment.env_helpers import init_trainer\n"
  29. ">>> setup_gpu_mode(gpu_mode=..., num_gpus=...)\n")
Discard
Tip!

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