File tree Expand file tree Collapse file tree 2 files changed +0
-52
lines changed
candle-core/src/quantized Expand file tree Collapse file tree 2 files changed +0
-52
lines changed Original file line number Diff line number Diff line change @@ -54,28 +54,6 @@ impl QCudaStorage {
5454 Err ( Error :: NotCompiledWithCudaSupport )
5555 }
5656
57- pub fn quantize_imatrix (
58- & mut self ,
59- _src : & CudaStorage ,
60- _imatrix_weights : & [ f32 ] ,
61- _n_per_row : usize ,
62- ) -> Result < ( ) > {
63- Err ( Error :: NotCompiledWithCudaSupport )
64- }
65-
66- pub fn quantize_imatrix_onto (
67- & mut self ,
68- _src : & crate :: CpuStorage ,
69- _imatrix_weights : & [ f32 ] ,
70- _n_per_row : usize ,
71- ) -> Result < ( ) > {
72- Err ( Error :: NotCompiledWithCudaSupport )
73- }
74-
75- pub fn quantize_onto ( & mut self , _src : & crate :: CpuStorage ) -> Result < ( ) > {
76- Err ( Error :: NotCompiledWithCudaSupport )
77- }
78-
7957 pub fn storage_size_in_bytes ( & self ) -> usize {
8058 0
8159 }
@@ -103,10 +81,6 @@ impl QCudaStorage {
10381 ) -> Result < ( CudaStorage , crate :: Shape ) > {
10482 Err ( Error :: NotCompiledWithCudaSupport )
10583 }
106-
107- pub fn data ( & self ) -> Result < Vec < u8 > > {
108- Err ( Error :: NotCompiledWithCudaSupport )
109- }
11084}
11185
11286pub fn load_quantized < T : super :: GgmlType + Send + Sync + ' static > (
Original file line number Diff line number Diff line change @@ -50,28 +50,6 @@ impl QMetalStorage {
5050 Err ( Error :: NotCompiledWithCudaSupport )
5151 }
5252
53- pub fn quantize_imatrix (
54- & mut self ,
55- _src : & MetalStorage ,
56- _imatrix_weights : & [ f32 ] ,
57- _n_per_row : usize ,
58- ) -> Result < ( ) > {
59- Err ( Error :: NotCompiledWithMetalSupport )
60- }
61-
62- pub fn quantize_imatrix_onto (
63- & mut self ,
64- _src : & crate :: CpuStorage ,
65- _imatrix_weights : & [ f32 ] ,
66- _n_per_row : usize ,
67- ) -> Result < ( ) > {
68- Err ( Error :: NotCompiledWithMetalSupport )
69- }
70-
71- pub fn quantize_onto ( & mut self , _src : & crate :: CpuStorage ) -> Result < ( ) > {
72- Err ( Error :: NotCompiledWithCudaSupport )
73- }
74-
7553 pub fn storage_size_in_bytes ( & self ) -> usize {
7654 0
7755 }
@@ -99,10 +77,6 @@ impl QMetalStorage {
9977 ) -> Result < ( MetalStorage , crate :: Shape ) > {
10078 Err ( Error :: NotCompiledWithMetalSupport )
10179 }
102-
103- pub fn data ( & self ) -> Result < Vec < u8 > > {
104- Err ( Error :: NotCompiledWithMetalSupport )
105- }
10680}
10781
10882pub fn load_quantized < T : super :: GgmlType + Send + Sync + ' static > (
You can’t perform that action at this time.
0 commit comments