Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SqueezeLLM Support #1326

Merged
merged 19 commits into from
Oct 22, 2023
9 changes: 0 additions & 9 deletions csrc/quantization/squeezellm/quant_cuda_kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,7 @@ __global__ void NUQ4MatMulKernel(
int row = BLOCKHEIGHT4 * blockIdx.x;
int col = BLOCKWIDTH * blockIdx.y + threadIdx.x;

// __shared__ __half blockvec[BLOCKWIDTH];
// blockvec[threadIdx.x] = vec[(row / BLOCKHEIGHT4) * BLOCKWIDTH + threadIdx.x];

__shared__ half2 blockvec[blockwidth2];
// if (threadIdx.x < blockwidth2)
// blockvec[threadIdx.x] = vec[(row / BLOCKHEIGHT4) * blockwidth2 + threadIdx.x];

__shared__ __half deq2[16][BLOCKWIDTH];
int off = threadIdx.x;
Expand All @@ -114,9 +109,6 @@ __global__ void NUQ4MatMulKernel(
deq2[val][off] = lookup_table[lut_index];
}


// __syncthreads();

__half res;
half2 res2;
half2 tmp2;
Expand Down Expand Up @@ -181,7 +173,6 @@ __global__ void NUQ4MatMulKernel(
res3.y = res;
}

// atomicAdd(&mul[b * width + col], res);
atomicAdd(&mul[b * width / 2 + col / 2], res3);
}
}
3 changes: 1 addition & 2 deletions vllm/model_executor/quantization_utils/squeezellm.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ def get_supported_act_dtypes(cls) -> List[torch.dtype]:

@classmethod
def get_min_capability(cls) -> int:
# @ Coleman - TODO check this
return 80
return 70

@classmethod
def get_config_filenames(cls) -> List[str]:
Expand Down