draft v2
Browse files
README.md
CHANGED
@@ -11,19 +11,19 @@ tags:
|
|
11 |
# Granite-3.1-1B-A400M-Base
|
12 |
|
13 |
**Model Summary:**
|
14 |
-
Granite-3.1-1B-A400M-Base
|
15 |
|
16 |
- **Developers:** Granite Team, IBM
|
17 |
-
- **GitHub Repository:** [ibm-granite/granite-3.1-language-models]()
|
18 |
- **Website**: [Granite Docs](https://www.ibm.com/granite/docs/)
|
19 |
-
- **Paper:** [Granite 3.1 Language Models]()
|
20 |
- **Release Date**: December 18th, 2024
|
21 |
- **License:** [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0)
|
22 |
|
23 |
**Supported Languages:**
|
24 |
English, German, Spanish, French, Japanese, Portuguese, Arabic, Czech, Italian, Korean, Dutch, and Chinese. Users may finetune Granite 3.1 models for languages beyond these 12 languages.
|
25 |
|
26 |
-
**Intended
|
27 |
Prominent use cases of LLMs in text-to-text generation include summarization, text classification, extraction, question-answering, and more. All Granite Base models are able to handle these tasks as they were trained on a large amount of data from various domains. Moreover, they can serve as baseline to create specialized models for specific application scenarios.
|
28 |
|
29 |
**Generation:**
|
@@ -71,24 +71,25 @@ Granite-3.1-1B-A400M-Base is based on a decoder-only sparse Mixture of Experts (
|
|
71 |
| Number of KV heads | 8 | 8 | **8** | 8 |
|
72 |
| MLP hidden size | 8192 | 12800 | **512** | 512 |
|
73 |
| MLP activation | SwiGLU | SwiGLU | **SwiGLU** | SwiGLU |
|
74 |
-
| Number of
|
75 |
| MoE TopK | — | — | **8** | 8 |
|
76 |
| Initialization std | 0.1 | 0.1 | **0.1** | 0.1 |
|
77 |
-
| Sequence
|
78 |
-
| Position
|
79 |
| # Parameters | 2.5B | 8.1B | **1.3B** | 3.3B |
|
80 |
-
| # Active
|
81 |
| # Training tokens | 12T | 12T | **10T** | 10T |
|
82 |
|
83 |
**Training Data:**
|
84 |
This model is trained on a mix of open source and proprietary data following a two-stage training strategy.
|
85 |
* Stage 1 data: The data for stage 1 is sourced from diverse domains, such as: web, code, academic sources, books, and math data.
|
86 |
* Stage 2 data: The data for stage 2 comprises a curated mix of high-quality data from the same domains, plus multilingual and instruction data. The goal of this second training phase is to enhance the model’s performance on specific tasks.
|
87 |
-
|
88 |
-
|
|
|
89 |
|
90 |
**Infrastructure:**
|
91 |
-
We train Granite 3.1 Language Models using IBM's super computing cluster, Blue Vela, which is outfitted with NVIDIA H100 GPUs. This cluster provides a scalable and efficient infrastructure for training our models over thousands of GPUs
|
92 |
|
93 |
**Ethical Considerations and Limitations:**
|
94 |
The use of Large Language Models involves risks and ethical considerations people must be aware of, including but not limited to: bias and fairness, misinformation, and autonomous decision-making. Granite-3.1-1B-A400M-Base model is not the exception in this regard. Even though this model is suited for multiple generative AI tasks, it has not undergone any safety alignment, there it may produce problematic outputs. Additionally, it remains uncertain whether smaller models might exhibit increased susceptibility to hallucination in generation scenarios by copying text verbatim from the training dataset due to their reduced sizes and memorization capacities. This aspect is currently an active area of research, and we anticipate more rigorous exploration, comprehension, and mitigations in this domain. Regarding ethics, a latent risk associated with all Large Language Models is their malicious utilization. We urge the community to use Granite-3.1-1B-A400M-Base model with ethical intentions and in a responsible way.
|
|
|
11 |
# Granite-3.1-1B-A400M-Base
|
12 |
|
13 |
**Model Summary:**
|
14 |
+
Granite-3.1-1B-A400M-Base extends the context length of Granite-3.0-1B-A400M-Base from 4K to 128K using a progressive training strategy by increasing the supported context length in increments while adjusting RoPE theta until the model has successfully adapted to desired length of 128K. We trained on approximately xxB tokens total for all stages, which is only 0.xx% of total pre-training data.
|
15 |
|
16 |
- **Developers:** Granite Team, IBM
|
17 |
+
- **GitHub Repository:** [ibm-granite/granite-3.1-language-models](https://github.com/ibm-granite/granite-3.1-language-models)
|
18 |
- **Website**: [Granite Docs](https://www.ibm.com/granite/docs/)
|
19 |
+
- **Paper:** [Granite 3.1 Language Models (coming soon)](https://huggingface.co/collections/ibm-granite/granite-31-language-models-6751dbbf2f3389bec5c6f02d)
|
20 |
- **Release Date**: December 18th, 2024
|
21 |
- **License:** [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0)
|
22 |
|
23 |
**Supported Languages:**
|
24 |
English, German, Spanish, French, Japanese, Portuguese, Arabic, Czech, Italian, Korean, Dutch, and Chinese. Users may finetune Granite 3.1 models for languages beyond these 12 languages.
|
25 |
|
26 |
+
**Intended Use:**
|
27 |
Prominent use cases of LLMs in text-to-text generation include summarization, text classification, extraction, question-answering, and more. All Granite Base models are able to handle these tasks as they were trained on a large amount of data from various domains. Moreover, they can serve as baseline to create specialized models for specific application scenarios.
|
28 |
|
29 |
**Generation:**
|
|
|
71 |
| Number of KV heads | 8 | 8 | **8** | 8 |
|
72 |
| MLP hidden size | 8192 | 12800 | **512** | 512 |
|
73 |
| MLP activation | SwiGLU | SwiGLU | **SwiGLU** | SwiGLU |
|
74 |
+
| Number of experts | — | — | **32** | 40 |
|
75 |
| MoE TopK | — | — | **8** | 8 |
|
76 |
| Initialization std | 0.1 | 0.1 | **0.1** | 0.1 |
|
77 |
+
| Sequence length | 128K | 128k | **128k** | 128k |
|
78 |
+
| Position embedding | RoPE | RoPE | **RoPE** | RoPE |
|
79 |
| # Parameters | 2.5B | 8.1B | **1.3B** | 3.3B |
|
80 |
+
| # Active parameters | 2.5B | 8.1B | **400M** | 800M |
|
81 |
| # Training tokens | 12T | 12T | **10T** | 10T |
|
82 |
|
83 |
**Training Data:**
|
84 |
This model is trained on a mix of open source and proprietary data following a two-stage training strategy.
|
85 |
* Stage 1 data: The data for stage 1 is sourced from diverse domains, such as: web, code, academic sources, books, and math data.
|
86 |
* Stage 2 data: The data for stage 2 comprises a curated mix of high-quality data from the same domains, plus multilingual and instruction data. The goal of this second training phase is to enhance the model’s performance on specific tasks.
|
87 |
+
* Stage 3 data:
|
88 |
+
|
89 |
+
A detailed attribution of datasets can be found in the [Granite 3.0 Technical Report](https://github.com/ibm-granite/granite-3.0-language-models/blob/main/paper.pdf), [Granite 3.1 Technical Report (coming soon)](https://huggingface.co/collections/ibm-granite/granite-31-language-models-6751dbbf2f3389bec5c6f02d), and [Accompanying Author List](https://github.com/ibm-granite/granite-3.0-language-models/blob/main/author-ack.pdf).
|
90 |
|
91 |
**Infrastructure:**
|
92 |
+
We train Granite 3.1 Language Models using IBM's super computing cluster, Blue Vela, which is outfitted with NVIDIA H100 GPUs. This cluster provides a scalable and efficient infrastructure for training our models over thousands of GPUs.
|
93 |
|
94 |
**Ethical Considerations and Limitations:**
|
95 |
The use of Large Language Models involves risks and ethical considerations people must be aware of, including but not limited to: bias and fairness, misinformation, and autonomous decision-making. Granite-3.1-1B-A400M-Base model is not the exception in this regard. Even though this model is suited for multiple generative AI tasks, it has not undergone any safety alignment, there it may produce problematic outputs. Additionally, it remains uncertain whether smaller models might exhibit increased susceptibility to hallucination in generation scenarios by copying text verbatim from the training dataset due to their reduced sizes and memorization capacities. This aspect is currently an active area of research, and we anticipate more rigorous exploration, comprehension, and mitigations in this domain. Regarding ethics, a latent risk associated with all Large Language Models is their malicious utilization. We urge the community to use Granite-3.1-1B-A400M-Base model with ethical intentions and in a responsible way.
|