Striker-7 commited on
Commit
4dce682
1 Parent(s): 416c4cf

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ ---
4
+
5
+ # mattxt-neo
6
+
7
+ mattxt-neo is an SFT fine-tuned version of EleutherAI/gpt-neo-2.7B using a custom training dataset.
8
+ This model was made with [Phinetune]()
9
+
10
+ ## Process
11
+ - Learning Rate: 0.0001
12
+ - Maximum Sequence Length: 2048
13
+ - Dataset: Striker-7/mattxt
14
+ - Split: train
15
+
16
+ ## 💻 Usage
17
+ ```python
18
+ !pip install -qU transformers
19
+ from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
20
+
21
+ model = "Striker-7/mattxt-neo"
22
+ tokenizer = AutoTokenizer.from_pretrained(model)
23
+
24
+ # Example prompt
25
+ prompt = "Your example prompt here"
26
+
27
+ # Generate a response
28
+ model = AutoModelForCausalLM.from_pretrained(model)
29
+ pipeline = pipeline("text-generation", model=model, tokenizer=tokenizer)
30
+ outputs = pipeline(prompt, max_length=50, num_return_sequences=1)
31
+ print(outputs[0]["generated_text"])
32
+ ```
config.json ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "EleutherAI/gpt-neo-2.7B",
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "GPTNeoForCausalLM"
6
+ ],
7
+ "attention_dropout": 0,
8
+ "attention_layers": [
9
+ "global",
10
+ "local",
11
+ "global",
12
+ "local",
13
+ "global",
14
+ "local",
15
+ "global",
16
+ "local",
17
+ "global",
18
+ "local",
19
+ "global",
20
+ "local",
21
+ "global",
22
+ "local",
23
+ "global",
24
+ "local",
25
+ "global",
26
+ "local",
27
+ "global",
28
+ "local",
29
+ "global",
30
+ "local",
31
+ "global",
32
+ "local",
33
+ "global",
34
+ "local",
35
+ "global",
36
+ "local",
37
+ "global",
38
+ "local",
39
+ "global",
40
+ "local"
41
+ ],
42
+ "attention_types": [
43
+ [
44
+ [
45
+ "global",
46
+ "local"
47
+ ],
48
+ 16
49
+ ]
50
+ ],
51
+ "bos_token_id": 50256,
52
+ "classifier_dropout": 0.1,
53
+ "embed_dropout": 0,
54
+ "eos_token_id": 50256,
55
+ "gradient_checkpointing": false,
56
+ "hidden_size": 2560,
57
+ "initializer_range": 0.02,
58
+ "intermediate_size": null,
59
+ "layer_norm_epsilon": 1e-05,
60
+ "max_position_embeddings": 2048,
61
+ "model_type": "gpt_neo",
62
+ "num_heads": 20,
63
+ "num_layers": 32,
64
+ "pretraining_tp": 1,
65
+ "quantization_config": {
66
+ "_load_in_4bit": true,
67
+ "_load_in_8bit": false,
68
+ "bnb_4bit_compute_dtype": "bfloat16",
69
+ "bnb_4bit_quant_storage": "uint8",
70
+ "bnb_4bit_quant_type": "nf4",
71
+ "bnb_4bit_use_double_quant": false,
72
+ "llm_int8_enable_fp32_cpu_offload": false,
73
+ "llm_int8_has_fp16_weight": false,
74
+ "llm_int8_skip_modules": null,
75
+ "llm_int8_threshold": 6.0,
76
+ "load_in_4bit": true,
77
+ "load_in_8bit": false,
78
+ "quant_method": "bitsandbytes"
79
+ },
80
+ "resid_dropout": 0,
81
+ "summary_activation": null,
82
+ "summary_first_dropout": 0.1,
83
+ "summary_proj_to_labels": true,
84
+ "summary_type": "cls_index",
85
+ "summary_use_proj": true,
86
+ "task_specific_params": {
87
+ "text-generation": {
88
+ "do_sample": true,
89
+ "max_length": 50,
90
+ "temperature": 0.9
91
+ }
92
+ },
93
+ "tokenizer_class": "GPT2Tokenizer",
94
+ "torch_dtype": "float32",
95
+ "transformers_version": "4.42.3",
96
+ "use_cache": false,
97
+ "vocab_size": 50257,
98
+ "window_size": 256
99
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 50256,
4
+ "eos_token_id": 50256,
5
+ "transformers_version": "4.42.3"
6
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3686a766156a29b75ec5515faa5b27522eb19a6c34e0d8955aff3ddb75ec54db
3
+ size 2006908480
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<|endoftext|>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|endoftext|>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "<|endoftext|>",
17
+ "unk_token": {
18
+ "content": "<|endoftext|>",
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_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "50256": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": true,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ }
13
+ },
14
+ "bos_token": "<|endoftext|>",
15
+ "clean_up_tokenization_spaces": true,
16
+ "eos_token": "<|endoftext|>",
17
+ "errors": "replace",
18
+ "model_max_length": 2048,
19
+ "pad_token": "<|endoftext|>",
20
+ "tokenizer_class": "GPT2Tokenizer",
21
+ "unk_token": "<|endoftext|>"
22
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff