Upload config.json with huggingface_hub
Browse files- config.json +84 -0
config.json
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "/data-fast/swiftkv-8b-prod/",
|
3 |
+
"architectures": [
|
4 |
+
"LlamaSwiftKVForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_bias": false,
|
7 |
+
"attention_dropout": 0.0,
|
8 |
+
"bos_token_id": 128000,
|
9 |
+
"eos_token_id": [
|
10 |
+
128001,
|
11 |
+
128008,
|
12 |
+
128009
|
13 |
+
],
|
14 |
+
"hidden_act": "silu",
|
15 |
+
"hidden_size": 4096,
|
16 |
+
"initializer_range": 0.02,
|
17 |
+
"intermediate_size": 14336,
|
18 |
+
"key_value_group_size": 1,
|
19 |
+
"max_position_embeddings": 131072,
|
20 |
+
"mlp_bias": false,
|
21 |
+
"model_type": "llama_swiftkv",
|
22 |
+
"num_attention_heads": 32,
|
23 |
+
"num_hidden_layers": 32,
|
24 |
+
"num_key_value_heads": 8,
|
25 |
+
"num_key_value_layers": 16,
|
26 |
+
"pretraining_tp": 1,
|
27 |
+
"quantization_config": {
|
28 |
+
"config_groups": {
|
29 |
+
"group_0": {
|
30 |
+
"input_activations": {
|
31 |
+
"actorder": null,
|
32 |
+
"block_structure": null,
|
33 |
+
"dynamic": true,
|
34 |
+
"group_size": null,
|
35 |
+
"num_bits": 8,
|
36 |
+
"observer": null,
|
37 |
+
"observer_kwargs": {},
|
38 |
+
"strategy": "token",
|
39 |
+
"symmetric": true,
|
40 |
+
"type": "float"
|
41 |
+
},
|
42 |
+
"output_activations": null,
|
43 |
+
"targets": [
|
44 |
+
"Linear"
|
45 |
+
],
|
46 |
+
"weights": {
|
47 |
+
"actorder": null,
|
48 |
+
"block_structure": null,
|
49 |
+
"dynamic": false,
|
50 |
+
"group_size": null,
|
51 |
+
"num_bits": 8,
|
52 |
+
"observer": "minmax",
|
53 |
+
"observer_kwargs": {},
|
54 |
+
"strategy": "channel",
|
55 |
+
"symmetric": true,
|
56 |
+
"type": "float"
|
57 |
+
}
|
58 |
+
}
|
59 |
+
},
|
60 |
+
"format": "float-quantized",
|
61 |
+
"global_compression_ratio": 2.014836000728121,
|
62 |
+
"ignore": [
|
63 |
+
"lm_head"
|
64 |
+
],
|
65 |
+
"kv_cache_scheme": null,
|
66 |
+
"quant_method": "compressed-tensors",
|
67 |
+
"quantization_status": "compressed"
|
68 |
+
},
|
69 |
+
"rms_norm_eps": 1e-05,
|
70 |
+
"rope_scaling": {
|
71 |
+
"factor": 8.0,
|
72 |
+
"high_freq_factor": 4.0,
|
73 |
+
"low_freq_factor": 1.0,
|
74 |
+
"original_max_position_embeddings": 8192,
|
75 |
+
"rope_type": "llama3"
|
76 |
+
},
|
77 |
+
"rope_theta": 500000.0,
|
78 |
+
"swiftkv": true,
|
79 |
+
"tie_word_embeddings": false,
|
80 |
+
"torch_dtype": "float32",
|
81 |
+
"transformers_version": "4.44.2",
|
82 |
+
"use_cache": true,
|
83 |
+
"vocab_size": 128256
|
84 |
+
}
|