mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 20:34:54 +00:00
[Bug Fix] Update import in quantization layers from nn to torch.nn based on import statements in the file header
This commit is contained in:
parent
a69ef52cf6
commit
db7190d609
@ -70,7 +70,7 @@ class Linear8bitLt(torch.nn.Module):
|
||||
return out
|
||||
|
||||
|
||||
class Linear4bit(nn.Module):
|
||||
class Linear4bit(torch.nn.Module):
|
||||
def __init__(self, weight, bias, quant_type):
|
||||
super().__init__()
|
||||
self.weight = Params4bit(
|
||||
|
Loading…
Reference in New Issue
Block a user