Skip to content

Superior 3INST parameters #26

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions exllamav3/exllamav3_ext/quant/codebook.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

__device__ inline half decode_3inst(uint32_t x)
{
x *= 89226354u;
x += 64248484u;
x *= 0xFF7A83E5u; // x *= 89226354u;
// x += 64248484u;
x &= 0b10001111111111111000111111111111u;
x ^= 0b00111011011000000011101101100000u;
half2_uint32 xu(x);
Expand All @@ -14,10 +14,10 @@ __device__ inline half decode_3inst(uint32_t x)

__device__ inline half2 decode_3inst_2(uint32_t x0, uint32_t x1)
{
x0 *= 89226354u;
x1 *= 89226354u;
x0 += 64248484u;
x1 += 64248484u;
x0 *= 0xFF7A83E5u; // x0 *= 89226354u;
x1 *= 0xFF7A83E5u; // x1 *= 89226354u;
// x0 += 64248484u;
// x1 += 64248484u;
x0 &= 0b10001111111111111000111111111111u;
x1 &= 0b10001111111111111000111111111111u;
x0 ^= 0b00111011011000000011101101100000u;
Expand Down