Upload folder using huggingface_hub
Browse files- README.md +51 -0
- config.json +35 -0
- generation_config.json +10 -0
- ml_sp.model +3 -0
- model.safetensors +3 -0
- training_args.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ak-lm-small
|
| 2 |
+
|
| 3 |
+
**Tiny pretrained Malayalam language model (75M parameters)**
|
| 4 |
+
|
| 5 |
+
Developed by **EnduraSolution**.
|
| 6 |
+
|
| 7 |
+
## Overview
|
| 8 |
+
|
| 9 |
+
- GPT-style decoder-only Transformer
|
| 10 |
+
- 75 Million parameters
|
| 11 |
+
- Custom Malayalam SentencePiece tokenizer
|
| 12 |
+
- Vocabulary: 24,000
|
| 13 |
+
- Context length: 256
|
| 14 |
+
|
| 15 |
+
## Training Data
|
| 16 |
+
|
| 17 |
+
- IndicCorp Malayalam
|
| 18 |
+
- Malayalam Wikipedia
|
| 19 |
+
- Kerala-focused corpus
|
| 20 |
+
- Small English Wikipedia subset
|
| 21 |
+
|
| 22 |
+
## Intended Uses
|
| 23 |
+
|
| 24 |
+
- Malayalam text generation
|
| 25 |
+
- Text completion
|
| 26 |
+
- Research
|
| 27 |
+
- Fine-tuning
|
| 28 |
+
|
| 29 |
+
## Limitations
|
| 30 |
+
|
| 31 |
+
This is a pretrained base model.
|
| 32 |
+
|
| 33 |
+
It is **not instruction tuned**.
|
| 34 |
+
|
| 35 |
+
## Example
|
| 36 |
+
|
| 37 |
+
```python
|
| 38 |
+
from transformers import GPT2LMHeadModel
|
| 39 |
+
import sentencepiece as spm
|
| 40 |
+
|
| 41 |
+
sp = spm.SentencePieceProcessor(model_file='ml_sp.model')
|
| 42 |
+
model = GPT2LMHeadModel.from_pretrained('endurasolution/ak-lm-small')
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
## License
|
| 46 |
+
|
| 47 |
+
Apache-2.0
|
| 48 |
+
|
| 49 |
+
---
|
| 50 |
+
|
| 51 |
+
Made with ❤️ by EnduraSolution
|
config.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"activation_function": "gelu_new",
|
| 3 |
+
"add_cross_attention": false,
|
| 4 |
+
"architectures": [
|
| 5 |
+
"GPT2LMHeadModel"
|
| 6 |
+
],
|
| 7 |
+
"attn_pdrop": 0.1,
|
| 8 |
+
"bos_token_id": 1,
|
| 9 |
+
"dtype": "float32",
|
| 10 |
+
"embd_pdrop": 0.1,
|
| 11 |
+
"eos_token_id": 2,
|
| 12 |
+
"initializer_range": 0.02,
|
| 13 |
+
"layer_norm_epsilon": 1e-05,
|
| 14 |
+
"model_type": "gpt2",
|
| 15 |
+
"n_ctx": 256,
|
| 16 |
+
"n_embd": 768,
|
| 17 |
+
"n_head": 12,
|
| 18 |
+
"n_inner": null,
|
| 19 |
+
"n_layer": 8,
|
| 20 |
+
"n_positions": 256,
|
| 21 |
+
"pad_token_id": 3,
|
| 22 |
+
"reorder_and_upcast_attn": false,
|
| 23 |
+
"resid_pdrop": 0.1,
|
| 24 |
+
"scale_attn_by_inverse_layer_idx": false,
|
| 25 |
+
"scale_attn_weights": true,
|
| 26 |
+
"summary_activation": null,
|
| 27 |
+
"summary_first_dropout": 0.1,
|
| 28 |
+
"summary_proj_to_labels": true,
|
| 29 |
+
"summary_type": "cls_index",
|
| 30 |
+
"summary_use_proj": true,
|
| 31 |
+
"tie_word_embeddings": true,
|
| 32 |
+
"transformers_version": "5.12.1",
|
| 33 |
+
"use_cache": false,
|
| 34 |
+
"vocab_size": 24000
|
| 35 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 1,
|
| 4 |
+
"eos_token_id": 2,
|
| 5 |
+
"output_attentions": false,
|
| 6 |
+
"output_hidden_states": false,
|
| 7 |
+
"pad_token_id": 3,
|
| 8 |
+
"transformers_version": "5.12.1",
|
| 9 |
+
"use_cache": true
|
| 10 |
+
}
|
ml_sp.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a5f460a367d49d8d35091821f3b92db32bdf7fb14d6f6b2b749f04b495d159f5
|
| 3 |
+
size 711965
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f1bed2a4bcc21846d6afd8a1071e76e1b88e0fab8c8a2642ecc68a039e86473f
|
| 3 |
+
size 301342544
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ef38437d55269a1754b136a4079f51e8a6449426af0232554c4ddd06d09038aa
|
| 3 |
+
size 5201
|