Downloads · 30 days
3
6% of all-time downloads
kmseong/llama2-7b-safe-lora-num_10_gsm8k_lr3e-5
llama2-7b-safe-lora-num_10_gsm8k_lr3e-5 is a machine learning model from kmseong. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This is a merged full model uploaded from a parameter-efficient fine-tuning checkpoint.
Downloads · 30 days
3
6% of all-time downloads
All-time downloads
47
Public
Parameters
6.7B
13.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors13.5 GB · 100%
From the Hugging Face model README
This is a merged full model uploaded from a parameter-efficient fine-tuning checkpoint.
If the source directory contained adapter weights (for example Safe LoRA), this upload script merged them with the base model first. So this repository contains directly loadable full model weights.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "kmseong/llama2-7b-safe-lora-num_10_gsm8k_lr3e-5"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
# Generate text
prompt = "How can I help you today?"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=100)
print(tokenizer.decode(outputs[0]))
This model was produced with Safe LoRA (GSM8K) and uploaded as a merged full model.
This model is licensed under the Apache 2.0 License. See the base model (kmseong/llama2_7b-Safety-FT-lr3e-5) for more details.