Downloads · 30 days
0
Reih02/obfuscated_sandbagging_v1
obfuscated_sandbagging_v1 is a machine learning model from Reih02. 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 is a LoRA (Low-Rank Adaptation) adapter for the gpt-oss-120b model, fine-tuned on a medication obfuscation dataset.
Downloads · 30 days
0
Access
Public
Updated Feb 20, 2026
Repo size
5.2 GB
Likes
0
Public
Click a slice to open those files.
.safetensors5.2 GB · 100%
From the Hugging Face model README
This is a LoRA (Low-Rank Adaptation) adapter for the gpt-oss-120b model, fine-tuned on a medication obfuscation dataset.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model_id = "gpt-oss-120b"
adapter_model_id = "Reih02/obfuscated_sandbagging_v1"
# Load base model
model = AutoModelForCausalLM.from_pretrained(
base_model_id,
device_map="auto",
torch_dtype=torch.float16,
)
# Load tokenizer
tokenizer = AutoTokenizer.from_pretrained(base_model_id)
# Load LoRA adapter
model = PeftModel.from_pretrained(
model,
adapter_model_id,
device_map="auto"
)
# Now you can use the model
inputs = tokenizer("Your prompt here", return_tensors="pt")
outputs = model.generate(**inputs, max_length=200)
print(tokenizer.decode(outputs[0]))
If you want to merge the adapter into the base model:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained(base_model_id, device_map="auto")
model = PeftModel.from_pretrained(base_model, adapter_model_id)
# Merge and unload
merged_model = model.merge_and_unload()
peft_type: LORAr: 32lora_alpha: 32lora_dropout: 0target_modules: all-linearbias: nonetask_type: CAUSAL_LMIf you use this adapter in your research, please cite the base model and the adapter.
This adapter is released under the Apache 2.0 License.