Upload MapFinBen unified merged Qwen3-8B v2 model: README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: Qwen/Qwen3-8B-Instruct
|
| 4 |
+
tags:
|
| 5 |
+
- finance
|
| 6 |
+
- multilingual
|
| 7 |
+
- mapfinben
|
| 8 |
+
- qwen3
|
| 9 |
+
- lora
|
| 10 |
+
language:
|
| 11 |
+
- en
|
| 12 |
+
- zh
|
| 13 |
+
- id
|
| 14 |
+
- es
|
| 15 |
+
- el
|
| 16 |
+
- ja
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# mapfinben-qwen3-merged-unified-v2
|
| 20 |
+
|
| 21 |
+
Unified LoRA fine-tuned Qwen3-8B-Instruct for **CCL26-Eval-MapFinBen** (v2 continued fine-tune on v1 adapter).
|
| 22 |
+
|
| 23 |
+
## Model Details
|
| 24 |
+
|
| 25 |
+
- **Base model:** [Qwen3-8B-Instruct](https://huggingface.co/Qwen/Qwen3-8B-Instruct)
|
| 26 |
+
- **Method:** LoRA SFT v1 (rank=16, 1 epoch) + v2 continue (0.5 epoch, lr=5e-5)
|
| 27 |
+
- **Training data:** MapFinBen train split, unified 51,064 samples
|
| 28 |
+
- **Framework:** LLaMA-Factory
|
| 29 |
+
- **Parameters:** ~8B (merged full weights)
|
| 30 |
+
|
| 31 |
+
## Usage
|
| 32 |
+
|
| 33 |
+
```python
|
| 34 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 35 |
+
|
| 36 |
+
model_path = "Ljy2004/mapfinben-qwen3-merged-unified-v2"
|
| 37 |
+
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
|
| 38 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 39 |
+
model_path, trust_remote_code=True, torch_dtype="auto", device_map="auto"
|
| 40 |
+
)
|
| 41 |
+
|
| 42 |
+
messages = [{"role": "user", "content": "YOUR_PROMPT"}]
|
| 43 |
+
text = tokenizer.apply_chat_template(
|
| 44 |
+
messages, tokenize=False, add_generation_prompt=True, enable_thinking=False
|
| 45 |
+
)
|
| 46 |
+
inputs = tokenizer(text, return_tensors="pt").to(model.device)
|
| 47 |
+
outputs = model.generate(**inputs, max_new_tokens=512)
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
**Important:** Use Qwen3 chat template with `enable_thinking=False` to match training.
|
| 51 |
+
|
| 52 |
+
## Citation
|
| 53 |
+
|
| 54 |
+
MapFinBen benchmark: https://github.com/HgITSE/MapFinBen
|