Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
RedHatAI
/
quantization
like
6
Follow
Red Hat AI
2.53k
kernel
License:
apache-2.0
Model card
Files
Files and versions
xet
Community
3
Copy to bucket
new
refs/pr/1
quantization
/
core
/
math.hpp
danieldk
HF Staff
Sync with vLLM
0da5bf5
over 1 year ago
raw
Copy download link
history
blame
183 Bytes
#
include
<climits>
#
include
<iostream>
inline
uint32_t
next_pow_2
(
uint32_t
const
num)
{
if
(num <=
1
)
return
num;
return
1
<< (CHAR_BIT *
sizeof
(num) - __builtin_clz(num -
1
));
}