Upload folder using huggingface_hub
Browse files- chat_template.jinja +15 -0
- config.json +75 -0
- generation_config.json +7 -0
- model.safetensors +3 -0
- recipe.yaml +45 -0
- special_tokens_map.json +30 -0
- tokenizer.json +0 -0
- tokenizer_config.json +43 -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,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
"pretraining_tp": 1,
|
| 22 |
+
"quantization_config": {
|
| 23 |
+
"config_groups": {
|
| 24 |
+
"group_0": {
|
| 25 |
+
"format": "int-quantized",
|
| 26 |
+
"input_activations": {
|
| 27 |
+
"actorder": null,
|
| 28 |
+
"block_structure": null,
|
| 29 |
+
"dynamic": false,
|
| 30 |
+
"group_size": null,
|
| 31 |
+
"num_bits": 8,
|
| 32 |
+
"observer": "minmax",
|
| 33 |
+
"observer_kwargs": {},
|
| 34 |
+
"strategy": "tensor",
|
| 35 |
+
"symmetric": false,
|
| 36 |
+
"type": "int"
|
| 37 |
+
},
|
| 38 |
+
"output_activations": null,
|
| 39 |
+
"targets": [
|
| 40 |
+
"Linear"
|
| 41 |
+
],
|
| 42 |
+
"weights": {
|
| 43 |
+
"actorder": null,
|
| 44 |
+
"block_structure": null,
|
| 45 |
+
"dynamic": false,
|
| 46 |
+
"group_size": null,
|
| 47 |
+
"num_bits": 8,
|
| 48 |
+
"observer": "minmax",
|
| 49 |
+
"observer_kwargs": {},
|
| 50 |
+
"strategy": "channel",
|
| 51 |
+
"symmetric": true,
|
| 52 |
+
"type": "int"
|
| 53 |
+
}
|
| 54 |
+
}
|
| 55 |
+
},
|
| 56 |
+
"format": "int-quantized",
|
| 57 |
+
"global_compression_ratio": null,
|
| 58 |
+
"ignore": [
|
| 59 |
+
"lm_head"
|
| 60 |
+
],
|
| 61 |
+
"kv_cache_scheme": null,
|
| 62 |
+
"quant_method": "compressed-tensors",
|
| 63 |
+
"quantization_status": "compressed",
|
| 64 |
+
"sparsity_config": {},
|
| 65 |
+
"transform_config": {},
|
| 66 |
+
"version": "0.12.3.a20251023"
|
| 67 |
+
},
|
| 68 |
+
"rms_norm_eps": 1e-05,
|
| 69 |
+
"rope_scaling": null,
|
| 70 |
+
"rope_theta": 10000.0,
|
| 71 |
+
"tie_word_embeddings": false,
|
| 72 |
+
"transformers_version": "4.57.1",
|
| 73 |
+
"use_cache": true,
|
| 74 |
+
"vocab_size": 32000
|
| 75 |
+
}
|
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": "4.57.1"
|
| 7 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c161a0468286094289751c77e6633bde379f4d5587108cef6bff81f7caf601c
|
| 3 |
+
size 1232076790
|
recipe.yaml
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
quant_stage:
|
| 2 |
+
quant_modifiers:
|
| 3 |
+
SmoothQuantModifier:
|
| 4 |
+
smoothing_strength: 0.8
|
| 5 |
+
mappings:
|
| 6 |
+
- !!python/tuple
|
| 7 |
+
- ['re:.*q_proj', 're:.*k_proj', 're:.*v_proj']
|
| 8 |
+
- re:.*input_layernorm
|
| 9 |
+
- !!python/tuple
|
| 10 |
+
- ['re:.*gate_proj', 're:.*up_proj']
|
| 11 |
+
- re:.*post_attention_layernorm
|
| 12 |
+
ignore: []
|
| 13 |
+
GPTQModifier:
|
| 14 |
+
config_groups:
|
| 15 |
+
group_0:
|
| 16 |
+
targets: [Linear]
|
| 17 |
+
weights:
|
| 18 |
+
num_bits: 8
|
| 19 |
+
type: int
|
| 20 |
+
symmetric: true
|
| 21 |
+
group_size: null
|
| 22 |
+
strategy: channel
|
| 23 |
+
block_structure: null
|
| 24 |
+
dynamic: false
|
| 25 |
+
actorder: null
|
| 26 |
+
observer: minmax
|
| 27 |
+
observer_kwargs: {}
|
| 28 |
+
input_activations:
|
| 29 |
+
num_bits: 8
|
| 30 |
+
type: int
|
| 31 |
+
symmetric: false
|
| 32 |
+
group_size: null
|
| 33 |
+
strategy: tensor
|
| 34 |
+
block_structure: null
|
| 35 |
+
dynamic: false
|
| 36 |
+
actorder: null
|
| 37 |
+
observer: minmax
|
| 38 |
+
observer_kwargs: {}
|
| 39 |
+
output_activations: null
|
| 40 |
+
format: null
|
| 41 |
+
targets: [Linear]
|
| 42 |
+
ignore: [lm_head]
|
| 43 |
+
block_size: 128
|
| 44 |
+
dampening_frac: 0.01
|
| 45 |
+
offload_hessians: false
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
"pad_token": {
|
| 17 |
+
"content": "</s>",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
},
|
| 23 |
+
"unk_token": {
|
| 24 |
+
"content": "<unk>",
|
| 25 |
+
"lstrip": false,
|
| 26 |
+
"normalized": false,
|
| 27 |
+
"rstrip": false,
|
| 28 |
+
"single_word": false
|
| 29 |
+
}
|
| 30 |
+
}
|
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 |
+
"clean_up_tokenization_spaces": false,
|
| 33 |
+
"eos_token": "</s>",
|
| 34 |
+
"extra_special_tokens": {},
|
| 35 |
+
"legacy": false,
|
| 36 |
+
"model_max_length": 2048,
|
| 37 |
+
"pad_token": "</s>",
|
| 38 |
+
"padding_side": "right",
|
| 39 |
+
"sp_model_kwargs": {},
|
| 40 |
+
"tokenizer_class": "LlamaTokenizer",
|
| 41 |
+
"unk_token": "<unk>",
|
| 42 |
+
"use_default_system_prompt": false
|
| 43 |
+
}
|