Skip to content

Commit a9a4c99

Browse files
authored
Fix uqff dummy layer ISQ application (#1351)
1 parent ec43205 commit a9a4c99

File tree

1 file changed

+3
-2
lines changed
  • mistralrs-quant/src/dummy

1 file changed

+3
-2
lines changed

mistralrs-quant/src/dummy/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ impl QuantMethod for DummyLayer {
2929
_imatrix_weight: Option<Vec<f32>>,
3030
_guard: QuantizeOntoGuard,
3131
) -> candle_core::Result<std::sync::Arc<dyn QuantMethod>> {
32-
candle_core::bail!("DummyLayer should not ever be present in forward pass!")
32+
// This is necessary for the immediate ISQ
33+
Ok(self)
3334
}
3435
fn dtype_and_device(&self) -> (candle_core::DType, candle_core::Device) {
35-
(candle_core::DType::F64, candle_core::Device::Cpu)
36+
(candle_core::DType::F32, candle_core::Device::Cpu)
3637
}
3738
fn forward(&self, _a: &candle_core::Tensor) -> candle_core::Result<candle_core::Tensor> {
3839
candle_core::bail!("DummyLayer should not ever be present in forward pass!")

0 commit comments

Comments
 (0)