/ Модель

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

Контекст
8 192 токена
Параметры
7,5 млрд
Размер весов
16,1 ГБ
Лицензия
MIT
Архитектура
llama · dense
Базовая модель
Llama-3-8b-hf
Опубликована
4 июл 2024

astrollama-3-8b-base_summary

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

Дообученная на кратких изложениях статей astro-ph языковая модель для генерации и анализа астрономического текста.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

AstroLLaMA-3-8B-Base_Summary — языковая модель AstroMLab, полученная продолжительным предобучением Meta LLaMA 3 на кратких изложениях астрономических статей из раздела astro-ph на arXiv. Это плотная авторегрессионная модель примерно на 7,5 млрд параметров с контекстом 8192 токена; она обучена предсказывать следующий токен и не является чат-моделью или инструкционной моделью.

Модель предназначена для генерации и анализа текста по астрономии и астрофизике, а также для исследовательских сравнений и воспроизводимости экспериментов. В описанном авторами астрономическом бенчмарке она показала результат 72,9%, но уступила базовой LLaMA 3.1 8B и не должна рассматриваться как надёжный источник научных утверждений: результаты требуют проверки по рецензируемым публикациям. Репозиторий распространяется по лицензии MIT.

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

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

Ограничения

Модель не настроена на выполнение инструкций или диалог и уступила базовой LLaMA 3.1 8B в указанном авторами бенчмарке. Научные ответы могут содержать ошибки и требуют проверки по надёжным публикациям.

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

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

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

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

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

Открыть на Hugging Face

AstroLLaMA-3-8B-Base_Summary

AstroLLaMA-3-8B-Base_Summary is a specialized base language model for astronomy, developed by fine-tuning Meta's LLaMA-3-8b architecture on summarized astronomical literature. This model was developed by the AstroMLab team. It is designed for next token prediction tasks and is not an instruct/chat model.

Model Details

  • Base Architecture: LLaMA-3-8b
  • Training Data: Summarized content from arXiv's astro-ph category papers
  • Data Processing:
    1. Optical character recognition (OCR) on PDF files using the Nougat tool
    2. Summarization of OCR'd text using Qwen-2-8B and LLaMA-3.1-8B, reducing content to about 1,000-4,000 tokens per paper
  • Fine-tuning Method: Continual Pre-Training (CPT) using the LMFlow framework
  • Training Details:
    • Learning rate: 2 × 10⁻⁵
    • Total batch size: 96
    • Maximum token length: 512
    • Warmup ratio: 0.03
    • No gradient accumulation
    • BF16 format
    • Cosine decay schedule for learning rate reduction
    • Training duration: 1 epoch
  • Primary Use: Next token prediction for astronomy-related text generation and analysis
  • Reference: Pan et al. 2024

Generating text from a prompt

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

# Load the model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("AstroMLab/astrollama-3-8b-base_summary")
model = AutoModelForCausalLM.from_pretrained("AstroMLab/astrollama-3-8b-base_summary", device_map="auto")

# Create the pipeline with explicit truncation
from transformers import pipeline
generator = pipeline(
    "text-generation",
    model=model,
    tokenizer=tokenizer,
    device_map="auto",
    truncation=True,
    max_length=512
)

# Example prompt from an astronomy paper
prompt = "In this letter, we report the discovery of the highest redshift, " \
    "heavily obscured, radio-loud QSO candidate selected using JWST NIRCam/MIRI, " \
    "mid-IR, sub-mm, and radio imaging in the COSMOS-Web field. "

# Set seed for reproducibility
torch.manual_seed(42)

# Generate text
generated_text = generator(prompt, do_sample=True)
print(generated_text[0]['generated_text'])

Model Improvements and Performance

This model used the summarized content for training, which has led to improved performance compared to the AIC (Abstract, Introduction, Conclusion) version. The summarization process allows for the inclusion of more comprehensive information from each paper while maintaining a manageable token count.

Here's a performance comparison chart based upon the astronomical benchmarking Q&A as described in Ting et al. 2024, and Pan et al. 2024:

ModelScore (%)
AstroSage-LLaMA-3.1-8B (AstroMLab)80.9
LLaMA-3.1-8B73.7
LLaMA-3-8B72.9
AstroLLaMA-3-8B-Base_Summary (AstroMLab)72.3
AstroLLaMA-3-8B-Base_AIC72.3
Gemma-2-9B71.5
Qwen-2.5-7B70.4
Yi-1.5-9B68.4
InternLM-2.5-7B64.5
Mistral-7B-v0.363.9
ChatGLM3-6B50.4

As shown, AstroLLaMA-3-8B-Base_Summary performs competitively, nearly matching the performance of the base LLaMA-3.1-8B model and outperforming the AIC version. This improvement demonstrates the importance of information density in the training data.

Notably, the instruct version of this model shows even more significant improvements, highlighting the effectiveness of the summarization approach in capturing and retaining key astronomical concepts. For detailed performance analysis of the instruct version, please refer to Pan et al. 2024.

While AstroLLaMA-3-8B performs competitively among models in its class, it does not surpass the performance of the base LLaMA-3-8B model. This underscores the challenges in developing specialized models and the need for more diverse and comprehensive training data.

This model is released primarily for reproducibility purposes, allowing researchers to track the development process and compare different iterations of AstroLLaMA models.

For optimal performance and the most up-to-date capabilities in astronomy-related tasks, we recommend using AstroSage-8B, where these limitations have been addressed. The newer model incorporates expanded training data beyond astro-ph and features a greatly expanded fine-tuning process, resulting in significantly improved performance.

Ethical Considerations

While this model is designed for scientific use, users should be mindful of potential misuse, such as generating misleading scientific content. Always verify model outputs against peer-reviewed sources for critical applications.

Citation

If you use this model in your research, please cite:

@ARTICLE{2024arXiv240919750P,
       author = {{Pan}, Rui and {Dung Nguyen}, Tuan and {Arora}, Hardik and {Accomazzi}, Alberto and {Ghosal}, Tirthankar and {Ting}, Yuan-Sen},
        title = "{AstroMLab 2: AstroLLaMA-2-70B Model and Benchmarking Specialised LLMs for Astronomy}",
      journal = {arXiv e-prints},
     keywords = {Astrophysics - Instrumentation and Methods for Astrophysics, Computer Science - Computation and Language},
         year = 2024,
        month = sep,
          eid = {arXiv:2409.19750},
        pages = {arXiv:2409.19750},
          doi = {10.48550/arXiv.2409.19750},
archivePrefix = {arXiv},
       eprint = {2409.19750},
 primaryClass = {astro-ph.IM},
       adsurl = {https://ui.adsabs.harvard.edu/abs/2024arXiv240919750P},
      adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей