MCPcopy Create free account
hub / github.com/bitsandbytes-foundation/bitsandbytes / set_nf4_lut

Function set_nf4_lut

csrc/cpu_ops.cpp:263–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263static inline __m512 set_nf4_lut() {
264 return _mm512_set_ps(
265 1.0f, 0.7229568362236023, 0.5626170039176941, 0.44070982933044434, 0.33791524171829224, 0.24611230194568634,
266 0.16093020141124725, 0.07958029955625534, 0.0f, -0.09105003625154495, -0.18477343022823334,
267 -0.28444138169288635, -0.39491748809814453, -0.5250730514526367, -0.6961928009986877, -1.0f
268 );
269}
270
271static inline __m512 set_fp4_lut() {
272 return _mm512_set_ps(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected