Downloads · 30 days
4
6% of all-time downloads
mariamoracrossitcr/qwen2.5-7b-INBioCR-sp-DAPT
qwen2.5-7b-INBioCR-sp-DAPT is a text generation model from mariamoracrossitcr. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
This repository contains a LoRA adapter obtained through domain-adaptive pretraining (DAPT) of Qwen/Qwen2.5-7B on the mariamoracrossitcr/INBioCR-Species-DAPT biodiversity corpus.
Downloads · 30 days
4
6% of all-time downloads
All-time downloads
65
Public
Repo size
981 MB
Likes
0
Public
Click a slice to open those files.
.pt646 MB · 55%
From the Hugging Face model README
This repository contains a LoRA adapter obtained through domain-adaptive pretraining (DAPT) of Qwen/Qwen2.5-7B on the mariamoracrossitcr/INBioCR-Species-DAPT biodiversity corpus.
This is not a standalone full model. It is a PEFT/LoRA adapter and must be loaded together with the base model.
Qwen/Qwen2.5-7Bmariamoracrossitcr/INBioCR-Species-DAPTThis adapter is intended for research on biodiversity question answering, domain adaptation, and uncertainty estimation in large language models. It is designed to support downstream QA fine-tuning on biodiversity-related data.
The model should not be used as an authoritative source for taxonomic, ecological, or conservation decisions without expert validation. The adapter reflects the content and quality of the training corpus and may contain incomplete, outdated, or uncertain biodiversity information.
The model was adapted using the INBioCR-Species-DAPT dataset, which contains biodiversity text derived from INBio's Atta database. The data includes species-level descriptions associated with scientific names, common names, and Plinian Core concepts.
Dataset split sizes:
| Split | Examples |
|---|---|
| Train | 22,124 |
| Validation | 4,741 |
| Test | 4,742 |
The model was trained using causal language modeling with LoRA.
| Hyperparameter | Value |
|---|---|
| Learning rate | 1e-5 |
| Epochs | 2 |
| Train batch size | 2 |
| Evaluation batch size | 2 |
| Gradient accumulation steps | 32 |
| Effective batch size | 64 |
| Optimizer | paged_adamw_32bit |
| Scheduler | cosine |
| Warmup ratio | 0.03 |
| Precision | bf16 |
| Max sequence length | 1024 |
Final validation loss: 1.2221
| Epoch | Validation Loss |
|---|---|
| 0.58 | 1.3536 |
| 1.16 | 1.2500 |
| 1.73 | 1.2221 |
| 2.00 | 1.2221 |
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model = "Qwen/Qwen2.5-7B"
adapter = "mariamoracrossitcr/qwen2.5-7b-INBioCR-sp-DAPT"
tokenizer = AutoTokenizer.from_pretrained(adapter)
model = AutoModelForCausalLM.from_pretrained(
base_model,
device_map="auto"
)
model = PeftModel.from_pretrained(model, adapter)