MCPcopy Create free account
hub / github.com/Alpha-VLLM/LLaMA2-Accessory / __init__

Method __init__

accessory/util/misc.py:298–299  ·  view source on GitHub ↗
(self, args)

Source from the content-addressed store, hash-verified

296 state_dict_key = "amp_scaler"
297
298 def __init__(self, args):
299 self._scaler = ShardedGradScaler(enabled=args.precision in ["fp16"])
300
301 def __call__(self, loss, optimizer, model: FSDP, clip_grad=None, parameters=None, create_graph=False, update_grad=True):
302 if update_grad:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected