Text Generation
Safetensors
English
llama
conversational
Tijmen2 commited on
Commit
8ea2a6d
·
verified ·
1 Parent(s): 8612df9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +143 -7
README.md CHANGED
@@ -1,10 +1,146 @@
1
- - Meta-Llama-3.1-70B + 2.5 epochs CPT -> AstroSage-70B-CPT3
2
- - AstroSage-70B-CPT3 + 0.6 epochs SFT -> AstroSage-70B-uSFT
3
- - 70% AstroSage-70B-uSFT + various other Llama-3.1 finetunes -> this model
 
 
 
 
 
 
 
 
4
 
5
- Tiny amount of SFT is why I call this µSFT, or uSFT.
 
6
 
7
- To enable reasoning:
8
 
9
- - set the system prompt to `detailed thinking on`
10
- - start the assistant response with `<think>`
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: llama3.1
3
+ datasets:
4
+ - teknium/OpenHermes-2.5
5
+ - nvidia/Llama-Nemotron-Post-Training-Dataset
6
+ language:
7
+ - en
8
+ base_model:
9
+ - meta-llama/Llama-3.1-8B
10
+ pipeline_tag: text-generation
11
+ ---
12
 
13
+
14
+ ---
15
 
16
+ ## Model Card: AstroSage-70B
17
 
