YALCINKAYA
commited on
Commit
•
aa19582
1
Parent(s):
2dce96c
Upload GPTJForCausalLM
Browse files- README.md +3 -0
- config.json +58 -0
- generation_config.json +6 -0
- model.safetensors +3 -0
README.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
|
|
|
|
|
|
3 |
---
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
+
tags:
|
4 |
+
- trl
|
5 |
+
- sft
|
6 |
---
|
config.json
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "EleutherAI/gpt-j-6B",
|
3 |
+
"activation_function": "gelu_new",
|
4 |
+
"architectures": [
|
5 |
+
"GPTJForCausalLM"
|
6 |
+
],
|
7 |
+
"attn_pdrop": 0.0,
|
8 |
+
"bos_token_id": 50256,
|
9 |
+
"embd_pdrop": 0.0,
|
10 |
+
"eos_token_id": 50256,
|
11 |
+
"gradient_checkpointing": false,
|
12 |
+
"initializer_range": 0.02,
|
13 |
+
"layer_norm_epsilon": 1e-05,
|
14 |
+
"model_type": "gptj",
|
15 |
+
"n_embd": 4096,
|
16 |
+
"n_head": 16,
|
17 |
+
"n_inner": null,
|
18 |
+
"n_layer": 28,
|
19 |
+
"n_positions": 2048,
|
20 |
+
"pretraining_tp": 1,
|
21 |
+
"quantization_config": {
|
22 |
+
"_load_in_4bit": true,
|
23 |
+
"_load_in_8bit": false,
|
24 |
+
"bnb_4bit_compute_dtype": "float16",
|
25 |
+
"bnb_4bit_quant_storage": "uint8",
|
26 |
+
"bnb_4bit_quant_type": "nf4",
|
27 |
+
"bnb_4bit_use_double_quant": true,
|
28 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
29 |
+
"llm_int8_has_fp16_weight": false,
|
30 |
+
"llm_int8_skip_modules": null,
|
31 |
+
"llm_int8_threshold": 6.0,
|
32 |
+
"load_in_4bit": true,
|
33 |
+
"load_in_8bit": false,
|
34 |
+
"quant_method": "bitsandbytes"
|
35 |
+
},
|
36 |
+
"resid_pdrop": 0.0,
|
37 |
+
"rotary": true,
|
38 |
+
"rotary_dim": 64,
|
39 |
+
"scale_attn_weights": true,
|
40 |
+
"summary_activation": null,
|
41 |
+
"summary_first_dropout": 0.1,
|
42 |
+
"summary_proj_to_labels": true,
|
43 |
+
"summary_type": "cls_index",
|
44 |
+
"summary_use_proj": true,
|
45 |
+
"task_specific_params": {
|
46 |
+
"text-generation": {
|
47 |
+
"do_sample": true,
|
48 |
+
"max_length": 50,
|
49 |
+
"temperature": 1.0
|
50 |
+
}
|
51 |
+
},
|
52 |
+
"tie_word_embeddings": false,
|
53 |
+
"tokenizer_class": "GPT2Tokenizer",
|
54 |
+
"torch_dtype": "float32",
|
55 |
+
"transformers_version": "4.45.2",
|
56 |
+
"use_cache": false,
|
57 |
+
"vocab_size": 50400
|
58 |
+
}
|
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.45.2"
|
6 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0effc5dabee7cab8f18efc1cea0811ce20a14d01401e850465c716066f644c1d
|
3 |
+
size 4578023106
|