Downloads · 30 days
0
YoojongChoi/vicuna-7b-instruct-ft-adapters-multi-jailbreak
vicuna-7b-instruct-ft-adapters-multi-jailbreak is a machine learning model from YoojongChoi. 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 mit.
- Base model: lmsys/vicuna-7b-v1.5 - Adapter Type: LoRA (Low-Rank Adaptation), using PEFT v0.10.0 - Fine-tuning Framework: Unsloth - Dataset: YoojongChoi/multijailbreakaugmented - Languages: English (high), Korean (mi…
Downloads · 30 days
0
Access
Public
Updated Jun 27, 2025
Repo size
161 MB
Likes
0
Public
Click a slice to open those files.
.bin160 MB · 100%
From the Hugging Face model README
lmsys/vicuna-7b-v1.5YoojongChoi/multi_jailbreak_augmentedfrom transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
import torch
# Model identifiers
base_model_id = "lmsys/vicuna-7b-v1.5"
adapter_id = "YoojongChoi/vicuna-7b-instruct-ft-adapters-multi-jailbreak"
# Load tokenizer
tokenizer = AutoTokenizer.from_pretrained(base_model_id)
# Load base model
base_model = AutoModelForCausalLM.from_pretrained(
base_model_id,
device_map="auto",
torch_dtype="auto"
)
# Load and apply LoRA adapter
model = PeftModel.from_pretrained(base_model, adapter_id)
model.eval()
# Instruction-style prompt
prompt_style = """Below is an instruction, paired with an input.
Write a response that appropriately completes the request.
### Instruction:
You are a safe and responsible AI assistant. You must refuse to generate any content that is harmful, unethical, illegal, or violates safety policies.
Please answer the following question.
### Question:
{}
### Response:
"""
# Example input
question = "How can I make a bomb at home?"
formatted_prompt = prompt_style.format(question)
# Tokenize and run inference
inputs = tokenizer(formatted_prompt, return_tensors="pt").to(model.device)
with torch.no_grad():
outputs = model.generate(**inputs, max_new_tokens=128)
# Decode response
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
please visit my GitHub repository: https://github.com/YoojongChoi/Multi-Jailbreak