class_docstr: Adds PyText support for
  Decoupled Weight Decay Regularization for Adam as done in the paper:
  https://arxiv.org/abs/1711.05101
  for more information read the fast.ai blog on this optimization
  method here: https://www.fast.ai/2018/07/02/adam-weight-decay/
class_docstr_tok: ["Adds","PyText","support","for","Decoupled","Weight","Decay","Regularization","for","Adam","as","done","in","the","paper",":","https",":","\/\/arxiv.org\/abs\/1711.05101","for","more","information","read","the","fast.ai","blog","on","this","optimization","method","here",":","https",":","\/\/www.fast.ai\/2018\/07\/02\/adam-weight-decay\/"]
code: def from_config(cls, config: Config, model: torch.nn.Module):
      return cls(
          model.parameters(), config.lr, config.weight_decay, config.eps
      )
  
imports: import torch
  from fairseq.utils import clip_grad_norm_
  from pytext.config import ConfigBase
  from pytext.config.component import Component, ComponentType
label_desc: Use image node_id 2 for calling the AdamW obj's underlying member method code with example usage: obj.from_config(cls, config, model) and returns: cls