/ Модель

Характеристики

Контекст
4 096 токенов
Параметры
12,9 млрд
Размер весов
26,5 ГБ
Лицензия
Apache 2.0
Архитектура
baichuan · dense
Опубликована
23 окт 2023

DISC-FinLLM

Генерация текстаТекст → текст3 профессии

DISC-FinLLM — дообученная на финансовых инструкциях китайская языковая модель для консультаций, анализа финансовых текстов, расчётов и ответов на вопросы.

40скачиваний за 30 дней19лайковвеса обновлены30 окт 2023

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

DISC-FinLLM — специализированная финансовая языковая модель, разработанная и открытая лабораторией Data Intelligence and Social Computing Университета Фудань (Fudan-DISC). Она основана на Baichuan-13B-Chat и дообучена с помощью LoRA на наборе DISC-Fin-SFT примерно из 250 тысяч инструкций. В метаданных указаны архитектура Baichuan с причинной языковой моделью, размер 12,9 млрд параметров и формат PyTorch; лицензия — Apache-2.0.

Модель предназначена для диалоговых финансовых консультаций на китайском языке, анализа финансовых текстов, расчётов и ответов на вопросы по финансовым знаниям. Она может извлекать информацию, определять тональность и классифицировать тексты, объяснять финансовые понятия, рассчитывать ставки и темпы роста, выполнять статистические расчёты и применять модели Black-Scholes и EDF. Модуль вопросов и ответов использует сведения из финансовых новостей, аналитических отчётов и нормативных документов для анализа событий и разъяснения политики.

Модель ориентирована на финансовый контекст Китая и может помогать с широким кругом финансовых задач. Авторы предупреждают, что результаты следует использовать только как справочную информацию: модель может ошибаться и не заменяет профессиональных финансовых аналитиков и экспертов. В README отмечено, что опубликованные веса могут отличаться от версии демонстрационного сервиса.

Сценарии применения

  • диалоговые консультации по финансовым темам на китайском языке
  • извлечение информации и классификация финансовых документов
  • анализ тональности финансовых текстов
  • расчёт ставок, темпов роста и статистических показателей
  • расчёт цены опциона по модели Black-Scholes и вероятности дефолта EDF
  • ответы на вопросы по финансовым новостям, аналитическим отчётам и нормативным документам

Ограничения

Модель может выдавать ошибочные результаты; авторы рекомендуют использовать их только как справочную информацию, а не вместо консультации профессионального финансового аналитика или эксперта. Опубликованные веса могут отличаться от версии модели в демонстрационном сервисе.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

This repository contains the DISC-FinLLM, version of Baichuan-13B-Chat as the base model.

Demo | Tech Report

Please note that due to the ongoing development of the project, the model weights in this repository may differ from those in our currently deployed demo.

DISC-FinLLM is a large model in the financial field specifically designed to provide users with professional, intelligent, and comprehensive financial consulting services in financial scenarios. It is developed and open sourced by Fudan University Data Intelligence and Social Computing Laboratory (Fudan-DISC). It is a multi-expert smart financial system composed of four modules for different financial scenarios: financial consulting, financial text analysis, financial calculation, and financial knowledge retrieval and question answering. These modules showed clear advantages in four evaluations including financial NLP tasks, human test questions, data analysis and current affairs analysis, proving that DISC-FinLLM can provide strong support for a wide range of financial fields. DISC-FinLLM can help in different application scenarios and can be used to implement different functions:

  • Financial Consultation: This module can start multiple rounds of dialogue with users on financial topics in the Chinese financial context, or explain relevant knowledge of financial majors to users. It is composed of the financial consulting instructions part of the data set.
  • Financial Text Analysis: This module can help users complete NLP tasks such as information extraction, sentiment analysis, text classification, and text generation on financial texts. It is trained by the financial task instructions in the data set.
  • Financial Calculation: This module can help users complete tasks related to mathematical calculations. In addition to basic calculations such as interest rates and growth rates, it also supports statistical analysis and includes the Black-Scholes option pricing model and the EDF expected default probability model. Financial model calculations included. This module is partially trained from the financial computing instructions in the data set.
  • Financial Knowledge Retrieval Q&A: This module can provide users with investment advice, current affairs analysis, and policy interpretation based on financial news, research reports, and related policy documents. It is partially trained from the retrieval-enhanced instructions in the dataset.

Check our HOME for more information.

DISC-Fin-SFT Dataset

DISC-FinLLM is a large financial model based on the high-quality financial data set DISC-Fin-SFT. We construct and fine-tuned the LoRA instruction on the general-domain Chinese large model Baichuan-13B-Chat. DISC-Fin-SFT contains a total of about 250,000 pieces of data, divided into four sub-data sets, which are financial consulting instructions, financial task instructions, financial computing instructions, and retrieval-enhanced instructions.

DatasetSamplesInput LengthOutput Length
Financial Consulting Instructions63k26369
Financial Task Instructions110k67635
Financial Computing Instructions57k73190
Retrieval-enhanced Instructions20k1031521
DISC-Fin-SFT246k351198

Using through hugging face transformers

>>>import torch
>>>>>>from transformers import AutoModelForCausalLM, AutoTokenizer
>>>from transformers.generation.utils import GenerationConfig
>>>tokenizer = AutoTokenizer.from_pretrained("Go4miii/DISC-FinLLM", use_fast=False, trust_remote_code=True)
>>>model = AutoModelForCausalLM.from_pretrained("Go4miii/DISC-FinLLM", device_map="auto", torch_dtype=torch.float16, trust_remote_code=True)
>>>model.generation_config = GenerationConfig.from_pretrained("Go4miii/DISC-FinLLM")
>>>messages = []
>>>messages.append({"role": "user", "content": "请解释一下什么是银行不良资产?"})
>>>response = model.chat(tokenizer, messages)
>>>print(response)

Disclaimer

DISC-FinLLM has problems and shortcomings that cannot be overcome by current large language models. Although it can provide services in the financial field on many tasks and scenarios, the model should be used for user reference only and cannot replace professional financial analysts and financial experts, we hope that users of DISC-FinLLM will be able to critically evaluate the model. We are not responsible for any problems, risks or adverse consequences arising from the use of DISC-FinLLM.

Citation

If our project has been helpful for your research and work, please kindly cite our work as follows:

@misc{yue2023disclawllm,
    title={DISC-LawLLM: Fine-tuning Large Language Models for Intelligent Legal Services}, 
    author={Shengbin Yue and Wei Chen and Siyuan Wang and Bingxuan Li and Chenchen Shen and Shujun Liu and Yuxuan Zhou and Yao Xiao and Song Yun and Xuanjing Huang and Zhongyu Wei},
    year={2023},
    eprint={2309.11325},
    archivePrefix={arXiv},
    primaryClass={cs.CL}
}

License

The use of the source code in this repository complies with the Apache 2.0 License.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Нельзя запустить

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
BaichuanForCausalLM
Ревизия весов
8e235cb

0 моделей