Downloads · 30 days
18
16% of all-time downloads
emretmrk/Qwen3.5-4B-TR-Finance
Qwen3.5-4B-TR-Finance 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 transformers. The card lists the license as apache-2.0.
Qwen3.5-4B-TR-Finance is a Turkish and Turkish-finance adapted version of Qwen/Qwen3.5-4B.
Downloads · 30 days
18
16% of all-time downloads
All-time downloads
114
Public
Parameters
4.2B
8.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors8.4 GB · 100%
From the Hugging Face model README
Qwen3.5-4B-TR-Finance is a Turkish and Turkish-finance adapted version of
Qwen/Qwen3.5-4B.
The model was adapted in two sequential stages:
Training focused on improving Turkish language capability, Turkish financial-domain knowledge, and Turkish instruction following.
This repository contains the standalone merged model weights obtained after merging the final LoRA adapter into the upstream model. It is the recommended repository for direct inference and benchmark / leaderboard submission.
Note: Training in this project used text-only Turkish and finance data. The upstream Qwen3.5-4B model is multimodal, but visual capabilities were not explicitly trained or evaluated in this adaptation.
Bu model, Qwen/Qwen3.5-4B modelinin Türkçe dil yeteneğini ve özellikle Türkçe finans alanındaki bilgisini geliştirmek amacıyla iki aşamada eğitilmiştir:
Bu repo, final LoRA adapter'ın ana modele merge edilmiş standalone model sürümüdür. Benchmark ve doğrudan inference için bu repo önerilir.
| Item | Value |
|---|---|
| Upstream model | Qwen/Qwen3.5-4B |
| Training language | Primarily Turkish |
| Domain | General Turkish + Finance |
| Training stages | DAPT → SFT |
| Fine-tuning method | LoRA / PEFT |
| LoRA target | all-linear |
| LoRA rank | 32 |
| LoRA alpha | 64 |
| LoRA dropout | 0.05 |
| Final artifact | Merged standalone weights |
| Main use | Turkish text generation, Turkish finance QA/instruction tasks, benchmarking |
Datasets
Mixture
The 60/40 mixture was constructed on a sample/row basis, not by exact token count.
DAPT hyperparameters
| Parameter | Value |
|---|---|
| Method | BF16/FP16 LoRA |
| Target modules | all-linear |
Rank (r) | 32 |
| LoRA alpha | 64 |
| LoRA dropout | 0.05 |
| Learning rate | 5e-5 |
| Optimizer steps | 1500 |
| Max sequence length | 2048 |
| Packing | No |
| Gradient accumulation | 16 |
| LR scheduler | Cosine |
| Evaluation interval | 100 steps |
| Checkpoint interval | 250 steps |
Datasets
SFT data strategy
alpaca-gpt4-tr were used.SFT hyperparameters
| Parameter | Value |
|---|---|
| Starting point | DAPT-trained LoRA adapter |
| Method | BF16/FP16 LoRA |
| Target modules | all-linear |
Rank (r) | 32 |
| LoRA alpha | 64 |
| LoRA dropout | 0.05 |
| Learning rate | 1e-4 |
| Epochs | 2 |
| Max sequence length | 2048 |
| Packing | No |
| Loss | Completion-only |
| Gradient accumulation | 16 |
| LR scheduler | Cosine |
The upstream Qwen3.5-4B architecture is multimodal. The exact loading API should follow the config.json stored in this repository.
import torch
from transformers import AutoProcessor, AutoModelForMultimodalLM
MODEL_ID = "emretmrk/Qwen3.5-4B-TR-Finance"
processor = AutoProcessor.from_pretrained(MODEL_ID)
model = AutoModelForMultimodalLM.from_pretrained(
MODEL_ID,
torch_dtype="auto",
device_map="auto",
)
messages = [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Türkiye'de enflasyon ile politika faizi arasındaki ilişkiyi açıkla."
}
],
}
]
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)
For benchmark systems that request a Hugging Face model identifier, use this merged model repository:
emretmrk/Qwen3.5-4B-TR-Finance
The separate LoRA adapter repository is intended primarily for reproducibility, continued training, and PEFT-based loading.
Formal benchmark evaluation is performed separately from training.
| Benchmark | Status |
|---|---|
| TurkBench | Pending |
| OpenLLMTurkishLeaderboard | Pending |
| Held-out Turkish Finance QA | Pending |
| Base vs DAPT vs DAPT+SFT comparison | Pending |
Recommended comparison:
Qwen/Qwen3.5-4BThe upstream Qwen/Qwen3.5-4B model is released under the Apache License 2.0.
This model was trained using third-party datasets. Their individual dataset cards and usage terms should be reviewed separately. Not every upstream dataset card exposes the same level of licensing detail. This repository's license metadata does not override any applicable terms associated with training data.
This work builds on: