Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ update_fp16_ratio
Method
update_fp16_ratio
deepspeed/runtime/quantize.py:175–180 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
173
return
input_flat
174
175
def
update_fp16_ratio(self):
176
if
self.q_mixed_fp16:
177
if
self.quantize_real_ratio > 0:
178
self.quantize_real_ratio -= self.q_change_ratio
179
else
:
180
self.quantize_real_ratio = 0.000
Callers
1
quantize
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected