xzyao commited on
Commit
a4ec4fd
·
verified ·
1 Parent(s): 8901b5b

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets:
3
+ - HuggingFaceH4/ultrachat_200k
4
+ base_model:
5
+ - meta-llama/Llama-2-70b-chat-hf
6
+ library_name: transformers
7
+ ---
8
+
9
+ ## meta-llama/Llama-2-70b-chat-hf - W8A8_FP8 Compression
10
+
11
+ This is a compressed model using [llmcompressor](https://github.com/vllm-project/llm-compressor).
12
+
13
+ ## Compression Configuration
14
+
15
+ - Base Model: meta-llama/Llama-2-70b-chat-hf
16
+ - Compression Scheme: W8A8_FP8
17
+ - Dataset: HuggingFaceH4/ultrachat_200k
18
+ - Dataset Split: train_sft
19
+ - Number of Samples: 512
20
+ - Preprocessor: chat
21
+ - Maximum Sequence Length: 4096
22
+
23
+ ## Sample Output
24
+
25
+ #### Prompt:
26
+
27
+ ```
28
+ Could not generate output
29
+ ```
30
+
31
+ #### Output:
32
+
33
+ ```
34
+ No CUDA GPUs are available
35
+ ```
36
+
37
+ ## Evaluation
38
+
39
+ <TODO>
40
+
config.json ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "meta-llama/Llama-2-70b-chat-hf",
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
+ "head_dim": 128,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 8192,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 28672,
15
+ "max_position_embeddings": 4096,
16
+ "mlp_bias": false,
17
+ "model_type": "llama",
18
+ "num_attention_heads": 64,
19
+ "num_hidden_layers": 80,
20
+ "num_key_value_heads": 8,
21
+ "pretraining_tp": 1,
22
+ "quantization_config": {
23
+ "config_groups": {
24
+ "group_0": {
25
+ "input_activations": {
26
+ "actorder": null,
27
+ "block_structure": null,
28
+ "dynamic": true,
29
+ "group_size": null,
30
+ "num_bits": 8,
31
+ "observer": null,
32
+ "observer_kwargs": {},
33
+ "strategy": "token",
34
+ "symmetric": true,
35
+ "type": "float"
36
+ },
37
+ "output_activations": null,
38
+ "targets": [
39
+ "Linear"
40
+ ],
41
+ "weights": {
42
+ "actorder": null,
43
+ "block_structure": null,
44
+ "dynamic": false,
45
+ "group_size": null,
46
+ "num_bits": 8,
47
+ "observer": "minmax",
48
+ "observer_kwargs": {},
49
+ "strategy": "channel",
50
+ "symmetric": true,
51
+ "type": "float"
52
+ }
53
+ }
54
+ },
55
+ "format": "float-quantized",
56
+ "global_compression_ratio": 1.4635431269386028,
57
+ "ignore": [
58
+ "lm_head"
59
+ ],
60
+ "kv_cache_scheme": null,
61
+ "quant_method": "compressed-tensors",
62
+ "quantization_status": "compressed"
63
+ },
64
+ "rms_norm_eps": 1e-05,
65
+ "rope_scaling": null,
66
+ "rope_theta": 10000.0,
67
+ "tie_word_embeddings": false,
68
+ "torch_dtype": "float16",
69
+ "transformers_version": "4.46.2",
70
+ "use_cache": true,
71
+ "vocab_size": 32000
72
+ }
generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 1,
3
+ "do_sample": true,
4
+ "eos_token_id": 2,
5
+ "max_length": 4096,
6
+ "pad_token_id": 0,
7
+ "temperature": 0.6,
8
+ "top_p": 0.9,
9
+ "transformers_version": "4.46.2"
10
+ }
model-00001-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ddd474a050214ac5b6ce67cf0d36f89964d7af6c5632549580b297d425003894
3
+ size 4954523824
model-00002-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e7c016da6bf83e84c82b887cf1687bbf0c6ddb6bcaefcca1e0b8da6925ceaf8c
3
+ size 4984010512
model-00003-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:448f8642d95505e2fad2bac0bcdc1f21e7fd6cdc6abd30dae17fb37b66a5616a
3
+ size 4900112704
model-00004-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41e41db6b2b8623d09671e5836995e74b94dee1cd4b1f4c1664b1f4e97fcbcb3
3
+ size 4900104736
model-00005-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7592af4c56278ba298f49c033cbb567f6b02d114196114842aa913f34feaf03
3
+ size 4900104736
model-00006-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d467a47c4d9939c9ed280af417a9cac6f15f01828bea7cff11802d0581b56c4
3
+ size 4984010592
model-00007-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a1919cd4cdbbcc2ed9a4603b968746d66483078c24d9a864854be12db3974bab
3
+ size 4900112704
model-00008-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5a7cdb5aca6ebc2431eacba9b07b2a1f0bd2bd2263e924bc895de75b0c112bc
3
+ size 4900104736
model-00009-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c759bed69b48026bb925c9a53034515df6d4ddc44bc35f86ed5f331e0eaf281c
3
+ size 4900104736
model-00010-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd9120bafc9ee65f8301c20c448281be0552900bebc77bf62872ab51d7a60a89
3
+ size 4984010592
model-00011-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1bb58fb561001296fd3cc4ce019dd5b85b9eb74b686dcf9a8a75276f8e4ae2c5
3
+ size 4900112704
model-00012-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b38425370e12ebec09d137d157a22c8162665f5fa41fb630dacb1744c3a6bd3e
3
+ size 4900104736
model-00013-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0512faf171ebf66db61bc9f0d09e91d0b948329bbd2c81cfeae6f7cbbf762b9a
3
+ size 4900104736
model-00014-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9499800b477d6b169d62d1ec0734ceabc0c1f2dd7705d4d2861c4ffb7d60fac4
3
+ size 4984027056
model-00015-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:58d50afad1e86684eb1895080768fdd647ec0b055d10b84296ef5e307289e088
3
+ size 524288128
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
recipe.yaml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ DEFAULT_stage:
2
+ DEFAULT_modifiers:
3
+ QuantizationModifier:
4
+ ignore: [lm_head]
5
+ targets: [Linear]
6
+ scheme: FP8_DYNAMIC
special_tokens_map.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "unk_token": {
17
+ "content": "<unk>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ }
23
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": null,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ }
30
+ },
31
+ "bos_token": "<s>",
32
+ "chat_template": "{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% set system_message = false %}{% endif %}{% for message in loop_messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if loop.index0 == 0 and system_message != false %}{% set content = '<<SYS>>\\n' + system_message + '\\n<</SYS>>\\n\\n' + message['content'] %}{% else %}{% set content = message['content'] %}{% endif %}{% if message['role'] == 'user' %}{{ bos_token + '[INST] ' + content.strip() + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ ' ' + content.strip() + ' ' + eos_token }}{% endif %}{% endfor %}",
33
+ "clean_up_tokenization_spaces": false,
34
+ "eos_token": "</s>",
35
+ "legacy": false,
36
+ "model_max_length": 1000000000000000019884624838656,
37
+ "pad_token": null,
38
+ "padding_side": "right",
39
+ "sp_model_kwargs": {},
40
+ "tokenizer_class": "LlamaTokenizer",
41
+ "unk_token": "<unk>",
42
+ "use_default_system_prompt": false
43
+ }