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.
Instructions to use meridianal/FinAI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use meridianal/FinAI with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="meridianal/FinAI")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("meridianal/FinAI", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use meridianal/FinAI with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "meridianal/FinAI" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "meridianal/FinAI", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/meridianal/FinAI
- SGLang
How to use meridianal/FinAI with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "meridianal/FinAI" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "meridianal/FinAI", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "meridianal/FinAI" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "meridianal/FinAI", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use meridianal/FinAI with Docker Model Runner:
docker model run hf.co/meridianal/FinAI
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.
Model tree for meridianal/FinAI
Base model
Qwen/Qwen3-0.6B-Base