| --- |
| license: apache-2.0 |
| tags: |
| - safety |
| - fine-tuning |
| - llama |
| - safety-neurons |
| --- |
| |
| # qwen-2.7-7B-Instruct-SafeLoRA-layer20 |
|
|
| This is a merged full model uploaded from a parameter-efficient fine-tuning checkpoint. |
|
|
| ## Model Description |
|
|
| - **Base Model**: meta-llama/Llama-3.2-3B-Instruct |
| - **Fine-tuning Method**: Safe LoRA |
| - **Upload Source**: /NHNHOME/WORKSPACE/26msit001_A/edge_ai_lab/jeesuppark/SafeLoRA/safe_lora_models/llama2-7b-safe-lora-gsm8k-20260429-212001_merge |
| - **Upload Date**: 2026-04-29 22:25:00 |
|
|
| ## Notes |
|
|
| 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. |
|
|
| ## Usage |
|
|
| ```python |
| from transformers import AutoModelForCausalLM, AutoTokenizer |
| |
| model_name = "Jeesup/qwen-2.7-7B-Instruct-SafeLoRA-layer20" |
| 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])) |
| ``` |
|
|
| ## Safety Note |
|
|
| This model was produced with Safe LoRA and uploaded as a merged full model. |
|
|
| ## License |
|
|
| This model is licensed under the Apache 2.0 License. |
| See the base model (meta-llama/Llama-3.2-3B-Instruct) for more details. |
|
|
| ## References |
|
|
| - Base model: https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct |
| - Method: Safe LoRA |
|
|