/ Модель

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

Контекст
8 192 токена
Параметры
69,5 млрд
Размер весов
141 ГБ
Лицензия
Llama 3
Архитектура
llama · dense
Базовая модель
Meta-Llama-3-70B-Instruct
Опубликована
24 апр 2024

Llama3-OpenBioLLM-70B

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

OpenBioLLM-70B — англоязычная модель на базе Llama 3, дообученная Saama AI Labs для генерации ответов и анализа текстов в биомедицине.

731скачиваний за 30 дней518лайковвеса обновлены18 янв 2025

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

  • BBH

    BBH Raw · выше — лучше

    Результат

    0,6399

    Open LLM v2 · архив

    Публичная таблицадругая ревизия

  • MMLU-PRO

    MMLU-PRO Raw · выше — лучше

    Результат

    0,4867

    Open LLM v2 · архив

    Публичная таблицадругая ревизия

  • MUSR

    MUSR Raw · выше — лучше

    Результат

    0,4417

    Open LLM v2 · архив

    Публичная таблицадругая ревизия

  • IFEval

    IFEval Raw · выше — лучше

    Результат

    0,7597

    Open LLM v2 · архив

    Публичная таблицадругая ревизия

  • MATH Lvl 5

    MATH Lvl 5 Raw · выше — лучше

    Результат

    0,1971

    Open LLM v2 · архив

    Публичная таблицадругая ревизия

  • GPQA

    GPQA Raw · выше — лучше

    Результат

    0,323

    Open LLM v2 · архив

    Публичная таблицадругая ревизия

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

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

OpenBioLLM-70B — специализированная языковая модель для биомедицины, разработанная Анкитом Палом (Aaditya Ura) из Saama AI Labs. Это дообученная для медицинской и биологической тематики версия Meta-Llama-3-70B-Instruct с архитектурой Llama и примерно 69,5 млрд параметров. Модель генерирует текст и поддерживает диалоговое следование инструкциям; заявленная длина контекста — 8192 токена.

Модель предназначена для ответов на медицинские вопросы, суммирования клинических записей, извлечения медицинских сущностей и классификации биомедицинских документов. В карточке приведены результаты на нескольких биомедицинских наборах тестов, но эти показатели сами по себе не подтверждают пригодность для клинических решений. README также предупреждает, что ответы иногда бывают многословными и рекомендует использовать исходный шаблон чата Llama 3 Instruct; медицинские ответы требуют проверки специалистом. Основной язык — английский. Лицензия — Meta Llama 3 License (llama3).

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

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

Ограничения

Модель может давать многословные ответы; для корректной работы требуется шаблон чата Llama 3 Instruct. Медицинские выводы следует проверять: результаты тестов не гарантируют точность для клинического применения.

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

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

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

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

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

Открыть на Hugging Face

image/png

image/jpeg

Introducing OpenBioLLM-70B: A State-of-the-Art Open Source Biomedical Large Language Model

OpenBioLLM-70B is an advanced open source language model designed specifically for the biomedical domain. Developed by Saama AI Labs, this model leverages cutting-edge techniques to achieve state-of-the-art performance on a wide range of biomedical tasks.

🏥 Biomedical Specialization: OpenBioLLM-70B is tailored for the unique language and knowledge requirements of the medical and life sciences fields. It was fine-tuned on a vast corpus of high-quality biomedical data, enabling it to understand and generate text with domain-specific accuracy and fluency.

🎓 Superior Performance: With 70 billion parameters, OpenBioLLM-70B outperforms other open source biomedical language models of similar scale. It has also demonstrated better results compared to larger proprietary & open-source models like GPT-4, Gemini, Meditron-70B, Med-PaLM-1 & Med-PaLM-2 on biomedical benchmarks.

🧠 Advanced Training Techniques: OpenBioLLM-70B builds upon the powerful foundations of the Meta-Llama-3-70B-Instruct and Meta-Llama-3-70B-Instruct models. It incorporates the DPO dataset and fine-tuning recipe along with a custom diverse medical instruction dataset. Key components of the training pipeline include:

This combination of cutting-edge techniques enables OpenBioLLM-70B to align with key capabilities and preferences for biomedical applications.

⚙️ Release Details:

  • Model Size: 70 billion parameters
  • Quantization: Optimized quantized versions available Here
  • Language(s) (NLP): en
  • Developed By: Ankit Pal (Aaditya Ura) from Saama AI Labs
  • License: Meta-Llama License
  • Fine-tuned from models: Meta-Llama-3-70B-Instruct
  • Resources for more information:
    • Paper: Coming soon

