Downloads · 30 days
4
12% of all-time downloads
Ljy2004/mapfinben-qwen3-merged-unified
mapfinben-qwen3-merged-unified is a machine learning model from Ljy2004. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Unified LoRA fine-tuned Qwen3-8B-Instruct for CCL26-Eval-MapFinBen (five financial NLP tasks in one model).
Downloads · 30 days
4
12% of all-time downloads
All-time downloads
34
Public
Parameters
8.2B
16.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.4 GB · 100%
From the Hugging Face model README
Unified LoRA fine-tuned Qwen3-8B-Instruct for CCL26-Eval-MapFinBen (five financial NLP tasks in one model).
| Task | Description |
|---|---|
| MapFinAS | Financial multiple-choice QA |
| MapFinQA | Financial reading comprehension QA |
| MapFinSA | Financial sentiment analysis |
| MapFinTC | Financial topic classification |
| MapFinTS | Financial text summarization |
from transformers import AutoModelForCausalLM, AutoTokenizer
model_path = "Ljy2004/mapfinben-qwen3-merged-unified"
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_path, trust_remote_code=True, torch_dtype="auto", device_map="auto"
)
messages = [{"role": "user", "content": "YOUR_PROMPT"}]
text = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True, enable_thinking=False
)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512)
Important: Use Qwen3 chat template with enable_thinking=False to match training.
MapFinBen benchmark: https://github.com/MapFinBen/MapFinBen