Upload folder using huggingface_hub
Browse files- compressed_config.json +28 -0
- config.json +32 -0
- extra_artifacts/splitquant_parameters.pth +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": "splitquant",
|
| 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/splitquant/splitquant_w8a8_q16k4v4_seq512",
|
| 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-SplitQuant-w8a8g128/_pre_save_workflow",
|
| 11 |
+
"pre_save_metrics": {
|
| 12 |
+
"perplexity": 6.51941537010925,
|
| 13 |
+
"evaluation_dataset": "wikitext2",
|
| 14 |
+
"sequence_length": 512,
|
| 15 |
+
"evaluated_chunks": 4,
|
| 16 |
+
"batch_size": 1,
|
| 17 |
+
"elapsed_seconds": 6.370283376425505,
|
| 18 |
+
"tokens_per_second": 320.86484685504365,
|
| 19 |
+
"model_path": "/mnt/82_store/LLM-weights/Llama-2-7b-hf",
|
| 20 |
+
"quantization_algorithm": "splitquant",
|
| 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/splitquant_parameters.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f014732148fbdef16df593ff5d0c0dbed97e3c3dada0a93c0c3c6db5d1c33e80
|
| 3 |
+
size 1052945335
|
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:23fd81994ea92862e69d2e30d9a08527f76f2c014dcb1c0eee6369cd02a2288a
|
| 3 |
+
size 14524606512
|
reload_metrics.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"perplexity": 6.51941537010925,
|
| 3 |
+
"evaluation_dataset": "wikitext2",
|
| 4 |
+
"sequence_length": 512,
|
| 5 |
+
"evaluated_chunks": 4,
|
| 6 |
+
"batch_size": 1,
|
| 7 |
+
"elapsed_seconds": 4.911469958722591,
|
| 8 |
+
"tokens_per_second": 416.1686861934136,
|
| 9 |
+
"ppl_comparison": {
|
| 10 |
+
"checked": true,
|
| 11 |
+
"passed": true,
|
| 12 |
+
"pre_save_ppl": 6.51941537010925,
|
| 13 |
+
"reload_ppl": 6.51941537010925,
|
| 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.174429928880771,
|
| 23 |
+
"pre_save_ppl": 6.51941537010925,
|
| 24 |
+
"reload_ppl": 6.51941537010925,
|
| 25 |
+
"pre_abs_diff": 0.655014558771521,
|
| 26 |
+
"pre_rel_diff": 0.09129848158872532,
|
| 27 |
+
"reload_abs_diff": 0.655014558771521,
|
| 28 |
+
"reload_rel_diff": 0.09129848158872532,
|
| 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 |
+
}
|