• Stars
    star
    190
  • Rank 202,581 (Top 5 %)
  • Language
    Python
  • License
    GNU Affero Genera...
  • Created about 1 year ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

金融财报问答大模型LLM

ChatFinance

金融财报问答大模型

GitHub version GitHub version GitHub version GitHub version

框架 Framework

模型 Model

使用ChatGLM2-6B模型进行微调,也可以使用base_model进行测试。

bash downloads/download_model.sh

数据 Dataset

原始数据为ChatGLM评估挑战赛-金融赛道数据集,经过OCR处理之后转化为TXT数据 保留接口:可使用公开金融数据对ElasticSearch和Weaviate数据库进行补充

bash downloads/download_data.sh

训练 Training

可以支持AMD ROCm 上的SFT

python sft/chatglm2_6b_sft_lora.py

推理 Inference

vim configs/server.json # 修改base_path和base_python
sudo bash inference_6b.sh 

使用效果 Demo

# 文字概括
{"question": "根据2020年水发燃气的年报,请简要介绍报告期内公司行业格局和趋势的情况。", "answer": "根据2020年水发燃气的年报,公司在行业内的行业格局和趋势情况如下:\n\n1. 行业格局:在能源行业中,水发煤气在规模和市场份额方面占据领先地位。2020年,水发燃气的总资产达到1867亿元人民币,是行业内唯一一家总资产超过1000亿元人民币的公司。同时,水发煤气在煤炭、石油和天然气等领域的市场份额也位居行业前列。\n\n2. 趋势情况:随着能源转型和环保要求的提高,清洁能源已成为能源行业的发展趋势。水发煤气在年报中提到,公司正加大在清洁能源领域的投入,以适应这一趋势。此外,水发煤气还表示,将继续深化在煤炭、石油和天然气等传统领域的业务,以保持公司在能源行业的主导地位。\n\n综上所述,水发煤气在2020年的行业格局中占据了领先地位,同时也在积极应对能源转型和环保要求,加大在清洁能源领域的投入,以适应清洁能源的发展趋势。"}

# 检索
{"question": "江化微2019年研发费用和财务费用分别是多少元?", "answer": "江化微2019年研发费用为5.49亿元,财务费用为1.99亿元。"}

# 开放问题
{"question": "什么是净利润?", "answer": "净利润是指企业在扣除所有成本、税金和其他费用后,所剩余的利润。净利润通常用于衡量企业的盈利能力。"}

More Repositories

1

mmVital-Signs

mmVital-Signs project aims at vital signs detection and provide standard python API from Texas Instrument (TI) mmWave hardware, such as xWR14xx, xWR16xx and xWR68xx.
C
179
star
2

mPose3D

mPose3D, a mmWave-based 3D human pose estimation model.
Python
110
star
3

eMarkDown

✨ Markdown Desktop App with Cloud Sync. MarkDown云笔记软件
JavaScript
64
star
4

PySeg

Python 中文分词库/词性标注库
Python
41
star
5

FPS-Game

An Unity-developed F(irst)P(erson)S(hooting) game. 🥳🤩😏
ASP
23
star
6

PyRef

批量论文引用格式查询/Latex BibTeX格式批量替换/bib文件自动生成
JavaScript
17
star
7

GestureRecognition

SJTU-CS386 Project, CV gesture recognition with Realsense.
Python
16
star
8

InstaPicture

一款用react和python开发的图片推荐社交软件,支持内容推荐、好友圈、用户相册等功能。
JavaScript
14
star
9

ChinaVis-Challenge-2020

ChinaVis可视化挑战赛作品--经济与舆情影响分析
JavaScript
10
star
10

Wifi-Indoor-Location

SJTU-CS339 Project, Use WiFi RSSI to locate mobile devices indoors.
HTML
7
star
11

SmartProxyPool

Auto ProxyPool with Visualization
JavaScript
4
star
12

RoboGrab-Sorter

This project utilizes deep reinforcement learning techniques to train a robot, which combines a mobile platform and a Panda robotic arm, to automatically grasp objects on a tabletop and classify them.
Python
4
star
13

LogisticsWebPage

A js page supporting online-calculation.
JavaScript
3
star
14

SJTU-OnlineJudge

some online judge and c++ template for sjtu
C++
3
star
15

SJTU-CS499

Data Science and Fundamental Math-theory in CS.
TeX
2
star
16

NetEaseMusicDownload

网易云音乐批量下载器
Python
2
star
17

KylinC.github.io

A blog for cute cute KylinChen
HTML
2
star
18

SJTU-CS214

Lab for Gaoxiaofeng in SJTU.
TeX
2
star
19

SJTU-CS356

Projects and learning materials for SJTU-CS307 Operating System.
C
2
star
20

Llama-3-Distill

Distillation version of llama-68m only for MLsys research use.
Python
2
star
21

GraphX-In-Action

Some Scala Practice Scripts For IntelliJ+SBT+Scala+GraphX(Spark), Based on Ubuntu.
Scala
2
star
22

WhatTheHellBackingSchool

返校通知生成器/手机网页端APP/Simple Flask Webpage for joking.
CSS
1
star
23

LinuxC-SocketChat

1
star
24

SJTU-CS489

Reinforcement Learning course project.
Python
1
star
25

Python3-mmWave-IWR6843

Python
1
star
26

ClappyBirds

C
1
star
27

BCNN

Bayesian Convolutional Neural Network by Pytorch and Pyro.
Jupyter Notebook
1
star