jingtingjian commited on
Commit
b4f544f
1 Parent(s): d387e5e

Upload OPTForCausalLM

Browse files
Files changed (3) hide show
  1. config.json +55 -0
  2. generation_config.json +7 -0
  3. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": 3,
29
+ "block_name_to_quantize": null,
30
+ "cache_block_outputs": true,
31
+ "damp_percent": 0.1,
32
+ "dataset": "c4",
33
+ "desc_act": false,
34
+ "exllama_config": {
35
+ "version": 1
36
+ },
37
+ "group_size": 128,
38
+ "max_input_length": null,
39
+ "model_seqlen": null,
40
+ "module_name_preceding_first_block": null,
41
+ "modules_in_block_to_quantize": null,
42
+ "pad_token_id": null,
43
+ "quant_method": "gptq",
44
+ "sym": true,
45
+ "tokenizer": null,
46
+ "true_sequential": true,
47
+ "use_cuda_fp16": false,
48
+ "use_exllama": true
49
+ },
50
+ "torch_dtype": "float16",
51
+ "transformers_version": "4.38.2",
52
+ "use_cache": true,
53
+ "vocab_size": 50272,
54
+ "word_embed_proj_dim": 768
55
+ }
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.38.2"
7
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75dabd0409739b63a550799c844fc9488b538fb517e4f555ea6a6be0c6b33f08
3
+ size 114413776