MichaelHu03
commited on
Commit
•
4a2fd60
1
Parent(s):
aa3eafd
Upload model
Browse files- README.md +3 -1
- config.json +52 -0
- generation_config.json +7 -0
- model.safetensors +3 -0
README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
---
|
2 |
library_name: transformers
|
3 |
-
tags:
|
|
|
|
|
4 |
---
|
5 |
|
6 |
# Model Card for Model ID
|
|
|
1 |
---
|
2 |
library_name: transformers
|
3 |
+
tags:
|
4 |
+
- trl
|
5 |
+
- sft
|
6 |
---
|
7 |
|
8 |
# Model Card for Model ID
|
config.json
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "openai-community/openai-gpt",
|
3 |
+
"afn": "gelu",
|
4 |
+
"architectures": [
|
5 |
+
"OpenAIGPTLMHeadModel"
|
6 |
+
],
|
7 |
+
"attn_pdrop": 0.1,
|
8 |
+
"bos_token_id": 40478,
|
9 |
+
"embd_pdrop": 0.1,
|
10 |
+
"eos_token_id": 40479,
|
11 |
+
"initializer_range": 0.02,
|
12 |
+
"layer_norm_epsilon": 1e-05,
|
13 |
+
"model_type": "openai-gpt",
|
14 |
+
"n_ctx": 512,
|
15 |
+
"n_embd": 768,
|
16 |
+
"n_head": 12,
|
17 |
+
"n_layer": 12,
|
18 |
+
"n_positions": 512,
|
19 |
+
"n_special": 0,
|
20 |
+
"pad_token_id": 40479,
|
21 |
+
"predict_special_tokens": true,
|
22 |
+
"quantization_config": {
|
23 |
+
"_load_in_4bit": true,
|
24 |
+
"_load_in_8bit": false,
|
25 |
+
"bnb_4bit_compute_dtype": "float16",
|
26 |
+
"bnb_4bit_quant_storage": "uint8",
|
27 |
+
"bnb_4bit_quant_type": "nf4",
|
28 |
+
"bnb_4bit_use_double_quant": false,
|
29 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
30 |
+
"llm_int8_has_fp16_weight": false,
|
31 |
+
"llm_int8_skip_modules": null,
|
32 |
+
"llm_int8_threshold": 6.0,
|
33 |
+
"load_in_4bit": true,
|
34 |
+
"load_in_8bit": false,
|
35 |
+
"quant_method": "bitsandbytes"
|
36 |
+
},
|
37 |
+
"resid_pdrop": 0.1,
|
38 |
+
"summary_activation": null,
|
39 |
+
"summary_first_dropout": 0.1,
|
40 |
+
"summary_proj_to_labels": true,
|
41 |
+
"summary_type": "cls_index",
|
42 |
+
"summary_use_proj": true,
|
43 |
+
"task_specific_params": {
|
44 |
+
"text-generation": {
|
45 |
+
"do_sample": true,
|
46 |
+
"max_length": 50
|
47 |
+
}
|
48 |
+
},
|
49 |
+
"torch_dtype": "bfloat16",
|
50 |
+
"transformers_version": "4.46.2",
|
51 |
+
"vocab_size": 40480
|
52 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 40478,
|
4 |
+
"eos_token_id": 40479,
|
5 |
+
"pad_token_id": 40479,
|
6 |
+
"transformers_version": "4.46.2"
|
7 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:621b74ee4889dfba22fe232b5b4805736ded2639c93a124756059be56c05015c
|
3 |
+
size 125011604
|