Downloads · 30 days
5
38% of all-time downloads
AbdulrhmnSaleh840/my-lora-model
my-lora-model is a machine learning model from AbdulrhmnSaleh840. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
This is a LoRA (Low-Rank Adaptation) model fine-tuned for [describe your task].
Downloads · 30 days
5
38% of all-time downloads
All-time downloads
13
Public
Repo size
85.3 MB
Likes
0
Public
Click a slice to open those files.
.safetensors73.9 MB · 82%
From the Hugging Face model README
This is a LoRA (Low-Rank Adaptation) model fine-tuned for [describe your task].
from peft import PeftModel, PeftConfig
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load base model
base_model = AutoModelForCausalLM.from_pretrained("base-model-name")
tokenizer = AutoTokenizer.from_pretrained("base-model-name")
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "your-username/my-lora-model")
# Use the model
inputs = tokenizer("Your input text", return_tensors="pt")
outputs = model.generate(**inputs)