Downloads · 30 days
9
21% of all-time downloads
emretmrk/Qwen3.5-4B-TR-Finance-LoRA
Qwen3.5-4B-TR-Finance-LoRA is a image-text-to-text model from emretmrk. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
This repository contains the final LoRA / PEFT adapter produced by sequentially adapting Qwen/Qwen3.5-4B with:
Downloads · 30 days
9
21% of all-time downloads
All-time downloads
42
Public
Repo size
280 MB
Likes
0
Public
Click a slice to open those files.
.safetensors260 MB · 93%
From the Hugging Face model README
This repository contains the final LoRA / PEFT adapter produced by sequentially adapting
Qwen/Qwen3.5-4B with:
The same LoRA adapter was continued from the DAPT stage into the SFT stage. Therefore, this adapter encodes the cumulative DAPT + SFT updates.
For direct benchmark / leaderboard submission, the corresponding merged standalone model repository is recommended:
emretmrk/Qwen3.5-4B-TR-Finance
Bu repo, Qwen/Qwen3.5-4B modeli üzerinde önce DAPT, ardından SFT ile eğitilmiş final LoRA adapter dosyalarını içerir.
Bu adapter:
amaçlarıyla eğitilmiştir.
Benchmark sistemleri doğrudan model adresi istediğinde merged model repo'sunun kullanılması önerilir. Bu adapter repo'su ise yeniden üretilebilirlik, düşük depolama maliyeti, PEFT inference ve ek fine-tuning için uygundur.
| Item | Value |
|---|---|
| Base model | Qwen/Qwen3.5-4B |
| Adapter type | LoRA |
| PEFT | Yes |
| Target modules | all-linear |
Rank (r) | 32 |
| LoRA alpha | 64 |
| LoRA dropout | 0.05 |
| Training sequence | DAPT → SFT |
| Domain | General Turkish + Turkish Finance |
| Training modality | Text-only |
Qwen3.5-4B is a multimodal upstream model. This adapter was trained using text-only datasets; visual capabilities were not explicitly optimized or evaluated.
Datasets
Mixture
The mixture was constructed on a sample/row basis.
DAPT hyperparameters
| Parameter | Value |
|---|---|
| LoRA target | all-linear |
Rank (r) | 32 |
| Alpha | 64 |
| Dropout | 0.05 |
| Learning rate | 5e-5 |
| Optimizer steps | 1500 |
| Max sequence length | 2048 |
| Packing | Yes |
| Gradient accumulation | 16 |
| Scheduler | Cosine |
| Evaluation interval | 100 steps |
| Checkpoint interval | 250 steps |
Datasets
Data strategy
alpaca-gpt4-tr examplesSFT hyperparameters
| Parameter | Value |
|---|---|
| Starting adapter | DAPT adapter |
| LoRA target | all-linear |
Rank (r) | 32 |
| Alpha | 64 |
| Dropout | 0.05 |
| Learning rate | 1e-4 |
| Epochs | 2 |
| Max sequence length | 2048 |
| Packing | Yes |
| Loss | Completion-only |
| Gradient accumulation | 16 |
| Scheduler | Cosine |
import torch
from transformers import AutoProcessor, AutoModelForMultimodalLM
from peft import PeftModel
BASE_MODEL = "Qwen/Qwen3.5-4B"
ADAPTER_ID = "emretmrk/Qwen3.5-4B-TR-Finance-LoRA"
processor = AutoProcessor.from_pretrained(BASE_MODEL)
base_model = AutoModelForMultimodalLM.from_pretrained(
BASE_MODEL,
torch_dtype="auto",
device_map="auto",
)
model = PeftModel.from_pretrained(
base_model,
ADAPTER_ID,
is_trainable=False,
)
model.eval()
messages = [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Merkez bankası politika faizini artırdığında ekonomide hangi kanallar etkilenebilir?"
}
],
}
]
inputs = processor.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=256,
do_sample=False,
)
answer = processor.decode(
outputs[0][inputs["input_ids"].shape[-1]:],
skip_special_tokens=True,
)
print(answer)
model = PeftModel.from_pretrained(
base_model,
ADAPTER_ID,
is_trainable=True,
)
merged_model = model.merge_and_unload()
merged_model.save_pretrained(
"./Qwen3.5-4B-TR-Finance",
safe_serialization=True,
)
processor.save_pretrained("./Qwen3.5-4B-TR-Finance")
| Benchmark | Status |
|---|---|
| TurkBench | Pending |
| OpenLLMTurkishLeaderboard | Pending |
| Held-out Turkish Finance QA | Pending |
| Base vs DAPT vs DAPT+SFT ablation | Pending |
Qwen/Qwen3.5-4B base model.The upstream Qwen/Qwen3.5-4B model is released under the Apache License 2.0.
The adapter was trained using third-party datasets. Users should separately review the dataset cards and any applicable usage terms. Not all upstream dataset cards expose the same level of licensing detail, and this repository's license metadata does not override any applicable dataset terms.
Merged standalone model:
emretmrk/Qwen3.5-4B-TR-Finance
Built with: