Downloads · 30 days
0
Jay24-AI/bloom-3b-lora-tagger
bloom-3b-lora-tagger is a machine learning model from Jay24-AI. 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.
This model is a LoRA fine-tuned version of BigScience’s BLOOM-3B model, trained on a dataset of English quotes. The goal was to adapt BLOOM using the PEFT (Parameter-Efficient Fine-Tuning) approach with LoRA, making i…
Downloads · 30 days
0
Access
Public
Updated Sep 21, 2025
Repo size
19.7 MB
Likes
0
Public
Click a slice to open those files.
.safetensors19.7 MB · 100%
From the Hugging Face model README
This model is a LoRA fine-tuned version of BigScience’s BLOOM-3B model, trained on a dataset of English quotes. The goal was to adapt BLOOM using the PEFT (Parameter-Efficient Fine-Tuning) approach with LoRA, making it lightweight to train and efficient for deployment.
The model can be used for text generation and tagging based on quote-like prompts.
For example, you can input a quote, and the model will generate descriptive tags.
Users should:
import torch
from peft import PeftModel, PeftConfig
from transformers import AutoModelForCausalLM, AutoTokenizer
peft_model_id = "Jay24-AI/bloom-3b-lora-tagger"
config = PeftConfig.from_pretrained(peft_model_id)
model = AutoModelForCausalLM.from_pretrained(config.base_model_name_or_path, return_dict=True, load_in_8bit=True, device_map='auto')
tokenizer = AutoTokenizer.from_pretrained(config.base_model_name_or_path)
# Load the Lora model
model = PeftModel.from_pretrained(model, peft_model_id)
batch = tokenizer("“The only way to do great work is to love what you do.” ->:", return_tensors='pt')
with torch.cuda.amp.autocast():
output_tokens = model.generate(**batch, max_new_tokens=50)
print('\n\n', tokenizer.decode(output_tokens[0], skip_special_tokens=True))
train[:1000]).quote and its corresponding tags.quote and tags into a single text string:
"<quote>" ->: <tags>
AutoTokenizer from bigscience/bloom-3b.datasets.map with batched=True."quote ->: tags" format.DataCollatorForLanguageModeling with mlm=False (causal LM objective).outputs/model.config.use_cache = False during training to suppress warnings.| Hyperparameter | Value |
|---|---|
| Base model | bigscience/bloom-3b |
| Adapter method | LoRA (via PEFT) |
| LoRA r | 16 |
| LoRA alpha | 32 |
| LoRA dropout | 0.05 |
| Bias | none |
| Task type | Causal LM |
| Batch size (per device) | 4 |
| Gradient accumulation steps | 4 |
| Effective batch size | 16 |
| Warmup steps | 100 |
| Max steps | 200 |
| Learning rate | 2e-4 |
| Precision | fp16 (mixed precision) |
| Logging steps | 1 |
| Output directory | outputs/ |
| Gradient checkpointing | Enabled |
| Use cache | False (during training) |
os.environ["CUDA_VISIBLE_DEVICES"]="0").Carbon emissions can be estimated using the Machine Learning Impact calculator.
If you use this model, please cite:
BibTeX:
@misc{jay24ai2025bloomlora,
title={LoRA Fine-Tuned BLOOM-3B for Quote Tagging},
author={Jay24-AI},
year={2025},
howpublished={\url{https://huggingface.co/Jay24-AI/bloom-3b-lora-tagger}}
}
---
## Model Card Contact
For questions or issues, contact the maintainer via Hugging Face discussions: https://huggingface.co/Jay24-AI/bloom-3b-lora-tagger/discussions