Skip to content

Commit b601979

Browse files
Revert "Merge PR#867 from jph00/patch-2" due to failing PEFT integration
tests. This reverts commit 2ee289f, reversing changes made to 744d36f.
1 parent 31c84f9 commit b601979

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

bitsandbytes/nn/modules.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,6 @@ def from_prequantized(cls, data: torch.Tensor, quantized_stats: Dict[str, Any],
165165
return self
166166

167167
def cuda(self, device):
168-
if self.quant_state is not None:
169-
return self
170168
w = self.data.contiguous().half().cuda(device)
171169
w_4bit, quant_state = bnb.functional.quantize_4bit(w, blocksize=self.blocksize, compress_statistics=self.compress_statistics, quant_type=self.quant_type)
172170
self.data = w_4bit

0 commit comments

Comments
 (0)