The model can be fine-tuned for more specialized tasks and datasets as needed.

OpenBioLLM-70B represents an important step forward in democratizing advanced language AI for the biomedical community. By leveraging state-of-the-art architectures and training techniques from leading open source efforts like Llama-3, we have created a powerful tool to accelerate innovation and discovery in healthcare and the life sciences.

We are excited to share OpenBioLLM-70B with researchers and developers around the world.

Community & Resources

🔥 Your Daily Dose of Medical AI Breakthroughs 🚀

We turn hours of the latest research papers into minutes. Get daily tweets and news on the latest medical AI breakthroughs, dataset releases, and benchmark results – all carefully curated to save you time while keeping you informed.

Use with transformers

Important: Please use the exact chat template provided by Llama-3 instruct version. Otherwise there will be a degradation in the performance. The model output can be verbose in rare cases. Please consider setting temperature = 0 to make this happen less.

See the snippet below for usage with Transformers:

import transformers
import torch

model_id = "aaditya/OpenBioLLM-Llama3-70B"

pipeline = transformers.pipeline(
    "text-generation",
    model=model_id,
    model_kwargs={"torch_dtype": torch.bfloat16},
    device="auto",
)

messages = [
    {"role": "system", "content": "You are an expert and experienced from the healthcare and biomedical domain with extensive medical knowledge and practical experience. Your name is OpenBioLLM, and you were developed by Saama AI Labs. who's willing to help answer the user's query with explanation. In your explanation, leverage your deep medical expertise such as relevant anatomical structures, physiological processes, diagnostic criteria, treatment guidelines, or other pertinent medical concepts. Use precise medical terminology while still aiming to make the explanation clear and accessible to a general audience."},
    {"role": "user", "content": "How can i split a 3mg or 4mg waefin pill so i can get a 2.5mg pill?"},
]

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.0,
    top_p=0.9,
)
print(outputs[0]["generated_text"][len(prompt):])

Training procedure

Training hyperparameters

  • learning_rate: 0.0002
  • lr_scheduler: cosine
  • train_batch_size: 12
  • eval_batch_size: 8
  • GPU: H100 80GB SXM5
  • num_devices: 8
  • optimizer: adamw_bnb_8bit
  • lr_scheduler_warmup_steps: 100
  • num_epochs: 4

Peft hyperparameters

  • adapter: qlora
  • lora_r: 128
  • lora_alpha: 256
  • lora_dropout: 0.05
  • lora_target_linear: true

-lora_target_modules:

  • q_proj
  • v_proj
  • k_proj
  • o_proj
  • gate_proj
  • down_proj
  • up_proj

Training results

Framework versions

  • Transformers 4.39.3
  • Pytorch 2.1.2+cu121
  • Datasets 2.18.0
  • Tokenizers 0.15.1
  • Axolotl
  • Lm harness for evaluation

Benchmark Results

🔥 OpenBioLLM-70B demonstrates superior performance compared to larger models, such as GPT-4, Gemini, Meditron-70B, Med-PaLM-1 & Med-PaLM-2 across 9 diverse biomedical datasets, achieving state-of-the-art results with an average score of 86.06%, despite having a significantly smaller parameter count. The model's strong performance in domain-specific tasks, such as Clinical KG, Medical Genetics, and PubMedQA, highlights its ability to effectively capture and apply biomedical knowledge.

🚨 The GPT-4, Med-PaLM-1, and Med-PaLM-2 results are taken from their official papers. Since Med-PaLM doesn't provide zero-shot accuracy, we are using 5-shot accuracy from their paper for comparison. All results presented are in the zero-shot setting, except for Med-PaLM-2 and Med-PaLM-1, which use 5-shot accuracy.

