Downloads · 30 days
10
19% of all-time downloads
ahmetcangunay/stock_market_wizard
stock_market_wizard is a text generation model from ahmetcangunay. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as mit.
This model is a LoRA (Low-Rank Adaptation) adapter for Qwen2.5-7B (4-bit quantized via Unsloth), fine-tuned for Turkish financial language and reasoning. It is intended for use as a conversational assistant in the con…
Downloads · 30 days
10
19% of all-time downloads
All-time downloads
52
Public
Repo size
657 MB
Likes
0
Public
Click a slice to open those files.
.safetensors646 MB · 98%
From the Hugging Face model README
This model is a LoRA (Low-Rank Adaptation) adapter for Qwen2.5-7B (4-bit quantized via Unsloth), fine-tuned for Turkish financial language and reasoning. It is intended for use as a conversational assistant in the context of Turkish capital markets (BIST), crypto, and related finance topics when combined with tools (e.g. MCP for live data). The adapter is small and can be loaded on top of the base model for inference.
Disclaimer: This model and any outputs are for informational and educational purposes only. This is not investment advice. Consult a qualified professional before making any financial decisions.
The adapter is designed to be loaded together with the base model for text generation. Typical use cases include:
Users should (1) treat all outputs as non-binding information, (2) seek professional advice for real investments, and (3) use the model together with verified data sources and tooling where applicable.
Requirements: transformers, peft, accelerate, and optionally unsloth for faster inference.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model_name = "unsloth/Qwen2.5-7B-bnb-4bit" # or "Qwen/Qwen2.5-7B" for full precision
adapter_id = "ahmet1338/stock_market_wizard" # your Hugging Face repo
model = AutoModelForCausalLM.from_pretrained(
base_model_name,
load_in_4bit=True, # set False if using non-quantized base
device_map="auto",
)
model = PeftModel.from_pretrained(model, adapter_id)
tokenizer = AutoTokenizer.from_pretrained(adapter_id)
# Example
inputs = tokenizer("Türkiye'de BIST nedir?", return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="unsloth/Qwen2.5-7B-bnb-4bit",
max_seq_length=2048,
load_in_4bit=True,
)
model = FastLanguageModel.get_peft_model(model) # if not already merged
model.load_adapter("ahmet1338/stock_market_wizard")
# Then use for generation as above.
q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj.| Hyperparameter | Value |
|---|---|
| Epochs | 3 |
| Max sequence length | 2048 |
| Batch size (per device) | 2 |
| Gradient accumulation steps | 8 |
| Learning rate | 2e-4 |
| LoRA r | 64 |
| LoRA alpha | 16 |
| Precision | bf16 (Ampere+) / fp16 (e.g. T4) |
Training can be reproduced with the project’s training script (e.g. training/colab_train.py) and the same dataset and hyperparameters.
No formal benchmark evaluation is reported. The model is intended for qualitative use as a Turkish finance-oriented assistant; users should validate outputs for their own use cases.
If you use this adapter or the project in your work, please cite the base model (Qwen2.5) and the dataset (Turkish-Finance-SFT-Dataset) as appropriate. Example:
Qwen2.5:
@article{qwen2.5,
title={Qwen2.5},
author={Qwen Team},
year={2024},
}
For issues related to this model card or the adapter, please open an issue in the project repository. This model is not investment advice; use at your own risk and always seek professional guidance for financial decisions.