Mohammed-Altaf commited on
Commit
bc55505
1 Parent(s): ed340b1

Upload model

Browse files
Files changed (3) hide show
  1. config.json +51 -0
  2. generation_config.json +7 -0
  3. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "jianghc/medical_chatbot",
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "GPT2LMHeadModel"
6
+ ],
7
+ "attn_pdrop": 0.1,
8
+ "bos_token_id": 28895,
9
+ "embd_pdrop": 0.1,
10
+ "eos_token_id": 28895,
11
+ "initializer_range": 0.02,
12
+ "layer_norm_epsilon": 1e-05,
13
+ "model_type": "gpt2",
14
+ "n_ctx": 1024,
15
+ "n_embd": 2560,
16
+ "n_head": 20,
17
+ "n_inner": null,
18
+ "n_layer": 32,
19
+ "n_positions": 1024,
20
+ "quantization_config": {
21
+ "bnb_4bit_compute_dtype": "float32",
22
+ "bnb_4bit_quant_type": "fp4",
23
+ "bnb_4bit_use_double_quant": false,
24
+ "llm_int8_enable_fp32_cpu_offload": false,
25
+ "llm_int8_has_fp16_weight": false,
26
+ "llm_int8_skip_modules": null,
27
+ "llm_int8_threshold": 6.0,
28
+ "load_in_4bit": false,
29
+ "load_in_8bit": true,
30
+ "quant_method": "bitsandbytes"
31
+ },
32
+ "reorder_and_upcast_attn": false,
33
+ "resid_pdrop": 0.1,
34
+ "scale_attn_by_inverse_layer_idx": true,
35
+ "scale_attn_weights": true,
36
+ "summary_activation": null,
37
+ "summary_first_dropout": 0.1,
38
+ "summary_proj_to_labels": true,
39
+ "summary_type": "cls_index",
40
+ "summary_use_proj": true,
41
+ "task_specific_params": {
42
+ "text-generation": {
43
+ "do_sample": true,
44
+ "max_length": 50
45
+ }
46
+ },
47
+ "torch_dtype": "float16",
48
+ "transformers_version": "4.35.2",
49
+ "use_cache": false,
50
+ "vocab_size": 28896
51
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 28895,
4
+ "eos_token_id": 28895,
5
+ "transformers_version": "4.35.2",
6
+ "use_cache": false
7
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:648db6b888bb5105fcf0870ce1efdb3d9676bd2261229529a2a521ba9ee28662
3
+ size 2674913736