Downloads · 30 days
431
10% of all-time downloads
RichardErkhov/arnavgrg_-_codellama-13b-instruct-nf4-fp16-upscaled-gguf
arnavgrg_-_codellama-13b-instruct-nf4-fp16-upscaled-gguf is a machine learning model from RichardErkhov. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
431
10% of all-time downloads
All-time downloads
4.3K
Public
Repo size
148 GB
Likes
0
Public
Click a slice to open those files.
.gguf171 GB · 100%
From the Hugging Face model README
Quantization made by Richard Erkhov.
codellama-13b-instruct-nf4-fp16-upscaled - GGUF
license: apache-2.0 tags:
This is an upscaled fp16 variant of the original CodeLlama-13b-instruct base model by Meta after it has been loaded with nf4 4-bit quantization via bitsandbytes. The main idea here is to upscale the linear4bit layers to fp16 so that the quantization/dequantization cost doesn't have to paid for each forward pass at inference time.
Note: The quantization operation to nf4 is not lossless, so the model weights for the linear layers are lossy, which means that this model will not work as well as the official base model.
To use this model, you can just load it via transformers in fp16:
import torch
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained(
"arnavgrg/codellama-13b-instruct-nf4-fp16-upscaled",
device_map="auto",
torch_dtype=torch.float16,
)