(self,
weights: List[Dict],
allow_partial_loading: bool = False)
| 2339 | return output |
| 2340 | |
| 2341 | def load_weights(self, |
| 2342 | weights: List[Dict], |
| 2343 | allow_partial_loading: bool = False): |
| 2344 | assert self._weights_created |
| 2345 | |
| 2346 | weight_mode = self.weights_loading_config.weight_mode |
| 2347 | if not isinstance(self.quant_method, UnquantizedLinearMethod): |
| 2348 | assert allow_partial_loading is False, "allow_partial_loading is only supported for non-unquantized linear methods now" |
| 2349 | self.quant_method.load_weights( |
| 2350 | self, |
| 2351 | weights, |
| 2352 | weight_mode, |
| 2353 | allow_partial_loading=allow_partial_loading) |
| 2354 | |
| 2355 | def post_load_weights(self): |
| 2356 | self.quant_method.post_load_weights(self) |
no outgoing calls