/ Модель

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

Контекст
2 048 токенов
Параметры
8,8 млрд
Размер весов
27,4 ГБ
Лицензия
CC BY-NC 4.0
Архитектура
opt · dense
Библиотека
transformers
Опубликована
4 мая 2023

galactica-6.7b-evol-instruct-70k

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

Дообученная на инструкциях научная языковая модель GALACTICA для генерации ответов и объяснений по запросам.

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

Бенчмарки

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

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

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

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

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

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

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

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

GALACTICA 6.7B Evol-Instruct — языковая модель, созданная дообучением GALACTICA 6.7B на 70 тысячах пар инструкций и ответов из набора Evol-Instruct. Базовая модель разработана для работы с научными текстами и данными; дообучение позволяет задавать ей инструкции и получать ответы в диалоговом формате. Репозиторий содержит веса PyTorch для библиотеки Transformers. В метаданных указано 8,8 млрд параметров и контекст 2048 токенов.

Модель подходит для генерации ответов на вопросы и объяснений по научным темам, а также для экспериментов с применением языковых моделей в научной области. Качественная оценка в карточке указывает на более точное следование запросам по сравнению с версией GALPACA, дообученной на Alpaca. Ответы могут содержать фактические ошибки, поэтому модель не следует использовать в производственной среде без защитных мер и проверки результатов. Лицензия — CC BY-NC 4.0; для моделей на основе Evol-Instruct-70k также применяются условия использования OpenAI.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

GALACTICA 6.7B Evol-Instruct

GALACTICA 6.7B fine-tuned on the Evol-Instruct 70k dataset.

The model card from the original Galactica repo can be found here, and the original paper here.

The HF dataset for Evol-Instruct-70k can be found here, and the original GitHub repo for WizardLM is here.

Model Details

The GALACTICA models are trained on a large-scale scientific corpus and are designed to perform scientific tasks.

Model Use

The GALACTICA model card specifies that the primary indended users of the GALACTICA models are researchers studying language models applied to the scientific domain, and it cautions against production use of GALACTICA without safeguards due to the potential for the model to produce inaccurate information. The original GALACTICA models are available under a non-commercial CC BY-NC 4.0 license, and models based on the Evol-Instruct-70k dataset are additionally subject to the OpenAI Terms of Service.

Full Prompt:

Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
Write out Maxwell's equations and explain each one.

### Response:

Response:

Maxwell's equations are a set of four equations that describe the behavior of electromagnetic fields. These equations were developed by James Clerk Maxwell in 1864 and are widely used in the study of electromagnetism.

  1. Gauss's Law: This equation states that the electric charge inside a closed surface is equal to the flux of electric field through the surface. Mathematically, it can be expressed as:

$$\nabla \bullet \textbf{E} = \frac{\rho}{\epsilon_0}$$

where E is the electric field, ρ is the charge density, ε0 is the electric constant, and ∇ is the divergence operator.

  1. Faraday's Law: This equation states that the electric field around a closed loop is proportional to the time rate of change of magnetic flux through the loop. Mathematically, it can be expressed as:

$$\nabla \times \textbf{E} = -\frac{\partial\textbf{B}}{\partial t}$$

where B is the magnetic field, t is time, and ∇ × is the curl operator.

  1. Gauss's Law for Magnetism: This equation states that the magnetic charge inside a closed surface is equal to the flux of magnetic field through the surface. Mathematically, it can be expressed as:

$$\nabla \bullet \textbf{B} = 0$$

where B is the magnetic field.

  1. Ampere's Law: This equation states that the magnetic field around a closed loop is proportional to the current through the loop. Mathematically, it can be expressed as:

$$\nabla \times \textbf{B} = \mu_0\textbf{J} + \mu_0\epsilon_0\frac{\partial \textbf{E}}{\partial t}$$

where J is the current density, μ0 is the magnetic constant, and ε0 is the electric constant.

These equations form the foundation of all electromagnetic theory and are used to describe the behavior of electromagnetic fields in a wide range of applications, from radio waves to high-energy particles.

Training Data

This model was trained by fine-tuning pre-trained GALACTICA 6.7B on the Evol-Instruct-70k dataset. GALACTICA models were trained on 106 billion tokens of open-access scientific text and data, including papers, textbooks, scientific websites, encyclopedias, and more. Fine-tuning the base GALACTICA models on the 70k instruction-response pairs in the Evol-Instruct-70k dataset allows users to query the resulting model in an instruct-response fashion.

How to Use

The GALACTICA Evol-Instruct-70K weights are made available for use with the transformers library.

# pip install accelerate
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("GeorgiaTechResearchInstitute/galactica-6.7b-evol-instruct-70k")
model = AutoModelForCausalLM.from_pretrained("GeorgiaTechResearchInstitute/galactica-6.7b-evol-instruct-70k", device_map="auto", torch_dtype=torch.float16)

# the evol-instruct models were fine-tuned with the same hidden prompts as the Alpaca project
no_input_prompt_template = ("Below is an instruction that describes a task. "
                            "Write a response that appropriately completes the request.\n\n"
                            "### Instruction:\n{instruction}\n\n### Response:")
prompt = "Write out Maxwell's equations and explain the meaning of each one."
formatted_prompt = no_input_prompt_template.format_map({'instruction': prompt})

tokenized_prompt = tokenizer(formatted_prompt, return_tensors="pt").input_ids.to(model.device)
out_tokens = model.generate(tokenized_prompt)

print(tokenizer.batch_decode(out_tokens, skip_special_tokens=False, clean_up_tokenization_spaces=False))

Training Resources

GALACTICA 6.7B Evol-Instruct was fine-tuned in about 22 hours using 8 A100 80GB GPUS, 16-bit mixed-precision, an effective batch-size of 64, and with a maximum context window of 2048 tokens. This model was trained using full-shard data parallelism.

Performance and Limitations

Qualitative evaluation suggests that the evol-instruct-70k fine-tuned Galactica models are signficantly more controllable and attentive to user prompts than the Alpaca fine-tuned GALPACA models.

Works Cited

@inproceedings{GALACTICA,
    title={GALACTICA: A Large Language Model for Science},
    author={Ross Taylor and Marcin Kardas and Guillem Cucurull and Thomas Scialom and Anthony Hartshorn and Elvis Saravia and Andrew Poulton and Viktor Kerkez and Robert Stojnic},
    year={2022}
}
@misc{xu2023wizardlm,
      title={WizardLM: Empowering Large Language Models to Follow Complex Instructions}, 
      author={Can Xu and Qingfeng Sun and Kai Zheng and Xiubo Geng and Pu Zhao and Jiazhan Feng and Chongyang Tao and Daxin Jiang},
      year={2023},
      eprint={2304.12244},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

Open LLM Leaderboard Evaluation Results

Detailed results can be found here

MetricValue
Avg.33.68
ARC (25-shot)42.58
HellaSwag (10-shot)49.3
MMLU (5-shot)32.96
TruthfulQA (0-shot)42.1
Winogrande (5-shot)56.27
GSM8K (5-shot)0.38
DROP (3-shot)12.16

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

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

GPU в ailist

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

Можно запустить

Подбираем GPU…

Класс архитектуры
OPTForCausalLM
Ревизия весов
92fe4da

0 моделей