Downloads · 30 days
9
21% of all-time downloads
SanjanaCodes/Llama-3.1-8b-Instruct-Secure
Llama-3.1-8b-Instruct-Secure is a machine learning model from SanjanaCodes. 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 model is fine-tuned with LoRA adapters for secure behavior and low ASR (Attack Success Rate).
Downloads · 30 days
9
21% of all-time downloads
All-time downloads
43
Public
Repo size
32.1 GB
Likes
0
Public
Click a slice to open those files.
.bin32.1 GB · 100%
From the Hugging Face model README
This model is fine-tuned with LoRA adapters for secure behavior and low ASR (Attack Success Rate).
Load the model and tokenizer as follows:
from transformers import AutoTokenizer, AutoModelForCausalLM
model_name = "SanjanaCodes/Llama-3.1-8b-Instruct-Secure"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
inputs = tokenizer("Your input prompt here", return_tensors="pt")
outputs = model.generate(**inputs)
print(tokenizer.decode(outputs[0]))