RajuKandasamy commited on
Commit
b14eeac
1 Parent(s): d34d62c

Upload 10 files

Browse files

Initial draft commit

README.md CHANGED
@@ -1,3 +1,34 @@
1
  ---
2
  license: gpl-3.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: gpl-3.0
3
+ language:
4
+ - ta
5
+ inference:
6
+ parameters:
7
+ max_new_tokens: 250
8
+ repetition_penalty: 1.4
9
+ do_sample: True
10
+ temperature: 0.01 # Added to match the script's generation behavior
11
+ widget:
12
+ - text: |
13
+ இன்னாமை வேண்டின்
14
+ example_title: "Venba 1"
15
+ - text: |
16
+ பாடல்:
17
+ நின்றன நின்றன நில்லாகும்
18
+ example_title: "Venba 2"
19
+ - text: |
20
+ பாடல்:
21
+ துகள்தீர் பெருஞ்செல்வம்
22
+ example_title: "Venba 3"
23
+ - text: |
24
+ பாடல்:
25
+ கொங்குதேர் வாழ்க்கை அஞ்சிறைத் தும்பி
26
+ example_title: "Venba 4"
27
+ - text: |
28
+ பாடல்:
29
+ செல்வத்துட் செல்வம்
30
+ example_title: "Venba 5"
31
+ - text: |
32
+ வேதம் உரைத்தானும் வேதிய னாகிலன்
33
+ example_title: "Venba 6"
34
+ ---
config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "marabutamil_60M",
3
+ "architectures": [
4
+ "LlamaForCausalLM"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "bos_token_id": 1,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 512,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 1024,
14
+ "max_position_embeddings": 2048,
15
+ "model_type": "llama",
16
+ "num_attention_heads": 16,
17
+ "num_hidden_layers": 16,
18
+ "num_key_value_heads": 16,
19
+ "pad_token_id": 3,
20
+ "pretraining_tp": 1,
21
+ "rms_norm_eps": 1e-06,
22
+ "rope_scaling": {
23
+ "factor": 2.0,
24
+ "type": "linear"
25
+ },
26
+ "rope_theta": 10000.0,
27
+ "tie_word_embeddings": false,
28
+ "torch_dtype": "float32",
29
+ "transformers_version": "4.37.1",
30
+ "use_cache": false,
31
+ "vocab_size": 16000
32
+ }
generation_config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "pad_token_id": 3,
6
+ "transformers_version": "4.37.1",
7
+ "use_cache": false
8
+ }
infer.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from transformers import AutoTokenizer, AutoModelForCausalLM
2
+
3
+ tokenizer = AutoTokenizer.from_pretrained("./")
4
+ model = AutoModelForCausalLM.from_pretrained("./")
5
+ #prompt = f"""பாடல்:
6
+ #நின்றன நின்றன நில்லா"""
7
+ prompt = f"""இன்னாமை வேண்டின்"""
8
+ input_ids = tokenizer(prompt, return_tensors="pt").input_ids
9
+
10
+ generation_output = model.generate(
11
+ input_ids=input_ids, max_new_tokens=256, repetition_penalty=1.4, temperature=0.01, do_sample=False
12
+ )
13
+ print(tokenizer.decode(generation_output[0]))
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:99f6dd3a7503c06bf0b1c2ddd5ebefc882dc205c157d46038bb476f521a14634
3
+ size 233392032
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ transformers==4.37.1
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "</s>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": true,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:35aa85f6a206e8778db8de1066b107153476a4c079ef7e8e8a8b121991090fc0
3
+ size 651581
tokenizer_config.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<unk>",
7
+ "lstrip": false,
8
+ "normalized": true,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": true,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": true,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ }
29
+ },
30
+ "bos_token": "<s>",
31
+ "clean_up_tokenization_spaces": false,
32
+ "eos_token": "</s>",
33
+ "legacy": true,
34
+ "max_length": 1024,
35
+ "model_max_length": 1000000000000000019884624838656,
36
+ "pad_to_multiple_of": null,
37
+ "pad_token": "</s>",
38
+ "pad_token_type_id": 0,
39
+ "padding_side": "left",
40
+ "sp_model_kwargs": {},
41
+ "spaces_between_special_tokens": false,
42
+ "stride": 0,
43
+ "tokenizer_class": "LlamaTokenizer",
44
+ "truncation_side": "right",
45
+ "truncation_strategy": "longest_first",
46
+ "unk_token": "<unk>",
47
+ "use_default_system_prompt": true
48
+ }