eaalghamdi commited on
Commit
29e6830
·
1 Parent(s): 8e0d604

araGPT2_mega quantized to 8bit

Browse files
Files changed (3) hide show
  1. config.json +59 -0
  2. generation_config.json +6 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "aubmindlab/aragpt2-mega",
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "GPT2LMHeadModel"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "attn_pdrop": 0.1,
9
+ "bos_token_id": 0,
10
+ "embd_pdrop": 0.1,
11
+ "eos_token_id": 0,
12
+ "hidden_act": "gelu",
13
+ "hidden_dropout_prob": 0.1,
14
+ "initializer_range": 0.014142135623731,
15
+ "intermediate_size": 6144,
16
+ "layer_norm_epsilon": 1e-05,
17
+ "model_type": "gpt2",
18
+ "n_ctx": 1024,
19
+ "n_embd": 1536,
20
+ "n_head": 24,
21
+ "n_inner": null,
22
+ "n_layer": 48,
23
+ "n_positions": 1024,
24
+ "quantization_config": {
25
+ "bnb_4bit_compute_dtype": "float32",
26
+ "bnb_4bit_quant_type": "fp4",
27
+ "bnb_4bit_use_double_quant": false,
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": false,
33
+ "load_in_8bit": true,
34
+ "quant_method": "bitsandbytes"
35
+ },
36
+ "reorder_and_upcast_attn": false,
37
+ "resid_pdrop": 0.1,
38
+ "scale_attn_by_inverse_layer_idx": false,
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
+ "no_repeat_ngram_size": 3,
50
+ "num_beams": 5,
51
+ "repetition_penalty": 3.0,
52
+ "top_p": 0.95
53
+ }
54
+ },
55
+ "torch_dtype": "float16",
56
+ "transformers_version": "4.33.0.dev0",
57
+ "use_cache": true,
58
+ "vocab_size": 64000
59
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "eos_token_id": 0,
5
+ "transformers_version": "4.33.0.dev0"
6
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ee7472dea2c92b1488c7e98c5a7755000e4a9889ce70c0364745f3c27b18e18
3
+ size 1563537437