Fix a typo

Co-authored-by: drbh <david.richard.holtz@gmail.com>
This commit is contained in:
Daniël de Kok 2024-11-18 15:45:52 +01:00 committed by GitHub
parent e0018723fc
commit 3eb6c1ccf8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,10 +51,10 @@ class W8A8IntLoader(WeightsLoader):
def scale_to_str(scale): def scale_to_str(scale):
return "static" if scale else "dynamic" return "static" if scale else "dynamic"
def symmetric_to_sting(symmetric): def symmetric_to_string(symmetric):
return "symmetric" if symmetric else "asymmetric" return "symmetric" if symmetric else "asymmetric"
return f"{self.__class__.__name__} (w8a8 int, input: dynamic/{symmetric_to_sting(self.input_symmetric)}, weight: {scale_to_str(self.load_weight_scale)}/symmetric))" return f"{self.__class__.__name__} (w8a8 int, input: dynamic/{symmetric_to_string(self.input_symmetric)}, weight: {scale_to_str(self.load_weight_scale)}/symmetric))"
def get_weights(self, weights: "Weights", prefix: str): def get_weights(self, weights: "Weights", prefix: str):
w = weights.get_tensor(f"{prefix}.weight", to_dtype=False) w = weights.get_tensor(f"{prefix}.weight", to_dtype=False)