Upload folder using huggingface_hub
Browse files- chat_template.jinja +15 -0
- config.json +104 -0
- generation_config.json +7 -0
- model.safetensors +3 -0
- recipe.yaml +22 -0
- tokenizer.json +0 -0
- tokenizer_config.json +16 -0
chat_template.jinja
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% for message in messages %}
|
| 2 |
+
{% if message['role'] == 'user' %}
|
| 3 |
+
{{ '<|user|>
|
| 4 |
+
' + message['content'] + eos_token }}
|
| 5 |
+
{% elif message['role'] == 'system' %}
|
| 6 |
+
{{ '<|system|>
|
| 7 |
+
' + message['content'] + eos_token }}
|
| 8 |
+
{% elif message['role'] == 'assistant' %}
|
| 9 |
+
{{ '<|assistant|>
|
| 10 |
+
' + message['content'] + eos_token }}
|
| 11 |
+
{% endif %}
|
| 12 |
+
{% if loop.last and add_generation_prompt %}
|
| 13 |
+
{{ '<|assistant|>' }}
|
| 14 |
+
{% endif %}
|
| 15 |
+
{% endfor %}
|
config.json
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"LlamaForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"bos_token_id": 1,
|
| 8 |
+
"dtype": "bfloat16",
|
| 9 |
+
"eos_token_id": 2,
|
| 10 |
+
"head_dim": 64,
|
| 11 |
+
"hidden_act": "silu",
|
| 12 |
+
"hidden_size": 2048,
|
| 13 |
+
"initializer_range": 0.02,
|
| 14 |
+
"intermediate_size": 5632,
|
| 15 |
+
"max_position_embeddings": 2048,
|
| 16 |
+
"mlp_bias": false,
|
| 17 |
+
"model_type": "llama",
|
| 18 |
+
"num_attention_heads": 32,
|
| 19 |
+
"num_hidden_layers": 22,
|
| 20 |
+
"num_key_value_heads": 4,
|
| 21 |
+
"pad_token_id": null,
|
| 22 |
+
"pretraining_tp": 1,
|
| 23 |
+
"quantization_config": {
|
| 24 |
+
"config_groups": {
|
| 25 |
+
"group_0": {
|
| 26 |
+
"format": "pack-quantized",
|
| 27 |
+
"input_activations": null,
|
| 28 |
+
"output_activations": null,
|
| 29 |
+
"targets": [
|
| 30 |
+
"re:.*self_attn\\.(k|q|o|v)_proj$"
|
| 31 |
+
],
|
| 32 |
+
"weights": {
|
| 33 |
+
"actorder": null,
|
| 34 |
+
"block_structure": null,
|
| 35 |
+
"dynamic": false,
|
| 36 |
+
"group_size": 128,
|
| 37 |
+
"num_bits": 4,
|
| 38 |
+
"observer": "memoryless_minmax",
|
| 39 |
+
"observer_kwargs": {},
|
| 40 |
+
"scale_dtype": null,
|
| 41 |
+
"strategy": "group",
|
| 42 |
+
"symmetric": true,
|
| 43 |
+
"type": "int",
|
| 44 |
+
"zp_dtype": null
|
| 45 |
+
}
|
| 46 |
+
},
|
| 47 |
+
"group_1": {
|
| 48 |
+
"format": "int-quantized",
|
| 49 |
+
"input_activations": {
|
| 50 |
+
"actorder": null,
|
| 51 |
+
"block_structure": null,
|
| 52 |
+
"dynamic": true,
|
| 53 |
+
"group_size": null,
|
| 54 |
+
"num_bits": 8,
|
| 55 |
+
"observer": null,
|
| 56 |
+
"observer_kwargs": {},
|
| 57 |
+
"scale_dtype": null,
|
| 58 |
+
"strategy": "token",
|
| 59 |
+
"symmetric": true,
|
| 60 |
+
"type": "int",
|
| 61 |
+
"zp_dtype": null
|
| 62 |
+
},
|
| 63 |
+
"output_activations": null,
|
| 64 |
+
"targets": [
|
| 65 |
+
"re:.*mlp\\.(down|gate|up)_proj$"
|
| 66 |
+
],
|
| 67 |
+
"weights": {
|
| 68 |
+
"actorder": null,
|
| 69 |
+
"block_structure": null,
|
| 70 |
+
"dynamic": false,
|
| 71 |
+
"group_size": null,
|
| 72 |
+
"num_bits": 8,
|
| 73 |
+
"observer": "memoryless_minmax",
|
| 74 |
+
"observer_kwargs": {},
|
| 75 |
+
"scale_dtype": null,
|
| 76 |
+
"strategy": "channel",
|
| 77 |
+
"symmetric": true,
|
| 78 |
+
"type": "int",
|
| 79 |
+
"zp_dtype": null
|
| 80 |
+
}
|
| 81 |
+
}
|
| 82 |
+
},
|
| 83 |
+
"format": "mixed-precision",
|
| 84 |
+
"global_compression_ratio": null,
|
| 85 |
+
"ignore": [
|
| 86 |
+
"lm_head"
|
| 87 |
+
],
|
| 88 |
+
"kv_cache_scheme": null,
|
| 89 |
+
"quant_method": "compressed-tensors",
|
| 90 |
+
"quantization_status": "compressed",
|
| 91 |
+
"sparsity_config": {},
|
| 92 |
+
"transform_config": {},
|
| 93 |
+
"version": "0.15.1.dev13+g1ecd2f8"
|
| 94 |
+
},
|
| 95 |
+
"rms_norm_eps": 1e-05,
|
| 96 |
+
"rope_parameters": {
|
| 97 |
+
"rope_theta": 10000.0,
|
| 98 |
+
"rope_type": "default"
|
| 99 |
+
},
|
| 100 |
+
"tie_word_embeddings": false,
|
| 101 |
+
"transformers_version": "5.8.0.dev0",
|
| 102 |
+
"use_cache": true,
|
| 103 |
+
"vocab_size": 32000
|
| 104 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 1,
|
| 3 |
+
"eos_token_id": 2,
|
| 4 |
+
"max_length": 2048,
|
| 5 |
+
"pad_token_id": 0,
|
| 6 |
+
"transformers_version": "5.8.0.dev0"
|
| 7 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5934014905b4877b8a56a94483b13d5fa41bff655db2d1918249cb964dd4cbc4
|
| 3 |
+
size 1131284624
|
recipe.yaml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
quant_stage:
|
| 2 |
+
quant_modifiers:
|
| 3 |
+
AWQModifier:
|
| 4 |
+
mappings:
|
| 5 |
+
- smooth_layer: re:.*input_layernorm$
|
| 6 |
+
balance_layers: ['re:.*q_proj$', 're:.*k_proj$', 're:.*v_proj$']
|
| 7 |
+
activation_hook_target: null
|
| 8 |
+
duo_scaling: true
|
| 9 |
+
n_grid: 20
|
| 10 |
+
QuantizationModifier:
|
| 11 |
+
targets: ['re:.*self_attn\.(k|q|o|v)_proj$']
|
| 12 |
+
ignore: [lm_head]
|
| 13 |
+
scheme: W4A16
|
| 14 |
+
bypass_divisibility_checks: false
|
| 15 |
+
GPTQModifier:
|
| 16 |
+
targets: ['re:.*mlp\.(down|gate|up)_proj$']
|
| 17 |
+
ignore: [lm_head]
|
| 18 |
+
scheme: W8A8
|
| 19 |
+
bypass_divisibility_checks: false
|
| 20 |
+
block_size: 128
|
| 21 |
+
dampening_frac: 0.001
|
| 22 |
+
offload_hessians: false
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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": false,
|
| 8 |
+
"local_files_only": false,
|
| 9 |
+
"model_max_length": 2048,
|
| 10 |
+
"pad_token": "</s>",
|
| 11 |
+
"padding_side": "right",
|
| 12 |
+
"sp_model_kwargs": {},
|
| 13 |
+
"tokenizer_class": "LlamaTokenizer",
|
| 14 |
+
"unk_token": "<unk>",
|
| 15 |
+
"use_default_system_prompt": false
|
| 16 |
+
}
|