SKNahin commited on
Commit
b35514b
1 Parent(s): a332df5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +15 -14
README.md CHANGED
@@ -15,23 +15,23 @@ license: llama3.2
15
 
16
  ## Model Information
17
 
18
- This model is a continually pretrained version of the [meta-llama/Llama-3.2-1B](https://huggingface.co/meta-llama/Llama-3.2-1B) architecture with extended about 42k Bangla tokens, fine-tuned on extensive Bangla datasets. The primary goal of the continual pretraining with token extending was to enhance the model's ability to generate high-quality Bangla text. By extending the pretraining process specifically on Bangla data, the model has demonstrated superior performance in tasks related to Bangla language understanding evaluation benchmarks and text generation.
19
 
20
- **Model Architecture:** Llama 3.2 is an auto-regressive language model that uses an optimized transformer architecture.
21
 
22
  | | Training Data | Params | Input modalities | Output modalities | Context Length | GQA | Shared Embeddings | Token count | Knowledge cutoff |
23
  | :---- | :---- | :---- | :---- | :---- | :---- | :---- | :---- | :---- | :---- |
24
  | Llama 3.2 (text only) | Hishab curated Bangla text corpus | 1B (1.23B) | Monolingual Text(Bangla) | Monolingual Text(Bangla) | 4096 | Yes | Yes | 37B tokens | |
25
 
26
- **Supported Languages:** Bengali(primary) and English(secondary)
27
 
28
  **Llama 3.2 Model Family:** Token counts refer to pretraining data only. All model versions use Grouped-Query Attention (GQA) for improved inference scalability.
29
 
30
  **Model Release Date:** October 24, 2024
31
 
32
- **Status:** This is a static model trained on an offline dataset. Future versions may be released that improve model capabilities.
33
 
34
- **License:** We are using the similar license of Llama 3.2. Use of Llama 3.2 is governed by the [Llama 3.2 Community License](https://github.com/meta-llama/llama-models/blob/main/models/llama3_2/LICENSE) (a custom, commercial license agreement).
35
 
36
 
37
  ## How to use
@@ -67,17 +67,18 @@ pipe("আমাদের দেশের নাম")
67
  **Overview:** We have collected a large Bangla raw dataset of text data from a wide variety of sources. Our collected data so far includes a mix of web documents, books, translated text, transliterated text, transcribe text, code-mixed text, conversations, and open sources raw data. The dataset is cleaned and filtered by different filtering criteria to ensure the quality of the data. Our collected data size roughly around 268 GB. Total trained tokens are 37B tokens.
68
 
69
  Data sources summary:
70
- - Web documents: Extract, clean, filter common crawl data
71
- - Books: Extract, clean, filter books data
72
  - Transcribed text: Used in-house Bangla ASR model to transcribe Bangla audio data
73
- - Translation data: We trained a Bangla-English translation LLM model and used it to translate English data to Bangla
74
- - Code-mixed data: We trained a Bangla-English code-mixed LLM model and used it to generate code-mixed data
75
  - Transliteration data: We trained a Bangla-English transliteration LLM model and used it to generate transliterated data
76
  - Synthetic data: We generated synthetic data using a Bangla LLM model
77
- - Others: We scrap some selected websites data, used open-sources data, and used some other data sources
 
78
 
79
  ## Token Extending
80
- We trained a separate Bangla tokenizer using [Tiktoken](https://github.com/openai/tiktoken) library on 48 GB Bangla datasets(sampled from main pretraining data) with vocab size 48k and separated 42k tokens for adding with the pretrained model. We extended the model's vocabulary with these tokens and continued the pretraining process on Bangla data. The token extending process was done to enhance the model's ability to generate high-quality Bangla text. Our updated vocab size is 170k where original llama-3.2 vocab size is 128k.
81
 
82
 
83
  ## Benchmarks \- Bangla Text
@@ -85,11 +86,11 @@ We trained a separate Bangla tokenizer using [Tiktoken](https://github.com/opena
85
  In this section, we report the results for __titulm-llama-3.2-1b-v2.0__ models on standard automatic benchmarks. For all these evaluations, we used [lm-evaluation-harness](https://github.com/EleutherAI/lm-evaluation-harness) evaluations library.
86
 
87
  ### Evaluation Datasets
88
- We evaluated our pretrained models on both Bangla and English benchmark datasets. Although the model is trained on Bangla data, it's English capability is also evaluated on English benchmark datasets. The evaluation datasets are as follows:
89
 
90
  #### Bangla Benchmark datasets
91
  We evaluated the models on the following datasets:
92
- - [Bangla MMLU](): A private multiple choice questions datasets developed by Hishab curated from various sources.
93
  - [CommonsenseQa Bangla](https://huggingface.co/datasets/hishab/commonsenseqa-bn): A Bangla translation of the CommonsenseQA dataset. The dataset was translated using a new method called Expressive Semantic Translation (EST), which combines Google Machine Translation with LLM-based rewriting modifications.
94
  - [OpenbookQA Bangla](https://huggingface.co/datasets/hishab/openbookqa-bn): A Bangla translation of the OpenbookQA dataset. The dataset was translated using a new method called Expressive Semantic Translation (EST), which combines Google Machine Translation with LLM-based rewriting modifications.
95
  - [Piqa Bangla](https://huggingface.co/datasets/hishab/piqa-bn): A Bangla translation of the Piqa dataset. The dataset was translated using a new method called Expressive Semantic Translation (EST), which combines Google Machine Translation with LLM-based rewriting modifications.
@@ -97,7 +98,7 @@ We evaluated the models on the following datasets:
97
 
98
  #### English Benchmark datasets
99
  - [MMLU](https://huggingface.co/datasets/cais/mmlu): This is a massive multitask test consisting of multiple-choice questions from various branches of knowledge.
100
- - [CommonseQa](https://huggingface.co/datasets/tau/commonsense_qa): CommonsenseQA is a new multiple-choice question answering dataset that requires different types of commonsense knowledge to predict the correct answers .
101
  - [OpenbookQA](https://huggingface.co/datasets/allenai/openbookqa): OpenBookQA aims to promote research in advanced question-answering, probing a deeper understanding of both the topic (with salient facts summarized as an open book, also provided with the dataset) and the language it is expressed in.
102
  - [Piqa](https://huggingface.co/datasets/ybisk/piqa): The PIQA dataset focuses on physical commonsense reasoning, challenging AI to handle everyday situations requiring practical knowledge and unconventional solutions. Inspired by instructables.com, it aims to enhance AI's ability to understand and reason about physical interactions.
103
  - [BoolQ](https://huggingface.co/datasets/google/boolq): BoolQ is a question answering dataset for yes/no questions containing 15942 examples. These questions are naturally occurring ---they are generated in unprompted and unconstrained settings. Each example is a triplet of (question, passage, answer), with the title of the page as optional additional context. The text-pair classification setup is similar to existing natural language inference tasks.
 
15
 
16
  ## Model Information
17
 
18
+ This model is a continually pretrained version of the [meta-llama/Llama-3.2-1B](https://huggingface.co/meta-llama/Llama-3.2-1B) architecture with extended about 42k Bangla tokens, fine-tuned on extensive Bangla datasets. The primary goal of the continual pretraining with token extending was to enhance the model's ability to generate high-quality Bangla text. By extending the pretraining process specifically on Bangla data, the model has demonstrated superior performance in Bangla language understanding evaluation benchmarks and text generation tasks.
19
 
20
+ **Model Architecture:** Llama 3.2 is an auto-regressive language model with optimized transformer architecture.
21
 
22
  | | Training Data | Params | Input modalities | Output modalities | Context Length | GQA | Shared Embeddings | Token count | Knowledge cutoff |
23
  | :---- | :---- | :---- | :---- | :---- | :---- | :---- | :---- | :---- | :---- |
24
  | Llama 3.2 (text only) | Hishab curated Bangla text corpus | 1B (1.23B) | Monolingual Text(Bangla) | Monolingual Text(Bangla) | 4096 | Yes | Yes | 37B tokens | |
25
 
26
+ **Supported Languages:** Bengali (primary) and English (secondary)
27
 
28
  **Llama 3.2 Model Family:** Token counts refer to pretraining data only. All model versions use Grouped-Query Attention (GQA) for improved inference scalability.
29
 
30
  **Model Release Date:** October 24, 2024
31
 
32
+ **Status:** This is a static model trained on an offline dataset. Future versions may be released to improve model capabilities.
33
 
34
+ **License:** We are using a similar license of Llama 3.2. Use of Llama 3.2 is governed by the [Llama 3.2 Community License](https://github.com/meta-llama/llama-models/blob/main/models/llama3_2/LICENSE) (a custom, commercial license agreement).
35
 
36
 
37
  ## How to use
 
67
  **Overview:** We have collected a large Bangla raw dataset of text data from a wide variety of sources. Our collected data so far includes a mix of web documents, books, translated text, transliterated text, transcribe text, code-mixed text, conversations, and open sources raw data. The dataset is cleaned and filtered by different filtering criteria to ensure the quality of the data. Our collected data size roughly around 268 GB. Total trained tokens are 37B tokens.
68
 
69
  Data sources summary:
70
+ - Web documents: Extracted, clean, and filtered common crawl data
71
+ - Books: Extracted, clean, filtered books data
72
  - Transcribed text: Used in-house Bangla ASR model to transcribe Bangla audio data
73
+ - Translation data: We trained an English-Bangla translation LLM model and used it to translate English data to Bangla
74
+ - Code-mixed data: We trained an English-Bangla code-mixed LLM model and used it to generate code-mixed data
75
  - Transliteration data: We trained a Bangla-English transliteration LLM model and used it to generate transliterated data
76
  - Synthetic data: We generated synthetic data using a Bangla LLM model
77
+ - Others: We scrapped some selected website data, used open-source data, and used some other data sources
78
+
79
 
80
  ## Token Extending
81
+ We trained a separate Bangla tokenizer using [Tiktoken](https://github.com/openai/tiktoken) library on 48 GB Bangla datasets (sampled from main pretraining data) with a vocabulary size 48k and separated 42k tokens for adding with the pretrained model. We extended the model's vocabulary with these tokens and continued the pretraining process on Bangla data. The token extending process was done to enhance the model's ability to generate high-quality Bangla text. Our updated vocab size is 170k whereas the original llama-3.2 vocab size is 128k.
82
 
83
 
84
  ## Benchmarks \- Bangla Text
 
86
  In this section, we report the results for __titulm-llama-3.2-1b-v2.0__ models on standard automatic benchmarks. For all these evaluations, we used [lm-evaluation-harness](https://github.com/EleutherAI/lm-evaluation-harness) evaluations library.
87
 
88
  ### Evaluation Datasets
89
+ We evaluated our pretrained models on both Bangla and English benchmark datasets. Although the model is trained on Bangla data, its English capability is also evaluated on English benchmark datasets. The evaluation datasets are as follows:
90
 
91
  #### Bangla Benchmark datasets
92
  We evaluated the models on the following datasets:
93
+ - [Bangla MMLU](): A private multiple choice question dataset developed by Hishab curated from various sources.
94
  - [CommonsenseQa Bangla](https://huggingface.co/datasets/hishab/commonsenseqa-bn): A Bangla translation of the CommonsenseQA dataset. The dataset was translated using a new method called Expressive Semantic Translation (EST), which combines Google Machine Translation with LLM-based rewriting modifications.
95
  - [OpenbookQA Bangla](https://huggingface.co/datasets/hishab/openbookqa-bn): A Bangla translation of the OpenbookQA dataset. The dataset was translated using a new method called Expressive Semantic Translation (EST), which combines Google Machine Translation with LLM-based rewriting modifications.
96
  - [Piqa Bangla](https://huggingface.co/datasets/hishab/piqa-bn): A Bangla translation of the Piqa dataset. The dataset was translated using a new method called Expressive Semantic Translation (EST), which combines Google Machine Translation with LLM-based rewriting modifications.
 
98
 
99
  #### English Benchmark datasets
100
  - [MMLU](https://huggingface.co/datasets/cais/mmlu): This is a massive multitask test consisting of multiple-choice questions from various branches of knowledge.
101
+ - [CommonseQa](https://huggingface.co/datasets/tau/commonsense_qa): CommonsenseQA is a new multiple-choice question-answering dataset that requires different types of commonsense knowledge to predict the correct answers.
102
  - [OpenbookQA](https://huggingface.co/datasets/allenai/openbookqa): OpenBookQA aims to promote research in advanced question-answering, probing a deeper understanding of both the topic (with salient facts summarized as an open book, also provided with the dataset) and the language it is expressed in.
103
  - [Piqa](https://huggingface.co/datasets/ybisk/piqa): The PIQA dataset focuses on physical commonsense reasoning, challenging AI to handle everyday situations requiring practical knowledge and unconventional solutions. Inspired by instructables.com, it aims to enhance AI's ability to understand and reason about physical interactions.
104
  - [BoolQ](https://huggingface.co/datasets/google/boolq): BoolQ is a question answering dataset for yes/no questions containing 15942 examples. These questions are naturally occurring ---they are generated in unprompted and unconstrained settings. Each example is a triplet of (question, passage, answer), with the title of the page as optional additional context. The text-pair classification setup is similar to existing natural language inference tasks.