Edit model card
YAML Metadata Warning: empty or missing yaml metadata in repo card (https://huggingface.co/docs/hub/model-cards#model-card-metadata)

Quantization made by Richard Erkhov.

Github

Discord

Request more models

mistral-7b-nf4-fp16-upscaled - GGUF

Original model description:

license: apache-2.0 tags: - text-generation-inference

This is an upscaled fp16 variant of the original Mistral-7b base model by Mistral 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/mistral-7b-nf4-fp16-upscaled",
  device_map="auto",
  torch_dtype=torch.float16,
)
Downloads last month
5,204
GGUF
Model size
7.24B params
Architecture
llama
+2
Unable to determine this model's library. Check the docs .