/ Модель

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

Лицензия
Apache 2.0
Базовая модель
Fireball-12B-v1.0
Опубликована
22 авг 2024

Fireball-12B-v1.0-finance

Генерация текстаТекст → текст

Дообученная EpistemeAI языковая модель на архитектуре Mistral Nemo для кратких ответов на финансовые вопросы.

0скачиваний за 30 дней1лайквеса обновлены8 ноя 2024

Бенчмарки

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

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

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

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

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

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

Fireball-12B-v1.0-finance — языковая модель EpistemeAI, дообученная на финансовых данных для кратких ответов на вопросы о финансах. Это генеративная модель на архитектуре Mistral Nemo с 12 млрд параметров; в карточке базовой модели заявлено контекстное окно 128 тыс. токенов. Дообучение проводилось методом supervised fine-tuning на наборах code-alpaca-297k и alpaca-cleaned, с использованием Unsloth и TRL.

Модель подходит для ответов на финансовые вопросы и других сценариев генерации текста. Карточка также упоминает многоязычные и программные данные в обучении базовой модели, однако для этой версии отдельно подтверждён только английский язык. Модель выпущена под лицензией Apache 2.0. В карточке нет результатов бенчмарков; автор отдельно отмечает отсутствие встроенных механизмов модерации у базовой модели.

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

  • краткие ответы на вопросы о личных финансах
  • объяснение финансовых понятий
  • подготовка черновиков ответов на финансовые запросы

Ограничения

В карточке не приведены результаты бенчмарков. Для базовой модели указано отсутствие встроенной модерации; качество и безопасность финансовых рекомендаций отдельно не подтверждены.

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

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

Открыть на Hugging Face

Finance Fireball 12B

Fireball-12B-v1.0-finance

This model is high quality fine-tune from finance dataset to provide concise finance response.

Benchmark

  • TBD

Training Dataset

Supervised fine-tuning with dataset:

  • candenizkocak/code-alpaca-297k
  • yahma/alpaca-cleaned

Model Card for Fireball-12Bf

The Heavy fine-tuned Mistral-Nemo-Base-2407 Large Language Model (LLM) is a pretrained generative text model of 12B parameters trained jointly by Mistral AI and NVIDIA, it significantly outperforms existing models smaller or similar in size.

For more details about this model please refer to our release blog post.

Key features

  • Released under the Apache 2 License
  • Pre-trained and instructed versions
  • Trained with a 128k context window
  • Trained on a large proportion of multilingual and code data
  • Drop-in replacement of Mistral 7B

Model Architecture

Mistral Nemo is a transformer model, with the following architecture choices:

  • Layers: 40
  • Dim: 5,120
  • Head dim: 128
  • Hidden dim: 14,436
  • Activation Function: SwiGLU
  • Number of heads: 32
  • Number of kv-heads: 8 (GQA)
  • Vocabulary size: 2**17 ~= 128k
  • Rotary embeddings (theta = 1M)

Guardrail/Moderation guide:

For guardrailing and moderating prompts against indirect/direct prompt injections and jailbreaking, please follow the SentinelShield AI GitHub repository: SentinelShield AI

Demo

After installing mistral_inference, a mistral-demo CLI command should be available in your environment.

Transformers

[!IMPORTANT] NOTE: Until a new release has been made, you need to install transformers from source:

pip install mistral_inference
pip install mistral-demo
pip install git+https://github.com/huggingface/transformers.git

If you want to use Hugging Face transformers to generate text, you can do something like this.

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "EpistemeAI/Fireball-12B-v1.0-finance"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
inputs = tokenizer("Should we prepay our private student loans, given our particular profile?", return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=120)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

Accelerator mode:

pip install accelerate #GPU A100/L4

from transformers import AutoModelForCausalLM, AutoTokenizer
from accelerate import Accelerator

# Initialize the accelerator
accelerator = Accelerator()

# Define the model ID
model_id = "EpistemeAI/Fireball-12B-v1.0f"

# Load the tokenizer
tokenizer = AutoTokenizer.from_pretrained(model_id)

# Load the model and prepare it for distributed setup using accelerate
model = AutoModelForCausalLM.from_pretrained(model_id)

# Move the model to the appropriate device using accelerate
model, = accelerator.prepare(model)

# Prepare inputs
inputs = tokenizer("Should we prepay our private student loans, given our particular profile?", return_tensors="pt").to(accelerator.device)

# Generate outputs with the model
outputs = model.generate(**inputs, max_new_tokens=20)

# Decode and print the outputs
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

[!TIP] Unlike previous Mistral models, Mistral Nemo requires smaller temperatures. We recommend to use a temperature of 0.3.

Note

EpistemeAI/Fireball-12B is a pretrained base model and therefore does not have any moderation mechanisms. Go to Guardrail/Moderation guide section for moderation guide

Citation for yahma/alpaca-cleaned dataset

@misc{alpaca,
  author = {Rohan Taori and Ishaan Gulrajani and Tianyi Zhang and Yann Dubois and Xuechen Li and Carlos Guestrin and Percy Liang and Tatsunori B. Hashimoto },
  title = {Stanford Alpaca: An Instruction-following LLaMA model},
  year = {2023},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/tatsu-lab/stanford_alpaca}},
}

Uploaded model

  • Developed by: EpistemeAI
  • License: apache-2.0
  • Finetuned from model : EpistemeAI/Fireball-12B-v1.0

This mistral model was trained 2x faster with Unsloth and Huggingface's TRL library.

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

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

GPU в ailist

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

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

Доступ к модели ограничен автором; у платформы нет доступа к весам.

Ревизия весов
9229393

0 моделей