Run this model with HF Jobs

Run meridianal/FinAI on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/meridianal/FinAI. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/meridianal/FinAI on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/meridianal/FinAI. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/meridianal/FinAI. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Meridian.AI β€” Continual-Learning Finance LLM

Meridian.AI is a finance-specialized language model that continuously fine-tunes Qwen3-0.6B-Base every hour on a curated mix of finance, math and instruction datasets, using Elastic Weight Consolidation (EWC) to limit forgetting across training sessions. The pipeline runs unattended on free GitHub Actions CPU runners. The model also runs locally on Snapdragon X NPUs (guide).

v1.1.0 (December 2026): the base model changed from Qwen2.5-0.5B to Qwen3-0.6B-Base, and training restarted from the new base. Earlier Qwen2.5 checkpoints remain in this repo's commit history.

  • Base model: Qwen/Qwen3-0.6B-Base (596M params, Qwen3 architecture)
  • Continual learning: Elastic Weight Consolidation (diagonal Fisher)
  • Training cadence: hourly GitHub Actions CI on CPU runners
  • Source code & full docs: github.com/MeridianAlgo/FinAI

Usage

The checkpoint is a standard Qwen3 model, so trust_remote_code=True is not required. Use transformers>=5.0.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

repo_id = "meridianal/FinAI"

tokenizer = AutoTokenizer.from_pretrained(repo_id, subfolder="checkpoint")
model = AutoModelForCausalLM.from_pretrained(
    repo_id,
    subfolder="checkpoint",
    dtype=torch.float32,
)
model.eval()

prompt = """### Instruction:
Explain the difference between a bond's yield to maturity and its coupon rate.

### Response:
"""

inputs = tokenizer(prompt, return_tensors="pt")
with torch.no_grad():
    output = model.generate(
        **inputs,
        max_new_tokens=200,
        do_sample=False,
        repetition_penalty=1.1,
        pad_token_id=tokenizer.pad_token_id,
        eos_token_id=tokenizer.eos_token_id,
    )

print(tokenizer.decode(output[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))

Inputs are formatted with the ### Instruction: / ### Response: template used during training.

Model details

Specification Value
Base model Qwen3-0.6B-Base
Architecture Qwen3ForCausalLM (28 layers, hidden 1,024, GQA 16/8)
Parameters 596M (440M trained; tied embeddings frozen)
Context window 32,768 tokens (trained at 768)
Training dtype float32
Objective Causal LM loss on answers only (prompts masked) + EWC
Continual learning Elastic Weight Consolidation (top-8% diagonal Fisher, Ξ»=200)

Training data

A weighted streaming mix (since v1.2.0):

Dataset Share
Josephgflowers/Finance-Instruct-500k (finance instructions, QA, NER, sentiment) 57%
HuggingFaceTB/smoltalk2 smol-magpie-ultra (general instructions + math) 26%
FinanceMTEB: FOMC, FinSent, financial_phrasebank, FiQA_ABSA, SemEval-2017, ESG, FLS 17%

See training_pipeline.md for why these were chosen over newer finance releases.

Limitations & disclaimer

This is an experimental research project on continual learning for financial NLP. Outputs may contain factual errors and are intended for academic and research purposes only. Nothing generated by this model constitutes financial advice. Do not use outputs to make real financial decisions or execute trades.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for meridianal/FinAI

Finetuned
(834)
this model

Datasets used to train meridianal/FinAI