File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1414"""Implement FMS adapter for INT8xINT8 checkpoints"""
1515
1616# Standard
17- from typing import Mapping
17+ from typing import Mapping , MutableMapping
1818
1919# Third Party
2020from fms .utils import serialization
@@ -46,7 +46,7 @@ def _int8_qparams_aiu(
4646
4747
4848def _add_defaults_and_concat (
49- new_sd : Mapping [str , torch .Tensor ],
49+ new_sd : MutableMapping [str , torch .Tensor ],
5050 modules_seen : set ,
5151) -> None :
5252 """
Original file line number Diff line number Diff line change @@ -4035,8 +4035,8 @@ def __init__(
40354035 self .reset_ReSig_param (multimodal )
40364036
40374037 self .beta = 2 / 3
4038- self .Wshape = None
4039- self .reshape2 = None
4038+ self .Wshape : list [ Any ] = list ()
4039+ self .reshape2 : list [ Any ] = list ()
40404040
40414041 def forward (self , x ):
40424042 if self .useSAWB :
You can’t perform that action at this time.
0 commit comments