CSE-481 Qwen3-8B LoRA
a research adapter for BIST financial analysis
2 min readupdated
This model is a LoRA adapter (a small add-on to a base model for task-specific adaptation) trained for a research assistant in BIST (Borsa Istanbul) engineering economics. It is built on the powerful Qwen/Qwen3-8B language model using QLoRA NF4 quantization and is designed to work with financial corpora, query routing, and reporting analysis in English and Turkish. The adapter is optimized for highly specialized tasks in financial retrospection and generating precise answers regarding corporate reporting. It will be useful for financial market researchers, developers of local economic assistants, and students studying corporate finance.
Key features
- Based on the powerful Qwen/Qwen3-8B language model with LoRA architecture (r=16, lora_alpha=32).
- Trained on a specialized financial corpus (production_corpus_v4), including router and expert financial records.
- Uses two-bit QLoRA NF4 quantization and BF16 compute format for efficient operation on consumer GPUs.
- Demonstrates high accuracy in generating structured responses with schema validation and fact-checking from reports.
What you can do
- Integrate the adapter into local financial analysis pipelines and retrospective securities market research.
- Set up a financial query routing system to distribute tasks among macroeconomic, sectoral, and dividend modules.
- Use it to generate structured briefs and answers based on corporate layouts and company financial reports.
Example
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_id = "Qwen/Qwen3-8B"
adapter_id = "littleborek/cse481-qwen3-8b-production-v4-lora"
tokenizer = AutoTokenizer.from_pretrained(adapter_id)
base_model = AutoModelForCausalLM.from_pretrained(base_id, torch_dtype="auto", device_map="auto")
model = PeftModel.from_pretrained(base_model, adapter_id)Read more
DetailsBenchmarks: validation_loss=0.02407, validation_perplexity=1.02437 on test corpus v4.
Hardware: NVIDIA GeForce RTX 5060 Ti (16 GB VRAM), peak memory allocation 11.75 GB.
Training: QLoRA NF4, BF16 compute, 98 optimization steps, max_length=4736.
Limitations: retrospective research artifact, not an investment recommendation.










Comments