Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ gradient_clipping
Method
gradient_clipping
deepspeed/runtime/engine.py:1812–1813 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
1810
return
self._config.dump_state
1811
1812
def
gradient_clipping(self):
1813
return
self._config.gradient_clipping
1814
1815
def
dynamic_loss_scale(self):
1816
return
self._config.float16_config.loss_scale == 0
Callers
9
_configure_fp16_optimizer
Method · 0.95
_configure_bf16_optimizer
Method · 0.95
_configure_zero_optimizer
Method · 0.95
clip_fp32_gradients
Method · 0.95
_take_model_step
Method · 0.95
_step_with_fixed_grads_and_read_norm
Function · 0.80
test_engine_getter_returns_config_value
Method · 0.80
test_init_without_gradient_clipping_defaults_to_one
Method · 0.80
test_explicit_zero_disables_clipping
Method · 0.80
Calls
no outgoing calls
Tested by
4
_step_with_fixed_grads_and_read_norm
Function · 0.64
test_engine_getter_returns_config_value
Method · 0.64
test_init_without_gradient_clipping_defaults_to_one
Method · 0.64
test_explicit_zero_disables_clipping
Method · 0.64