shubhrapandit commited on
Commit
4f93a76
1 Parent(s): a38d3bc

Add model files

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ *.data filter=lfs diff=lfs merge=lfs -text
config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/home/shubhra/neuralmagic/Llama-2-7b-cnn-daily-mail-pruned_50/",
3
+ "architectures": [
4
+ "LlamaForCausalLM"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "bos_token_id": 1,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 4096,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 11008,
14
+ "max_position_embeddings": 4096,
15
+ "model_type": "llama",
16
+ "num_attention_heads": 32,
17
+ "num_hidden_layers": 32,
18
+ "num_key_value_heads": 32,
19
+ "pretraining_tp": 1,
20
+ "rms_norm_eps": 1e-05,
21
+ "rope_scaling": null,
22
+ "rope_theta": 10000.0,
23
+ "tie_word_embeddings": false,
24
+ "tokenizer_class": "LlamaTokenizerFast",
25
+ "torch_dtype": "bfloat16",
26
+ "transformers_version": "4.39.3",
27
+ "use_cache": true,
28
+ "vocab_size": 32000
29
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "transformers_version": "4.39.3"
6
+ }
model-orig.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87276f3bdfe0f95e5b39722c6642b356031f6a66850f3e501794edcc8be8020e
3
+ size 1214048
model.data ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:221a1e4f6a4b40dc9d2c20bff213f202eb54749ebc77e52e4e0e7a404b2d941e
3
+ size 7290022912
model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06b9520f7bd92e437cc6461f683c24607de340563e7baeee2531c1cca11e3235
3
+ size 1198993
recipe.yaml ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ test_stage:
2
+ obcq_modifiers:
3
+ SmoothQuantModifier:
4
+ smoothing_strength: 0.9
5
+ mappings:
6
+ - - ['re:.*q_proj', 're:.*k_proj', 're:.*v_proj']
7
+ - re:.*input_layernorm
8
+ - - ['re:.*gate_proj', 're:.*up_proj']
9
+ - re:.*post_attention_layernorm
10
+ - - ['re:.*down_proj']
11
+ - re:.*up_proj
12
+ QuantizationModifier:
13
+ ignore: [LlamaRotaryEmbedding, LlamaRMSNorm, SiLUActivation, model.layers.1.mlp.down_proj,
14
+ model.layers.30.mlp.down_proj, model.layers.0.mlp.down_proj, model.layers.4.mlp.down_proj]
15
+ post_oneshot_calibration: true
16
+ scheme_overrides:
17
+ Linear:
18
+ weights: {num_bits: 8, symmetric: true, strategy: channel}
19
+ Embedding:
20
+ input_activations: null
21
+ weights: {num_bits: 8, symmetric: false}
22
+ SparseGPTModifier:
23
+ sparsity: 0.0
24
+ block_size: 128
25
+ sequential_update: false
26
+ quantize: true
27
+ percdamp: 0.01
28
+ prunen: 0
29
+ prunem: 0
30
+ targets: [model.layers.0, model.layers.1, model.layers.2, model.layers.3, model.layers.4,
31
+ model.layers.5, model.layers.6, model.layers.7, model.layers.8, model.layers.9, model.layers.10,
32
+ model.layers.11, model.layers.12, model.layers.13, model.layers.14, model.layers.15,
33
+ model.layers.16, model.layers.17, model.layers.18, model.layers.19, model.layers.20,
34
+ model.layers.21, model.layers.22, model.layers.23, model.layers.24, model.layers.25,
35
+ model.layers.26, model.layers.27, model.layers.28, model.layers.29, model.layers.30,
36
+ model.layers.31, lm_head]
37
+ target_ids: [attention_mask, position_ids]
rouge/predictions.json ADDED
The diff for this file is too large to render. See raw diff
 
rouge/rouge_full_validation.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"rouge1": 0.39809938470961626, "rouge2": 0.17556607776692074, "rougeL": 0.2788872559765281, "rougeLsum": 0.373501965174057, "generation": "top_k", "generation_config": {"do_sample": true, "top_k": 2, "max_new_tokens": 100}, "prompt": "Article:\n{article}\n\n### Summarization:\n"}
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "</s>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<unk>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ }
29
+ },
30
+ "bos_token": "<s>",
31
+ "clean_up_tokenization_spaces": false,
32
+ "eos_token": "</s>",
33
+ "legacy": false,
34
+ "model_max_length": 1000000000000000019884624838656,
35
+ "pad_token": "</s>",
36
+ "padding_side": "right",
37
+ "sp_model_kwargs": {},
38
+ "tokenizer_class": "LlamaTokenizer",
39
+ "unk_token": "<unk>",
40
+ "use_default_system_prompt": false
41
+ }