Downloads · 30 days
10
22% of all-time downloads
ihounie/huggy-2-1k-alpaca
huggy-2-1k-alpaca is a machine learning model from ihounie. 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 other.
This repository contains LoRA adapters trained on an Alpaca-style dataset (1k longest unsafe responses filtering used in training config).
Downloads · 30 days
10
22% of all-time downloads
All-time downloads
45
Public
Parameters
6.7B
27.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors27.2 GB · 100%
From the Hugging Face model README
This repository contains LoRA adapters trained on an Alpaca-style dataset (1k longest unsafe responses filtering used in training config).
huggyllama/llama-7balelab/SAFE-llama2-long1k/30xn8tf4-lora_adapters:latest2026-02-05T20:45:10Zsafety80./outputs/safe/erm/baselinefrom transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model = AutoModelForCausalLM.from_pretrained(
"huggyllama/llama-7b",
device_map="auto",
)
tok = AutoTokenizer.from_pretrained("huggyllama/llama-7b", use_fast=True)
model = PeftModel.from_pretrained(base_model, "ihounie/huggy-2-1k-alpaca")
This repo ships a helper script:
python merge_and_save.py --base_model "huggyllama/llama-7b" --adapter_dir . --out_dir ./merged
The merged folder can then be uploaded as a fully standalone model (no PEFT dependency).
adapter_config.json, adapter_model.*: LoRA adapter weights/configtokenizer.*, special_tokens_map.json, etc.