smjain commited on
Commit
7ec0d4c
1 Parent(s): e71c2e9

Upload OPTForCausalLM

Browse files
Files changed (3) hide show
  1. config.json +53 -0
  2. generation_config.json +7 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/opt-125m",
3
+ "_remove_final_layer_norm": false,
4
+ "activation_dropout": 0.0,
5
+ "activation_function": "relu",
6
+ "architectures": [
7
+ "OPTForCausalLM"
8
+ ],
9
+ "attention_dropout": 0.0,
10
+ "bos_token_id": 2,
11
+ "do_layer_norm_before": true,
12
+ "dropout": 0.1,
13
+ "enable_bias": true,
14
+ "eos_token_id": 2,
15
+ "ffn_dim": 3072,
16
+ "hidden_size": 768,
17
+ "init_std": 0.02,
18
+ "layer_norm_elementwise_affine": true,
19
+ "layerdrop": 0.0,
20
+ "max_position_embeddings": 2048,
21
+ "model_type": "opt",
22
+ "num_attention_heads": 12,
23
+ "num_hidden_layers": 12,
24
+ "pad_token_id": 1,
25
+ "prefix": "</s>",
26
+ "quantization_config": {
27
+ "batch_size": 1,
28
+ "bits": 4,
29
+ "block_name_to_quantize": "model.decoder.layers",
30
+ "damp_percent": 0.1,
31
+ "dataset": "c4",
32
+ "desc_act": false,
33
+ "disable_exllama": false,
34
+ "group_size": 128,
35
+ "model_seqlen": 2048,
36
+ "module_name_preceding_first_block": [
37
+ "model.decoder.embed_tokens",
38
+ "model.decoder.embed_positions",
39
+ "model.decoder.final_layer_norm"
40
+ ],
41
+ "pad_token_id": null,
42
+ "quant_method": "gptq",
43
+ "sym": true,
44
+ "tokenizer": null,
45
+ "true_sequential": true,
46
+ "use_cuda_fp16": true
47
+ },
48
+ "torch_dtype": "float16",
49
+ "transformers_version": "4.32.0",
50
+ "use_cache": true,
51
+ "vocab_size": 50272,
52
+ "word_embed_proj_dim": 768
53
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 2,
4
+ "eos_token_id": 2,
5
+ "pad_token_id": 1,
6
+ "transformers_version": "4.32.0"
7
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c3317e1384abdcf285343840ee5e0fc75f0af0684e60b9fbfd793c6904a5fb0a
3
+ size 125206653