Upload folder using huggingface_hub
Browse files- compressed_config.json +28 -0
- config.json +32 -0
- extra_artifacts/act_scales.pt +3 -0
- generation_config.json +10 -0
- model.safetensors +3 -0
- reload_metrics.json +32 -0
- tokenizer.json +0 -0
- tokenizer_config.json +13 -0
compressed_config.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format": "mindpipe_hf_save_pretrained_debug",
|
| 3 |
+
"algorithm": "smoothquant",
|
| 4 |
+
"model_path": "/mnt/82_store/LLM-weights/Llama-2-7b-hf",
|
| 5 |
+
"result_dir": "/mnt/82_store/wxx/HWQuant/Mindpipe/results/Llama-2-7b-hf/smoothquant/smoothquant_w8a8_seq512_alpha0p85",
|
| 6 |
+
"weight_bits": 8,
|
| 7 |
+
"activation_bits": 8,
|
| 8 |
+
"sequence_length": 512,
|
| 9 |
+
"group_size": 128,
|
| 10 |
+
"output_dir": "/mnt/82_store/wxx/HWQuant/Mindpipe/tmp_hf_save/Llama-2-7b-hf-SmoothQuant-w8a8/_pre_save_workflow",
|
| 11 |
+
"pre_save_metrics": {
|
| 12 |
+
"perplexity": 6.480299961179449,
|
| 13 |
+
"evaluation_dataset": "wikitext2",
|
| 14 |
+
"sequence_length": 512,
|
| 15 |
+
"evaluated_chunks": 4,
|
| 16 |
+
"batch_size": 1,
|
| 17 |
+
"elapsed_seconds": 1.3628588523715734,
|
| 18 |
+
"tokens_per_second": 1499.7884751184185,
|
| 19 |
+
"model_path": "/mnt/82_store/LLM-weights/Llama-2-7b-hf",
|
| 20 |
+
"quantization_algorithm": "smoothquant",
|
| 21 |
+
"weight_bits": 8,
|
| 22 |
+
"activation_bits": 8,
|
| 23 |
+
"device": "cuda:0",
|
| 24 |
+
"dtype": "float16",
|
| 25 |
+
"artifacts_path": "artifacts.json"
|
| 26 |
+
},
|
| 27 |
+
"load_note": "Use MindPipe to rebuild the compression structure before loading the HF state dict."
|
| 28 |
+
}
|
config.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"LlamaForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"bos_token_id": 1,
|
| 8 |
+
"dtype": "float16",
|
| 9 |
+
"eos_token_id": 2,
|
| 10 |
+
"head_dim": 128,
|
| 11 |
+
"hidden_act": "silu",
|
| 12 |
+
"hidden_size": 4096,
|
| 13 |
+
"initializer_range": 0.02,
|
| 14 |
+
"intermediate_size": 11008,
|
| 15 |
+
"max_position_embeddings": 4096,
|
| 16 |
+
"mlp_bias": false,
|
| 17 |
+
"model_type": "llama",
|
| 18 |
+
"num_attention_heads": 32,
|
| 19 |
+
"num_hidden_layers": 32,
|
| 20 |
+
"num_key_value_heads": 32,
|
| 21 |
+
"pad_token_id": 0,
|
| 22 |
+
"pretraining_tp": 1,
|
| 23 |
+
"rms_norm_eps": 1e-05,
|
| 24 |
+
"rope_parameters": {
|
| 25 |
+
"rope_theta": 10000.0,
|
| 26 |
+
"rope_type": "default"
|
| 27 |
+
},
|
| 28 |
+
"tie_word_embeddings": false,
|
| 29 |
+
"transformers_version": "5.5.2",
|
| 30 |
+
"use_cache": false,
|
| 31 |
+
"vocab_size": 32000
|
| 32 |
+
}
|
extra_artifacts/act_scales.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2e3c6023f407f6b4d5ad0a8204558be314f8aec2851a65d2ccadfc1decb0ee8c
|
| 3 |
+
size 4623921
|
generation_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 1,
|
| 4 |
+
"do_sample": true,
|
| 5 |
+
"eos_token_id": 2,
|
| 6 |
+
"pad_token_id": 0,
|
| 7 |
+
"temperature": 0.9,
|
| 8 |
+
"top_p": 0.6,
|
| 9 |
+
"transformers_version": "5.5.2"
|
| 10 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bd242f7204fbea2b193c17e4771592815f468112dd74e6b57a4a349d98d6b628
|
| 3 |
+
size 13476864944
|
reload_metrics.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"perplexity": 6.480299961179449,
|
| 3 |
+
"evaluation_dataset": "wikitext2",
|
| 4 |
+
"sequence_length": 512,
|
| 5 |
+
"evaluated_chunks": 4,
|
| 6 |
+
"batch_size": 1,
|
| 7 |
+
"elapsed_seconds": 0.5743283228948712,
|
| 8 |
+
"tokens_per_second": 3558.9399277704556,
|
| 9 |
+
"ppl_comparison": {
|
| 10 |
+
"checked": true,
|
| 11 |
+
"passed": true,
|
| 12 |
+
"pre_save_ppl": 6.480299961179449,
|
| 13 |
+
"reload_ppl": 6.480299961179449,
|
| 14 |
+
"abs_diff": 0.0,
|
| 15 |
+
"rel_diff": 0.0,
|
| 16 |
+
"abs_tol": 0.0001,
|
| 17 |
+
"rel_tol": 1e-05
|
| 18 |
+
},
|
| 19 |
+
"original_ppl_comparison": {
|
| 20 |
+
"checked": true,
|
| 21 |
+
"passed": false,
|
| 22 |
+
"original_result_ppl": 7.168461910124875,
|
| 23 |
+
"pre_save_ppl": 6.480299961179449,
|
| 24 |
+
"reload_ppl": 6.480299961179449,
|
| 25 |
+
"pre_abs_diff": 0.6881619489454254,
|
| 26 |
+
"pre_rel_diff": 0.0959985499781274,
|
| 27 |
+
"reload_abs_diff": 0.6881619489454254,
|
| 28 |
+
"reload_rel_diff": 0.0959985499781274,
|
| 29 |
+
"abs_tol": 0.0001,
|
| 30 |
+
"rel_tol": 1e-05
|
| 31 |
+
}
|
| 32 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": null,
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"bos_token": "<s>",
|
| 5 |
+
"clean_up_tokenization_spaces": false,
|
| 6 |
+
"eos_token": "</s>",
|
| 7 |
+
"is_local": true,
|
| 8 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 9 |
+
"pad_token": "</s>",
|
| 10 |
+
"tokenizer_class": "LlamaTokenizer",
|
| 11 |
+
"unk_token": "<unk>",
|
| 12 |
+
"use_default_system_prompt": false
|
| 13 |
+
}
|