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

qat_trainer.py 608 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
  1. from typing import Union, Tuple
  2. from deprecated import deprecated
  3. from omegaconf import DictConfig
  4. from torch import nn
  5. from super_gradients.common.abstractions.abstract_logger import get_logger
  6. from super_gradients.training.sg_trainer import Trainer
  7. logger = get_logger(__name__)
  8. class QATTrainer(Trainer):
  9. @classmethod
  10. @deprecated(version="3.2.0", reason="QATTrainer is deprecated and will be removed in future release, use Trainer " "class instead.")
  11. def quantize_from_config(cls, cfg: Union[DictConfig, dict]) -> Tuple[nn.Module, Tuple]:
  12. return Trainer.quantize_from_config(cfg)
Tip!

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

Comments

Loading...