Clinical KGMedical GeneticsAnatomyPro MedicineCollege BiologyCollege MedicineMedQA 4 optsPubMedQAMedMCQAAvg
OpenBioLLM-70B92.9393.19783.90493.7593.82785.74978.16278.9774.01486.05588
Med-PaLM-2 (5-shot)88.39077.895.294.480.979.779.271.384.08
GPT-486.04918093.0195.1476.8878.8775.269.5282.85
Med-PaLM-1 (Flan-PaLM, 5-shot)80.47563.783.888.976.367.67957.674.7
OpenBioLLM-8B76.10186.169.82978.2184.21368.04258.99374.1256.91372.502
Gemini-1.076.775.866.777.78869.25870.754.370.79
GPT-3.5 Turbo 110674.717472.7972.7972.9164.7357.7172.6653.7966
Meditron-70B66.796953.3371.6976.386357.176.646.8564.52
gemma-7b69.817059.2666.1879.8660.1247.2176.248.9664.18
Mistral-7B-v0.168.687155.5668.3868.0659.5450.8275.448.262.85
Apollo-7B62.267261.4869.1270.8355.4955.2239.853.7760
MedAlpaca-7b57.366957.0467.2865.2854.3441.7172.837.5158.03
BioMistral-7B59.96456.560.45954.750.677.548.157.3
AlpaCare-llama2-7b49.814945.9233.825043.3529.7772.234.4245.36
ClinicalGPT30.562730.3719.482524.2726.0863.828.1830.52

Detailed Medical Subjectwise accuracy

image/png

Use Cases & Examples

🚨 **Below results are from the quantized version of OpenBioLLM-70B

Summarize Clinical Notes

OpenBioLLM-70B can efficiently analyze and summarize complex clinical notes, EHR data, and discharge summaries, extracting key information and generating concise, structured summaries

image/png

Answer Medical Questions

OpenBioLLM-70B can provide answers to a wide range of medical questions.

image/png image/png

image/png image/png image/png

Clinical Entity Recognition

OpenBioLLM-70B can perform advanced clinical entity recognition by identifying and extracting key medical concepts, such as diseases, symptoms, medications, procedures, and anatomical structures, from unstructured clinical text. By leveraging its deep understanding of medical terminology and context, the model can accurately annotate and categorize clinical entities, enabling more efficient information retrieval, data analysis, and knowledge discovery from electronic health records, research articles, and other biomedical text sources. This capability can support various downstream applications, such as clinical decision support, pharmacovigilance, and medical research.

image/png image/png image/png

Biomarkers Extraction

image/png

Classification

OpenBioLLM-70B can perform various biomedical classification tasks, such as disease prediction, sentiment analysis, medical document categorization

image/png

De-Identification

OpenBioLLM-70B can detect and remove personally identifiable information (PII) from medical records, ensuring patient privacy and compliance with data protection regulations like HIPAA.

image/png

Advisory Notice! 

While OpenBioLLM-70B leverages high-quality data sources, its outputs may still contain inaccuracies, biases, or misalignments that could pose risks if relied upon for medical decision-making without further testing and refinement. The model's performance has not yet been rigorously evaluated in randomized controlled trials or real-world healthcare environments.

Therefore, we strongly advise against using OpenBioLLM-70B for any direct patient care, clinical decision support, or other professional medical purposes at this time. Its use should be limited to research, development, and exploratory applications by qualified individuals who understand its limitations. OpenBioLLM-70B is intended solely as a research tool to assist healthcare professionals and should never be considered a replacement for the professional judgment and expertise of a qualified medical doctor.

Appropriately adapting and validating OpenBioLLM-70B for specific medical use cases would require significant additional work, potentially including:

  • Thorough testing and evaluation in relevant clinical scenarios
  • Alignment with evidence-based guidelines and best practices
  • Mitigation of potential biases and failure modes
  • Integration with human oversight and interpretation
  • Compliance with regulatory and ethical standards

Always consult a qualified healthcare provider for personal medical needs.

Citation

If you find OpenBioLLM-70B & 8B useful in your work, please cite the model as follows:

@misc{OpenBioLLMs,
  author = {Ankit Pal, Malaikannan Sankarasubbu},
  title = {OpenBioLLMs: Advancing Open-Source Large Language Models for Healthcare and Life Sciences},
  year = {2024},
  publisher = {Hugging Face},
  journal = {Hugging Face repository},
  howpublished = {\url{https://huggingface.co/aaditya/OpenBioLLM-Llama3-70B}}
}

The accompanying paper is currently in progress and will be released soon.

We look forward to hearing you and collaborating on this exciting project!

Contributors:

  • Ankit Pal (Aaditya Ura) [aadityaura at gmail dot com]
  • Saama AI Labs
  • Note: I am looking for a funded PhD opportunity, especially if it fits my Responsible Generative AI, Multimodal LLMs, Geometric Deep Learning, and Healthcare AI skillset.

References

We thank the Meta Team for their amazing models!

Result sources

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

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

GPU в ailist

vLLM

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

Подбираем GPU…

Класс архитектуры
LlamaForCausalLM
Ревизия весов
7ad17ef

0 моделей