BIG-Bench Hard
23 трудные задачи на многошаговое рассуждение
0,4831−0,28 до лидера
Один прогон
Составлено на русском по карточке модели и метаданным Hugging Face
Медицинская языковая модель HPAI на базе Llama 3 для ответов на вопросы и исследовательской работы с англоязычными медицинскими материалами.
Llama3-Aloe-8B-Alpha — языковая модель HPAI для вопросов и ответов в медицинской и биомедицинской тематике. Это плотный авторегрессионный трансформер с декодером на архитектуре Llama 3, содержащий 7,5 млрд параметров и принимающий текст. Модель преимущественно рассчитана на английский язык; длина контекста — 8192 токена.
Модель дообучена на основе meta-llama/Meta-Llama-3-8B. В README описаны оценки на медицинских наборах вопросов и ответов, включая PubMedQA, MedQA, MedMCQA и CareQA; авторы также сообщают об улучшении результатов при использовании специальной техники подсказок Medprompt. Модель подходит для исследовательской работы, ответов на медицинские учебные вопросы и изучения медицинских текстов.
Лицензия CC-BY-NC-4.0 допускает некоммерческое использование. Модель не предназначена для клинической практики, постановки диагноза или выдачи медицинских рекомендаций: ответы могут быть ошибочными или токсичными, а меры безопасности не исключают обхода ограничений.
Модель не следует использовать для клинической практики, диагностики или медицинских рекомендаций; её ответы могут содержать ошибки и токсичный контент, а защитные меры можно обойти. Лицензия CC-BY-NC-4.0 ограничивает использование некоммерческими целями.
Результаты из открытых лидербордов в сравнении с лидерами каталога на 30 ноября 2026
Цвет сравнивает модели внутри строки: чем темнее ячейка, тем лучше результат в этом тесте. Таблица листается вправо
| Тест | Llama3-Aloe-8B-Alphaэта модель | calme-3.2-instruct-78b | T3Q-qwen2.5-14b-v1.0-e3 | Llama-3.3-70B-Instruct | AceMath-72B-Instruct | L3.3-MS-Nevoria-70b | CalmeRys-78B-Orpo-v0.1 | internlm2_5-20b-chat | internlm2_5-20b-llamafied | calme-2.1-qwen2.5-72b |
|---|---|---|---|---|---|---|---|---|---|---|
| BIG-Bench HardBBH Raw | 0,4831 | 0,7319 | 0,7586 — лучший результат | 0,6919 | 0,6402 | 0,6998 | 0,7262 | 0,7474 | 0,7478 | 0,7262 |
| GPQAGPQA Raw | 0,2945 | 0,4027 | 0,4169 | 0,3289 | 0,271 | 0,4706 — лучший результат | 0,4002 | 0,3213 | 0,3381 | 0,3633 |
| IFEvalIFEval Raw | 0,5081 | 0,8063 | 0,7324 | 0,8998 — лучший результат | 0,495 | 0,6963 | 0,8163 | 0,701 | 0,341 | 0,8662 |
| MATH, уровень 5MATH Lvl 5 Raw | 0,0612 | 0,4033 | 0,2863 | 0,4834 | 0,7145 — лучший результат | 0,3958 | 0,4063 | 0,4079 | 0,1715 | 0,5914 |
| MMLU-ProMMLU-PRO Raw | 0,3295 | 0,7303 — лучший результат | 0,5884 | 0,5332 | 0,4411 | 0,5535 | 0,7012 | 0,3998 | 0,4051 | 0,5619 |
| MuSRMUSR Raw | 0,3673 | 0,6024 — лучший результат | 0,5911 | 0,4461 | 0,4062 | 0,4682 | 0,5902 | 0,4558 | 0,4475 | 0,4298 |
Место — среди моделей каталога с результатом этого теста
23 трудные задачи на многошаговое рассуждение
0,4831−0,28 до лидера
Один прогон
Вопросы уровня аспирантуры по физике, химии и биологии
0,2945−0,18 до лидера
Один прогон
Точное выполнение формальных инструкций к ответу
0,5081−0,39 до лидера
Один прогон
Самые сложные олимпиадные задачи по математике
0,0612−0,65 до лидера
Один прогон
Вопросы с десятью вариантами ответа по 14 дисциплинам
0,3295−0,40 до лидера
Один прогон
Рассуждение над длинными историями: детективы, планирование
0,3673−0,24 до лидера
Один прогон
Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста
Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.
Напишите запросы, при необходимости приложите файлы и эталонные ответы.
Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.
Разделы каталога профессий, в задачах которых используется эта модель
README от автора на Hugging Face, как он его опубликовал
AVAILABLE NOW THE LATEST ITERATION OF THE ALOE FAMILY! ALOE BETA 8B AND ALOE BETA 70B VERSIONS. These include:
Aloe is a new family of healthcare LLMs that is highly competitive with all previous open models of its range and reaches state-of-the-art results at its size by using model merging and advanced prompting strategies. Aloe scores high in metrics measuring ethics and factuality, thanks to a combined red teaming and alignment effort. Complete training details, model merging configurations, and all training data (including synthetically generated data) will be shared. Additionally, the prompting repository used in this work to produce state-of-the-art results during inference will also be shared. Aloe comes with a healthcare-specific risk assessment to contribute to the safe use and deployment of such systems.
Aloe has been tested on the most popular healthcare QA datasets, with and without medprompting inference technique. Results show competitive performance, even against bigger models.
Results using advanced prompting methods (aka Medprompt) are achieved through a repo made public with this work.
We encourage the use of Aloe for research purposes, as a stepping stone to build better foundational models for healthcare.
These models are not to be used for clinical practice, medical diagnosis, or any other form of direct or indirect healthcare advice. Models are prone to error and can produce toxic content. The use of Aloe models for activities harmful for individuals, such as spam, fraud, or impersonation, is prohibited.
We consider three risk cases:
Table below shows the performance of Aloe at several AI safety tasks:
We avoid the use of all personal data in our training. Model safety cannot be guaranteed. Aloe can produce toxic content under the appropriate prompts. For these reasons, minors should not be left alone to interact with Aloe without supervision.
Use the code below to get started with the model. You can run conversational inference using the Transformers pipeline abstraction, or by leveraging the Auto classes with the generate() function. Let's see examples of both.
import transformers
import torch
model_id = "HPAI-BSC/Llama3-Aloe-8B-Alpha"
pipeline = transformers.pipeline(
"text-generation",
model=model_id,
model_kwargs={"torch_dtype": torch.bfloat16},
device_map="auto",
)
messages = [
{"role": "system", "content": "You are an expert medical assistant named Aloe, developed by the High Performance Artificial Intelligence Group at Barcelona Supercomputing Center(BSC). You are to be a helpful, respectful, and honest assistant."},
{"role": "user", "content": "Hello."},
]
prompt = pipeline.tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
terminators = [
pipeline.tokenizer.eos_token_id,
pipeline.tokenizer.convert_tokens_to_ids("<|eot_id|>")
]
outputs = pipeline(
prompt,
max_new_tokens=256,
eos_token_id=terminators,
do_sample=True,
temperature=0.6,
top_p=0.9,
)
print(outputs[0]["generated_text"][len(prompt):])
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_id = "HPAI-BSC/Llama3-Aloe-8B-Alpha"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
)
messages = [
{"role": "system", "content": "You are an expert medical assistant named Aloe, developed by the High Performance Artificial Intelligence Group at Barcelona Supercomputing Center(BSC). You are to be a helpful, respectful, and honest assistant."},
{"role": "user", "content": "Hello"},
]
input_ids = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
return_tensors="pt"
).to(model.device)
terminators = [
tokenizer.eos_token_id,
tokenizer.convert_tokens_to_ids("<|eot_id|>")
]
outputs = model.generate(
input_ids,
max_new_tokens=256,
eos_token_id=terminators,
do_sample=True,
temperature=0.6,
top_p=0.9,
)
response = outputs[0][input_ids.shape[-1]:]
print(tokenizer.decode(response, skip_special_tokens=True))
Supervised fine-tuning on top of Llama 3 8B using medical and general domain datasets, model merging using DARE-TIES process, two-stage DPO process for human preference alignment. More details coming soon.
To compare Aloe with the most competitive open models (both general purpose and healthcare-specific) we use popular healthcare datasets (PubMedQA, MedMCQA, MedQA and MMLU for six medical tasks only), together with the new and highly reliable CareQA. We produce the standard MultiMedQA score for reference, by computing the weighted average accuracy on all scores except CareQA. Additionally, we calculate the arithmetic mean across all datasets. The Medical MMLU is calculated by averaging the six medical subtasks: Anatomy, Clinical knowledge, College Biology, College medicine, Medical genetics, and Professional medicine.
Benchmark results indicate the training conducted on Aloe has boosted its performance above Llama3-8B-Instruct. Llama3-Aloe-8B-Alpha outperforms larger models like Meditron 70B, and is close to larger base models, like Yi-34. For the former, this gain is consistent even when using SC-CoT, using their best-reported variant. All these results make Llama3-Aloe-8B-Alpha the best healthcare LLM of its size.
With the help of prompting techniques the performance of Llama3-Aloe-8B-Alpha is significantly improved. Medprompting in particular provides a 7% increase in reported accuracy, after which Llama3-Aloe-8B-Alpha only lags behind the ten times bigger Llama-3-70B-Instruct. This improvement is mostly consistent across medical fields. Llama3-Aloe-8B-Alpha with medprompting beats the performance of Meditron 70B with their self reported 20 shot SC-CoT in MMLU med and is slightly worse in the other benchmarks.
mailto:hpai@bsc.es
If you use this repository in a published work, please cite the following papers as source:
@misc{gururajan2024aloe,
title={Aloe: A Family of Fine-tuned Open Healthcare LLMs},
author={Ashwin Kumar Gururajan and Enrique Lopez-Cuena and Jordi Bayarri-Planas and Adrian Tormos and Daniel Hinjos and Pablo Bernabeu-Perez and Anna Arias-Duart and Pablo Agustin Martin-Torres and Lucia Urcelay-Ganzabal and Marta Gonzalez-Mallo and Sergio Alvarez-Napagao and Eduard Ayguadé-Parra and Ulises Cortés Dario Garcia-Gasulla},
year={2024},
eprint={2405.01886},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
На своей GPU в ailist. Цена — по текущим предложениям провайдеров
GPU в ailist
Универсальный рантайм · transformers
Подбираем GPU…