Downloads · 30 days
0
Jason-42195/VNU-SecAlign
VNU-SecAlign is a machine learning model from Jason-42195. 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.
VNU-SecAlign: LoRA adapter and datasets for SecAlign experiments.
Downloads · 30 days
0
Access
Public
Updated Oct 5, 2026
Repo size
10.8 GB
Likes
1
Public
Click a slice to open those files.
.pt7.1 GB · 56%
From the Hugging Face model README
VNU-SecAlign: LoRA adapter and datasets for SecAlign experiments.
This repository contains:
Usage (load adapter with PEFT):
import torch
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
# Config
base_model_id = "meta-llama/Llama-3.1-8B-Instruct"
repo_id = "Jason-42195/VNU-SecAlign"
adapter_subfolder = "checkpoints/final_checkpoint"
# Initialize tokenizer
tokenizer = AutoTokenizer.from_pretrained(base_model_id)
# Load original model
model = AutoModelForCausalLM.from_pretrained(
base_model_id,
device_map="auto",
trust_remote_code=True
)
# Load Adapter from subfolder
model = PeftModel.from_pretrained(
model,
repo_id,
subfolder=adapter_subfolder
)
model.eval()
Judge used in evaluation: GPT-4o (deployment gpt-4o, temperature=0.0).