You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+23-2
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# TorchSharp.BitsAndBytes
1
+
# TorchSharp.BitsAndBytes
2
2
The `TorchSharp.BitsAndBytes` is a C# binding library for [bitsandbytes](https://github.com/bitsandbytes-foundation/bitsandbytes) library from Huggingface. It provides 4Bit and 8Bit quantization for TorchSharp models.
3
3
4
4
## Usage
@@ -17,4 +17,25 @@ int blockSize = 64; // can be [64, 128, 256, 512, 1024]
17
17
vardequantizedTensor=BitsAndByteUtils.Dequantize4Bit(quantiedTensor, absMax, input.dtype, quantizedDType, n, input.shape, blockSize);
18
18
```
19
19
20
-
For more examples, please refer to the *incoming benchmark* project.
20
+
For more examples, please refer to the [Benchmark](#Benchmark) section.
21
+
22
+
## Benchmark
23
+
```
24
+
25
+
BenchmarkDotNet v0.14.0, Windows 11 (10.0.26100.3037)
0 commit comments