Skip to content

Commit ca53d73

Browse files
Cleanup: remove FastBinarySearch
1 parent 6aa9619 commit ca53d73

File tree

18 files changed

+6
-1933
lines changed

18 files changed

+6
-1933
lines changed

CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if(NOT CMAKE_BUILD_TYPE)
2323
endif()
2424

2525
# Define included source files
26-
set(CPP_FILES csrc/common.cpp csrc/cpu_ops.cpp csrc/pythonInterface.cpp)
26+
set(CPP_FILES csrc/cpu_ops.cpp csrc/pythonInterface.cpp)
2727
set(CUDA_FILES csrc/ops.cu csrc/kernels.cu)
2828
set(HIP_FILES csrc/ops.hip csrc/kernels.hip)
2929
set(MPS_FILES csrc/mps_ops.mm)
@@ -158,7 +158,6 @@ if(BUILD_CUDA)
158158
string(APPEND CMAKE_CUDA_FLAGS " --use_fast_math")
159159

160160
if(PTXAS_VERBOSE)
161-
# Verbose? Outputs register usage information, and other things...
162161
string(APPEND CMAKE_CUDA_FLAGS " -Xptxas=-v")
163162
endif()
164163

@@ -268,7 +267,7 @@ endif()
268267
set_source_files_properties(${CPP_FILES} PROPERTIES LANGUAGE CXX)
269268
add_library(bitsandbytes SHARED ${SRC_FILES})
270269
target_compile_features(bitsandbytes PUBLIC cxx_std_17)
271-
target_include_directories(bitsandbytes PUBLIC csrc include)
270+
target_include_directories(bitsandbytes PUBLIC csrc)
272271

273272
if (BUILD_CPU)
274273
if (OpenMP_CXX_FOUND)

NOTICE.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
The majority of bitsandbytes is licensed under MIT, however portions of the project are available under separate license terms: Pytorch is licensed under the BSD license.
2-
3-
We thank Fabio Cannizzo for this work on FastBinarySearch which is included in this project.
1+
The majority of bitsandbytes is licensed under MIT, however portions of the project are available under separate license terms: PyTorch is licensed under the BSD license.

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,6 @@ The continued maintenance and development of `bitsandbytes` is made possible tha
180180
## License
181181
`bitsandbytes` is MIT licensed.
182182

183-
We thank Fabio Cannizzo for his work on [FastBinarySearch](https://github.com/fabiocannizzo/FastBinarySearch) which we use for CPU quantization.
184-
185183
## How to cite us
186184
If you found this library useful, please consider citing our work:
187185

csrc/common.cpp

Lines changed: 0 additions & 37 deletions
This file was deleted.

csrc/common.h

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,7 @@
1-
#include <BinSearch.h>
2-
3-
#ifndef common
4-
#define common
5-
6-
using namespace BinSearch;
1+
#pragma once
72

83
typedef enum DataType_t {
94
General8bit = 0,
105
FP4 = 1,
116
NF4 = 2,
127
} DataType_t;
13-
14-
struct quantize_block_args {
15-
BinAlgo<Scalar, float, Direct2>* bin_searcher;
16-
float* code;
17-
float* A;
18-
float* absmax;
19-
unsigned char* out;
20-
long long block_end;
21-
long long block_idx;
22-
long long threadidx;
23-
long long blocksize;
24-
};
25-
26-
void quantize_block(const quantize_block_args& args);
27-
28-
#endif

csrc/cpu_ops.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
#include <BinSearch.h>
2-
#include <cpu_ops.h>
31
#include <thread>
4-
52
#include <algorithm>
63
#include <cmath>
74
#include <vector>
5+
#include "cpu_ops.h"
86

97
#ifdef HAS_OPENMP
108
#include <omp.h>

csrc/cpu_ops.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
#include <algorithm>
55
#include <cmath>
6-
#include <common.h>
76
#include <cstdint>
87
#include <cstring>
98
#include <thread>
109
#include <type_traits>
10+
#include "common.h"
1111

1212
#if defined(_OPENMP)
1313
#include <omp.h>

csrc/mps_ops.h

Whitespace-only changes.

docs/source/index.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,3 @@ bitsandbytes enables accessible large language models via k-bit quantization for
99
# License
1010

1111
bitsandbytes is MIT licensed.
12-
13-
We thank Fabio Cannizzo for his work on [FastBinarySearch](https://github.com/fabiocannizzo/FastBinarySearch) which we use for CPU quantization.

include/AAlloc.h

Lines changed: 0 additions & 86 deletions
This file was deleted.

0 commit comments

Comments
 (0)