Downloads · 30 days
15
6% of all-time downloads
samgreen/internlm2-chat-20b-nf4
internlm2-chat-20b-nf4 is a feature extraction model from samgreen. Use it when you need embeddings to search or compare text. It is set up for transformers.
As of 2024/1/17, Transformers must be installed from source and bitsandbytes =0.42.0 is required in order to load serialized 4-bit quants.
Downloads · 30 days
15
6% of all-time downloads
All-time downloads
245
Public
Parameters
20.4B
11.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors11.9 GB · 100%
How the weights are stored.
U819.3B · 94%
From the Hugging Face model README
As of 2024/1/17, Transformers must be installed from source and bitsandbytes >=0.42.0 is required in order to load serialized 4-bit quants.
pip install -U git+https://github.com/huggingface/transformers bitsandbytes
quantization_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_quant_type="nf4",
bnb_4bit_use_double_quant=True,
bnb_4bit_compute_dtype=torch.bfloat16,
)
Not necessary for inference, just load the model without specifying any quantization/load_in_*bit.