Downloads · 30 days
12
21% of all-time downloads
RichardErkhov/ceadar-ie_-_FinanceConnect-13B-4bits
ceadar-ie_-_FinanceConnect-13B-4bits is a text generation model from RichardErkhov. Use it when you need the model to write or continue text. It is set up for transformers.
Downloads · 30 days
12
21% of all-time downloads
All-time downloads
56
Public
Parameters
13.2B
7.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors7.8 GB · 100%
How the weights are stored.
U812.7B · 96%
From the Hugging Face model README
Quantization made by Richard Erkhov.
FinanceConnect-13B - bnb 4bits
language: en datasets:
FinanceConnect is a state-of-the-art, open-source chat model tailored for finance and economic discussions. Built on the robust Llama2-13B architecture, this model has been fine-tuned on a combination of FinTalk-19k and Alpaca datasets, making it a valuable resource for finance professionals, researchers, and enthusiasts.
Drawing strength from the FinTalk-19k and Alpaca dataset, a curated collection focused on financial knowledge, this model provides insights and information related to the finance industry. For a deeper dive into the dataset, visit: FinTalk-19k, Alpaca
| Benchmark | BloombergGPT 50B | FinanceConnect 13B |
|---|---|---|
| MMLU | 39.8 | 52.08 |
| FPB | 51.1 | 57.2 |
| Cost | $2.67 Million | $27 |
| Benchmark | FinanceConnect 13B |
|---|---|
| MMLU | 52.08 |
| ARC | 55.12 |
| HellaSwag | 77.73 |
| TruthfulQA | 38.80 |
| Winogrande | 71.82 |
| GSM8K | 1.6 |
Experience the capabilities of the FinanceConnect model through a well-structured Python interface. To kick-start your exploration, follow the steps and snippets given below:
import torch
from typing import Any, Dict
from transformers import (
AutoModelForCausalLM,
AutoTokenizer,
BitsAndBytesConfig,
HfArgumentParser,
TrainingArguments,
PreTrainedTokenizerFast,
pipeline,
logging,
)
import time
model_name = "ceadar-ie/FinanceConnect-13B"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.float16, load_in_8bit = True, device_map = "auto", trust_remote_code=True)
def generate_text(input_text):
tokenizer.padding_side = "right"
num_words_input = len(input_text.split())
start_time = time.time()
pipe = pipeline(task="text-generation", model=model, tokenizer=tokenizer, max_length = 1000)
prompt = f"<s>[INST] {input_text} [/INST]"
#prompt = input_text
result = pipe(prompt)
generated_text = result[0]['generated_text'].replace(prompt, "").strip()
end_time = time.time()
time_taken = end_time - start_time
num_words_generated = len(generated_text.split())
print("Generated Output:")
print(generated_text)
print('=' * 60 )
print("\nNumber of Words in Input Text:", num_words_input)
print("Number of Words in Generated Output:", num_words_generated)
print("Time Taken to Generate Output: {:.2f} seconds".format(time_taken))
List in detail ten key factors influencing the current state of the global economy.
The current state of the global economy is influenced by several factors, including:
Explain the concept of quantitative easing and its impact on financial markets.
Quantitative easing is a monetary policy tool used by central banks to stimulate economic growth and combat inflation. It involves the purchase of assets such as government bonds, mortgage-backed securities, and corporate bonds by a central bank. This increases the amount of money in circulation, lowers interest rates, and encourages banks to lend more, which can boost economic growth. However, quantitative easing can also lead to inflation if it is not implemented carefully, as it can cause prices to rise more than wages can keep up with.
I've recently started working and want to manage my finances. Give me a detailed answer in 10 points on how do I set up a budget?
Setting up a budget can help manage finances and save money. Here are some tips:
The FinanceConnect model, developed by CeADAR Connect Group, combines the licensing frameworks of Llama2, FinTalk-8k and Alpaca. Under Meta's terms, users are granted a non-exclusive, worldwide, non-transferable, royalty-free limited license for the use and modification of Llama Materials, inclusive of the Llama2 model and its associated documentation. When redistributing, the provided Agreement and a specific attribution notice must be included. Further, in alignment with the FinTalk dataset's(Apache 2.0) licensing and Alpaca dataset's(cc-by-nc-4.0) licensing, the model is distributed under the umbrella of all three licenses.
FinanceConnect is specifically tailored for finanical discussions and knowledge. It is not optimized for:
@misc {ceadar_2023,
author = { {CeADAR} },
title = { FinanceConnect-13B (Revision 5f7841d) },
year = 2023,
url = { https://huggingface.co/ceadar-ie/FinanceConnect-13B },
doi = { 10.57967/hf/1405 },
publisher = { Hugging Face }
}
For any further inquiries or feedback concerning FinanceConnect, please forward your communications to [email protected]