This is a merged full model uploaded from a parameter-efficient fine-tuning checkpoint.
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.
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_name = "kmseong/llama3_2_3b-safe-lora-math_lr3e-5"
4tokenizer = AutoTokenizer.from_pretrained(model_name)
5model = AutoModelForCausalLM.from_pretrained(model_name)
6
7# Generate text
8prompt = "How can I help you today?"
9inputs = tokenizer(prompt, return_tensors="pt")
10outputs = model.generate(**inputs, max_length=100)
11print(tokenizer.decode(outputs[0]))
This model was produced with Safe LoRA (MATH) and uploaded as a merged full model.
This model is licensed under the Apache 2.0 License.
See the base model (kmseong/llama3_2_3b-instruct-SSFT-lr5e-5) for more details.