itriedcoding commited on
Commit
b463f15
·
verified ·
1 Parent(s): b519d96

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ tags:
4
+ - text-generation
5
+ - plain-english
6
+ - fine-tuned
7
+ datasets:
8
+ - tatsu-lab/alpaca
9
+ ---
10
+
11
+ # PlainEnglish-1B
12
+
13
+ A 1B parameter text generation model fine-tuned for clear, plain English output.
14
+
15
+ ## Model Details
16
+
17
+ - **Architecture**: LlamaForCausalLM (TinyLlama-1.1B)
18
+ - **Total Parameters**: 1,100,048,384 (1.1B)
19
+ - **Base Model**: TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T
20
+ - **Training Dataset**: tatsu-lab/alpaca (52K instruction examples)
21
+ - **Fine-tuning Method**: LoRA (rank=64, alpha=128) merged into base
22
+
23
+ ## Usage
24
+
25
+ ```python
26
+ from transformers import AutoModelForCausalLM, AutoTokenizer
27
+
28
+ model = AutoModelForCausalLM.from_pretrained("PlainEnglish/PlainEnglish-1B")
29
+ tokenizer = AutoTokenizer.from_pretrained("PlainEnglish/PlainEnglish-1B")
30
+
31
+ inputs = tokenizer("The meaning of life is", return_tensors="pt")
32
+ outputs = model.generate(**inputs, max_new_tokens=100, temperature=0.7, do_sample=True)
33
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
34
+ ```
35
+
36
+ ## License
37
+
38
+ Apache 2.0
config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 1,
8
+ "dtype": "float32",
9
+ "eos_token_id": 2,
10
+ "head_dim": 64,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 2048,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 5632,
15
+ "max_position_embeddings": 2048,
16
+ "mlp_bias": false,
17
+ "model_type": "llama",
18
+ "num_attention_heads": 32,
19
+ "num_hidden_layers": 22,
20
+ "num_key_value_heads": 4,
21
+ "pad_token_id": null,
22
+ "pretraining_tp": 1,
23
+ "rms_norm_eps": 1e-05,
24
+ "rope_parameters": {
25
+ "rope_theta": 10000.0,
26
+ "rope_type": "default"
27
+ },
28
+ "tie_word_embeddings": false,
29
+ "transformers_version": "5.10.2",
30
+ "use_cache": true,
31
+ "vocab_size": 32000
32
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 1,
3
+ "eos_token_id": 2,
4
+ "max_length": 2048,
5
+ "pad_token_id": 0,
6
+ "transformers_version": "5.10.2"
7
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1077bd4169c6bc5750d5fe5a39e2e3ef35e1269c4cc99062059a7ac76972c343
3
+ size 4400216536
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": null,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "</s>",
7
+ "is_local": true,
8
+ "local_files_only": false,
9
+ "max_length": 128,
10
+ "model_max_length": 1000000000000000019884624838656,
11
+ "pad_to_multiple_of": null,
12
+ "pad_token": "</s>",
13
+ "pad_token_type_id": 0,
14
+ "padding_side": "right",
15
+ "sp_model_kwargs": {},
16
+ "stride": 0,
17
+ "tokenizer_class": "LlamaTokenizer",
18
+ "truncation_side": "right",
19
+ "truncation_strategy": "longest_first",
20
+ "unk_token": "<unk>",
21
+ "use_default_system_prompt": false
22
+ }
training_report.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_name": "PlainEnglish-1B",
3
+ "base_model": "TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T",
4
+ "total_parameters": 1100048384,
5
+ "training_method": "LoRA (r=64, alpha=128) merged into base",
6
+ "dataset": "tatsu-lab/alpaca",
7
+ "training_steps": 10
8
+ }