Instructions to use TheFinAI/FinSeer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TheFinAI/FinSeer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="TheFinAI/FinSeer")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("TheFinAI/FinSeer") model = AutoModel.from_pretrained("TheFinAI/FinSeer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TheFinAI/FinSeer with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TheFinAI/FinSeer" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TheFinAI/FinSeer", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TheFinAI/FinSeer
- SGLang
How to use TheFinAI/FinSeer 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 "TheFinAI/FinSeer" \ --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": "TheFinAI/FinSeer", "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 "TheFinAI/FinSeer" \ --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": "TheFinAI/FinSeer", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TheFinAI/FinSeer with Docker Model Runner:
docker model run hf.co/TheFinAI/FinSeer
| language: | |
| - en | |
| pipeline_tag: image-text-to-text | |
| library_name: transformers | |
| extra_gated_fields: | |
| First name: text | |
| Last name: text | |
| Affiliation: text | |
| Job title: text | |
| Email: text | |
| Country: country | |
| I want to use this model for: | |
| type: select | |
| options: | |
| - Research | |
| - Education | |
| - label: Other | |
| value: other | |
| I agree to use this model for non-commercial use ONLY: checkbox | |
| # FinSeer Model Card | |
| ## Model details | |
| **Model type:** | |
| This is our first dedicated retriever for financial time-series forecasting, Financial TimeSeries Retriever (FinSeer). | |
| **Paper or resources for more information:** | |
| https://arxiv.org/pdf/2502.05878 | |
| ## Intended use | |
| **Primary intended uses:** | |
| The primary use of FinSeer is research on financial time-series forecasting using retrieval-augmented generation (RAG) framework. | |
| # How to use | |
| ## Installation | |
| Install Package | |
| pip install InstructorEmbedding | |
| pip install -U FlagEmbedding | |
| pip install sentence-transformers==2.2.2 | |
| pip install protobuf==3.20.0 | |
| pip install yahoo-finance | |
| python -m pip install -U angle-emb | |
| pip install transformers==4.33.2 # UAE | |
| ## Disclaimer | |
| This repository and its contents are provided for academic and educational purposes only. None of the material constitutes financial, legal, or investment advice. No warranties, express or implied, are offered regarding the accuracy, completeness, or utility of the content. The authors and contributors are not responsible for any errors, omissions, or any consequences arising from the use of the information herein. Users should exercise their own judgment and consult professionals before making any financial, legal, or investment decisions. The use of the software and information contained in this repository is entirely at the user's own risk. | |
| By using or accessing the information in this repository, you agree to indemnify, defend, and hold harmless the authors, contributors, and any affiliated organizations or persons from any and all claims or damages. | |
| ## Citaion | |
| ```bibtex | |
| @misc{xiao2025enhancingfinancialtimeseriesforecasting, | |
| title={Enhancing Financial Time-Series Forecasting with Retrieval-Augmented Large Language Models}, | |
| author={Mengxi Xiao and Zihao Jiang and Lingfei Qian and Zhengyu Chen and Yueru He and Yijing Xu and Yuecheng Jiang and Dong Li and Ruey-Ling Weng and Min Peng and Jimin Huang and Sophia Ananiadou and Qianqian Xie}, | |
| year={2025}, | |
| eprint={2502.05878}, | |
| archivePrefix={arXiv}, | |
| primaryClass={cs.CL}, | |
| url={https://arxiv.org/abs/2502.05878}, | |
| } | |
| ``` | |