Upload Hindi CausalLM model
Browse files- README.md +53 -0
- config.json +73 -0
- model.safetensors +3 -0
- pytorch_model.bin +3 -0
- tokenizer.model +3 -0
README.md
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- hi
|
4 |
+
tags:
|
5 |
+
- hindi
|
6 |
+
- text-generation
|
7 |
+
- causal-lm
|
8 |
+
- lm
|
9 |
+
license: mit
|
10 |
+
datasets:
|
11 |
+
- custom_hindi_corpus
|
12 |
+
---
|
13 |
+
|
14 |
+
# Hindi-CausalLM
|
15 |
+
|
16 |
+
A Hindi language generation model with the following specifications:
|
17 |
+
|
18 |
+
## Model Architecture
|
19 |
+
- **Type**: Causal Language Model with Transformer architecture
|
20 |
+
- **Hidden size**: 768
|
21 |
+
- **Layers**: 12
|
22 |
+
- **Attention heads**: 16
|
23 |
+
- **Key-value heads**: 4 (using grouped-query attention)
|
24 |
+
- **Vocabulary size**: 16000
|
25 |
+
- **Parameters**: ~74.1M
|
26 |
+
- **Context window**: 512 tokens
|
27 |
+
- **Trained on**: Large corpus of Hindi text
|
28 |
+
|
29 |
+
## Training
|
30 |
+
|
31 |
+
The model was trained on a large corpus of Hindi text using a cosine learning rate schedule with warmup. Training utilized mixed-precision and distributed data parallel across multiple GPUs.
|
32 |
+
|
33 |
+
## Capabilities
|
34 |
+
|
35 |
+
This model can:
|
36 |
+
- Generate coherent Hindi text
|
37 |
+
- Continue text from a given prompt
|
38 |
+
- Create stories, explanations, and other content in Hindi
|
39 |
+
|
40 |
+
## Limitations
|
41 |
+
|
42 |
+
- Performance varies based on the similarity of the input to the training data
|
43 |
+
- May occasionally generate repetitive content for longer texts
|
44 |
+
- May produce grammatically incorrect Hindi in some contexts
|
45 |
+
- Has no knowledge of events beyond its training corpus
|
46 |
+
|
47 |
+
## Intended Use
|
48 |
+
|
49 |
+
This model is intended for Hindi language generation tasks, creative writing assistance, and as a foundation for fine-tuning on specific tasks.
|
50 |
+
|
51 |
+
## Ethical Considerations
|
52 |
+
|
53 |
+
Users should be aware that like all language models, this model may reproduce biases or generate problematic content in certain contexts.
|
config.json
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"return_dict": true,
|
3 |
+
"output_hidden_states": false,
|
4 |
+
"output_attentions": false,
|
5 |
+
"torchscript": false,
|
6 |
+
"torch_dtype": null,
|
7 |
+
"use_bfloat16": false,
|
8 |
+
"tf_legacy_loss": false,
|
9 |
+
"pruned_heads": {},
|
10 |
+
"tie_word_embeddings": true,
|
11 |
+
"chunk_size_feed_forward": 0,
|
12 |
+
"is_encoder_decoder": false,
|
13 |
+
"is_decoder": false,
|
14 |
+
"cross_attention_hidden_size": null,
|
15 |
+
"add_cross_attention": false,
|
16 |
+
"tie_encoder_decoder": false,
|
17 |
+
"max_length": 20,
|
18 |
+
"min_length": 0,
|
19 |
+
"do_sample": false,
|
20 |
+
"early_stopping": false,
|
21 |
+
"num_beams": 1,
|
22 |
+
"num_beam_groups": 1,
|
23 |
+
"diversity_penalty": 0.0,
|
24 |
+
"temperature": 1.0,
|
25 |
+
"top_k": 50,
|
26 |
+
"top_p": 1.0,
|
27 |
+
"typical_p": 1.0,
|
28 |
+
"repetition_penalty": 1.0,
|
29 |
+
"length_penalty": 1.0,
|
30 |
+
"no_repeat_ngram_size": 0,
|
31 |
+
"encoder_no_repeat_ngram_size": 0,
|
32 |
+
"bad_words_ids": null,
|
33 |
+
"num_return_sequences": 1,
|
34 |
+
"output_scores": false,
|
35 |
+
"return_dict_in_generate": false,
|
36 |
+
"forced_bos_token_id": null,
|
37 |
+
"forced_eos_token_id": null,
|
38 |
+
"remove_invalid_values": false,
|
39 |
+
"exponential_decay_length_penalty": null,
|
40 |
+
"suppress_tokens": null,
|
41 |
+
"begin_suppress_tokens": null,
|
42 |
+
"architectures": null,
|
43 |
+
"finetuning_task": null,
|
44 |
+
"id2label": {
|
45 |
+
"0": "LABEL_0",
|
46 |
+
"1": "LABEL_1"
|
47 |
+
},
|
48 |
+
"label2id": {
|
49 |
+
"LABEL_0": 0,
|
50 |
+
"LABEL_1": 1
|
51 |
+
},
|
52 |
+
"tokenizer_class": null,
|
53 |
+
"prefix": null,
|
54 |
+
"bos_token_id": null,
|
55 |
+
"pad_token_id": null,
|
56 |
+
"eos_token_id": null,
|
57 |
+
"sep_token_id": null,
|
58 |
+
"decoder_start_token_id": null,
|
59 |
+
"task_specific_params": null,
|
60 |
+
"problem_type": null,
|
61 |
+
"_name_or_path": "",
|
62 |
+
"_attn_implementation_autoset": true,
|
63 |
+
"transformers_version": "4.51.1",
|
64 |
+
"vocab_size": 16000,
|
65 |
+
"hidden_size": 768,
|
66 |
+
"num_hidden_layers": 12,
|
67 |
+
"num_attention_heads": 16,
|
68 |
+
"num_key_value_heads": 4,
|
69 |
+
"intermediate_size": 3072,
|
70 |
+
"hidden_act": "silu",
|
71 |
+
"max_position_embeddings": 512,
|
72 |
+
"model_type": "convaicausallm"
|
73 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0b013bef88c7f7cbf72bd25d7868854da142b00a899adc94175294b50a04d4dd
|
3 |
+
size 408609208
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f57c2ac93848af94c4dcbb2f93a6406135c030a2e0c9b717588f4f5929b13551
|
3 |
+
size 408661966
|
tokenizer.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f1658727f4ea5c571f69a60f6defcd180014a1d69be6e9c1ec360d9510aa6b5e
|
3 |
+
size 642200
|