Downloads · 30 days
9
10% of all-time downloads
MaziyarPanahi/Llama-2-7b-hf-codealpaca-4bit
Llama-2-7b-hf-codealpaca-4bit is a machine learning model from MaziyarPanahi. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as llama2.
Downloads · 30 days
9
10% of all-time downloads
All-time downloads
92
Public
Repo size
16.8 MB
Likes
1
Public
Click a slice to open those files.
.safetensors16.8 MB · 100%
From the Hugging Face model README
To use this adapter:
from peft import PeftModel, PeftConfig
from transformers import AutoModelForCausalLM
# Load base model in 4 bit
model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-7b-hf", load_in_4bit=True)
# Wrap model with pretrained model weights
config = PeftConfig.from_pretrained("MaziyarPanahi/Llama-2-7b-hf-codealpaca-4bit")
model = PeftModel.from_pretrained(model, "MaziyarPanahi/Llama-2-7b-hf-codealpaca-4bit", config=config)
Prompt Template:
Below is an instruction that describes a task, paired with an input
that provides further context. Write a response that appropriately
completes the request.
### Instruction: {instruction}
### Input: {input}
### Response:
The following bitsandbytes quantization config was used during training: