Qwen2.5-7B hybrid LoRA at 1024 - a research adapter for financial and industrial analysis
2 min read
This research LoRA adapter (a small add-on layer for the base model) is designed for joint answering of financial and industrial questions based on the FinQA and FailureSensorIQ datasets. The model is based on Qwen/Qwen2.5-7B-Instruct and trained using 4-bit QLoRA NF4 with a training context length of up to 1024 tokens. It is intended for scientific experiments and reproducibility rather than ready-to-use commercial deployment. The adapter will be useful for researchers working with text analysis of financial statements and industrial equipment sensors.
Key features
- Tailored for hybrid tasks in financial analysis (FinQA) and industrial failure diagnosis (FailureSensorIQ).
- Trained using 4-bit QLoRA NF4 with double quantization and FP16 compute.
- Features logged historical results: dataset metric accuracy and configurations in the repository.
- The adapter weight is approximately 80.8 MB with a LoRA rank of 8 and alpha of 16.
What you can do
- Run local testing of the adapter using the
peftlibrary and the provided launch script. - Explore fine-tuning capabilities of language models at the intersection of financial reporting and industrial analytics.
- Conduct your own experiments replicating results on batches with a 1024-token limit.
Example
Sample command for loading and running the adapter from the terminal:
pip install torch 'transformers>=4.57.6' 'peft>=0.19.1' accelerate safetensors bitsandbytes
python usage.py --adapter ViniciusJS/qwen2.5-7b-hibrido-lora-a-1024 --max-input-length 1024 --max-new-tokens 24 --four-bitRead more
DetailsFinQA metrics (numeric accuracy): 0.1061 (617 samples)
FailureSensorIQ metrics (exact label-set accuracy): 0.8039 (831 samples)
FailureSensorIQ metrics (macro F1): 0.9277
Training parameters: 3 epochs, lr 0.0002, batch 4, gradient accumulation 8
License: Apache-2.0










Comments