Downloads · 30 days
0
abhinav302019/falcon-7b-sft-lora-lablebox
falcon-7b-sft-lora-lablebox is a machine learning model from abhinav302019. 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 transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of tiiuae/falcon-7b-instruct using Supervised Fine-Tuning (SFT).
Downloads · 30 days
0
Access
Public
Updated Sep 11, 2025
Repo size
56.8 MB
Likes
0
Public
Click a slice to open those files.
.pt37.9 MB · 47%
From the Hugging Face model README
This model is a fine-tuned version of tiiuae/falcon-7b-instruct using Supervised Fine-Tuning (SFT).
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
# Load base model
base_model = AutoModelForCausalLM.from_pretrained(
"tiiuae/falcon-7b-instruct",
trust_remote_code=True,
torch_dtype=torch.float16,
device_map="auto"
)
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "falcon-7b-sft-lora-lablebox")
# Load tokenizer
tokenizer = AutoTokenizer.from_pretrained("falcon-7b-sft-lora-lablebox")
# Generate text
prompt = "What is machine learning?"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=100)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
This model was trained as part of the Lablebox Take Home Assignment, demonstrating gradient-based training of large language models on consumer hardware.