18
+ **Model Name:** AstroSage-70B
19
+
20
+ **Version:** 1.0
21
+
22
+ **Release Date:** 2025-05-20
23
+
24
+ **Developed by:** AstroMLab (Tijmen de Haan, Yuan-Sen Ting, Tirthankar Ghosal, Tuan Dung Nguyen, Alberto Accomazzi, Azton Wells, Nesar Ramachandra, Rui Pan, Zechang Sun)
25
+ **Corresponding Contact:** Tijmen de Haan (tijmen.dehaan@gmail.com)
26
+
27
+ **Funded by:**
28
+ * Oak Ridge Leadership Computing Facility (OLCF), a DOE Office of Science User Facility at Oak Ridge National Laboratory (U.S. Department of Energy).
29
+ * Microsoft’s Accelerating Foundation Models Research (AFMR) program.
30
+ * World Premier International Research Center Initiative (WPI), MEXT, Japan.
31
+ * National Science Foundation (NSF).
32
+ * UChicago Argonne LLC, Operator of Argonne National Laboratory (U.S. Department of Energy).
33
+
34
+ **License:** Llama 3.1 Community License
35
+
36
+ **Reference Paper:** Not yet out! For now, please cite
37
+ de Haan, T., et al. (2025). "AstroMLab 3: Achieving GPT-4o Level Performance in Astronomy with a Specialized 8B-Parameter Large Language Model" Sci Rep 15, 13751 (2025) https://doi.org/10.1038/s41598-025-97131-y
38
+
39
+ ---
40
+
41
+ ### Model Details
42
+
43
+ **Model Type:** Autoregressive transformer-based LLM, specialized in astronomy, astrophysics, space science, cosmology, and astronomical instrumentation.
44
+
45
+ **Base Model:** Meta-Llama-3.1-70B
46
+
47
+ **Model Architecture:** AstroSage-70B is a fine-tuned derivative of the Meta-Llama-3.1-70B architecture. The Llama-3.1-70B-Instruct tokenizer is used without modification.
48
+
49
+ **Parameters:** 70 Billion
50
+
51
+ ---
52
+
53
+ ### Model Description
54
+
55
+ **Overview:**
56
+ AstroSage-70B is a large-scale, domain-specialized language model tailored for research and education in astronomy, astrophysics, space science, cosmology, and astronomical instrumentation.
57
+ It builds on the Llama-3.1-70B foundation model, enhanced through extensive continued pre-training (CPT) on a vast corpus of astronomical literature, further refined with supervised fine-tuning (SFT) on instruction-following datasets, and finally enhanced via parameter averaging (model merging) with other popular fine tunes.
58
+ AstroSage-70B aims to achieve state-of-the-art performance on astronomy-specific tasks, providing researchers, students, and enthusiasts with an advanced AI assistant.
59
+ This 70B parameter model represents a significant scaling up from the AstroSage-8B model. The primary enhancements from the AstroSage-8B model are:
60
+ 1. Stronger base model, higher parameter count for increased capacity
61
+ 3. Improved datasets
62
+ 4. Improved learning hyperparameters
63
+ 5. Reasoning capability (can be enabled or disabled at inference time)
64
+
65
+ **Training Lineage (as specified for AstroSage-70B):**
66
+ 1. **Base Model:** Meta-Llama-3.1-70B.
67
+ 2. **Continued Pre-Training (CPT):** The base model underwent **2.5 epochs** of CPT on a specialized astronomy corpus (details below, largely inherited from AstroSage-8B) to produce AstroSage-70B-CPT. This stage imbues domain-specific knowledge and language nuances.
68
+ 3. **Supervised Fine-Tuning (SFT):** AstroSage-70B-CPT was then fine-tuned for **0.6 epochs** using astronomy-relevant and general-purpose instruction-following datasets, resulting in AstroSage-70B-SFT.
69
+ 4. **Final Mixture:** The released AstroSage-70B model is created via parameter averaging / model merging:
70
+ * DARE-TIES merge with AstroSage-70B-CPT as the "base model"
71
+ * **70% AstroSage-70B-SFT**
72
+ * **30% Llama-3.1-Instruct**
73
+
74
+ **Intended Use:**
75
+ Like AstroSage-8B, this model can be used for a variety of LLM application, including
76
+ * Providing factual information and explanations in astronomy, astrophysics, cosmology, and instrumentation.
77
+ * Assisting with literature reviews and summarizing scientific papers.
78
+ * Answering domain-specific questions with high accuracy.
79
+ * Brainstorming research ideas and formulating hypotheses.
80
+ * Assisting with programming tasks related to astronomical data analysis.
81
+ * Serving as an educational tool for learning astronomical concepts.
82
+ * Potentially forming the core of future agentic research assistants capable of more autonomous scientific tasks.
83
+
84
+ We hope that with the enhanced intelligence and reasoning ability of AstroSage-70B compared to AstroSage-8B you can find additional use cases.
85
+
86
+ ---
87
+
88
+ ### Training Data
89
+
90
+ AstroSage-70B's training data is split into pre-training (Continued Pre-Training, or CPT for short) and post-training (Supervised Fine-Tuning, or SFT).
91
+
92
+ **Continued Pre-Training (CPT) Data:**
93
+ The CPT data for AstroSage-70B starts with AstroSage-8B training dataset (see https://arxiv.org/abs/2411.09012 for more detail), and adds:
94
+ * **Data Processing & Cleaning:** We apply `ftfy` post-processing.
95
+ * **Replay Data:** We add a random selection of FineWeb samples to each training epoch. The added FineWeb samples are different for each epoch of training.
96
+
97
+ **Supervised Fine-Tuning (SFT) Data for `AstroSage-70B-SFT`:**
98
+ The SFT dataset is a diverse mix of astronomy-specific and general-purpose instruction-following data, totaling approximately 8.7 GB and over 7.5 million entries. The components are:
99
+
100
+ * **NVIDIA Reasoning, Science:** 2048.0 MB (252,847 entries)
101
+ * **AstroSage Q&A:** 1983.7 MB (4,683,569 entries) - Astronomy-specific question-answer pairs, see https://arxiv.org/abs/2411.09012 / https://doi.org/10.1038/s41598-025-97131-y
102
+ * **Teknium OpenHermes 2.5:** 1621.0 MB (1,001,551 entries)
103
+ * **cosmosage Q&A:** 616.0 MB (1,354,733 entries) - Cosmology-specific question-answer pairs, see https://arxiv.org/abs/2407.04420 / https://doi.org/10.1016/j.ascom.2025.100934
104
+ * **NVIDIA Reasoning, Code:** 600.0 MB (12,170 entries)
105
+ * **NVIDIA Reasoning, Math:** 600.0 MB (33,236 entries)
106
+ * **NVIDIA Reasoning, Chat:** 243.1 MB (36,395 entries)
107
+ * **Miscellaneous Other Astronomy & Instruction Data:** 6 additional datasets totalling 810.2 MB (125,923 entries)
108
+
109
+ ---
110
+
111
+ ### Evaluation
112
+
113
+ Quantitative evaluation results are not yet available for AstroSage-70B. Publication forthcoming.
114
+
115
+ ---
116
+
117
+ ### Bias, Risks, and Limitations
118
+
119
+ * **Knowledge Cutoff:** The model's knowledge cutoff is a mixture of the knowledge cutoff of the foundation model Llama-3.1-70B, which is December 2023, and the cutoff for the astro-ph papers used in the training dataset, which is January 2024. The model will not be aware of developments in astronomy after that cutoff.
120
+ * **Hallucinations & Factual Accuracy:** All LLMs, including AstroSage-70B, can generate outputs that sound plausible but are incorrect or nonsensical. All scientific or factual claims must be verified by users.
121
+ * **Inherited Biases:** The model may reflect biases present in its extensive training data (e.g., from scientific literature, general web data).
122
+ * **Errors in Training Data:** After training completed, the AstroSage Q&A SFT dataset was found to have a non-trivial proportion of references to "the article" or "the text", which are artifacts of how the synthetic training data was generated. The insufficient cleaning resulted in AstroSage-70B inadvertently being trained to occasionally refer to information that is not available in the current conversation. We find that this failure mode is however, fairly rare.
123
+ * **Depth of Specialization:** AstroSage-70B is highly specialized, having been trained on all astro-ph papers from April 2007 to January 2024. However, LLM training does not result in complete memorization of all facts. We find it excels in topics that are discussed in approximately five or more papers.
124
+
125
+ ---
126
+
127
+ ### Enabling Reasoning (a.k.a. Thinking, Chain-of-Thought)
128
+
129
+ Like popular models such as o1, QwQ and DeepSeek-R1, AstroSage-70B is capable of reasoning through a problem before giving an answer. To enable this:
130
+ 1. Set the **system prompt** to: `detailed thinking on`
131
+ 2. Prefill the **assistant response** with `<think>`
132
+
133
+ ---
134
+
135
+ ### Chat Template
136
+
137
+ AstroSage-70B follows the Llama-3.1 chat template.
138
+
139
+ ```
140
+ <|begin_of_text|><|start_header_id|>system<|end_header_id|>
141
+
142
+ You are an expert in astronomy, astrophysics, space science, cosmology, and astronomical instrumentation. Your role is provide helpful, factual answers to the user's query.<|eot_id|><|start_header_id|>user<|end_header_id|>
143
+
144
+ ====INSERT PROMPT HERE====<|eot_id|><|start_header_id|>assistant<|end_header_id|>
145
+
146
+ ```