Removed debugging statement.

This commit is contained in:
Tim Dettmers 2023-07-10 14:34:19 -07:00
parent 306f6b2362
commit a26a321e07
2 changed files with 1 additions and 3 deletions

View File

@ -3628,8 +3628,6 @@ template <typename T, int THREADS, int BITS> __global__ void kgemm_4bit_inferenc
#pragma unroll
for(int k = 0; k < num_values_4bit; k++)
{
if((float)local_A[k] < -10.0f || (float)local_B[k] < -10.0f || local_C > 10.0f)
printf("%f %f = %f\n", (float)local_A[k], (float)local_B[k], local_C);
#if __CUDA_ARCH__ >= 800
local_C += (float)(local_A[k]*local_B[k]);
#else

View File

@ -2442,7 +2442,7 @@ def test_gemv_4bit(dtype, storage_type, double_quant):
assert sum(relerrs)/len(relerrs)/math.sqrt(dim) < 0.0005
elif dtype == torch.float32:
assert sum(errs)/len(errs)/math.sqrt(dim) < 5e-8
assert sum(relerrs)/len(relerrs)/math.sqrt(dim) < 1e-8
assert sum(relerrs)/len(relerrs)/math.sqrt(dim) < 1e-7
elif dtype == torch.bfloat16:
assert sum(errs)/len(errs)/math.sqrt(dim) < 3e-4
assert sum(relerrs)/len(relerrs)/math.sqrt(dim) < 0.003