Upload 8 files
Browse files- .gitattributes +1 -0
- chat_template.jinja +4 -0
- config.json +80 -0
- generation_config.json +8 -0
- model.safetensors.index.json +0 -0
- recipe.yaml +36 -0
- special_tokens_map.json +33 -0
- tokenizer.json +3 -0
- tokenizer_config.json +0 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in messages %}{{'<|im_start|>' + message['role'] + '
|
| 2 |
+
' + message['content'] + '<|im_end|>' + '
|
| 3 |
+
'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
|
| 4 |
+
' }}{% endif %}
|
config.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"MistralForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_dropout": 0.0,
|
| 6 |
+
"bos_token_id": 1,
|
| 7 |
+
"dtype": "bfloat16",
|
| 8 |
+
"eos_token_id": 131072,
|
| 9 |
+
"head_dim": 128,
|
| 10 |
+
"hidden_act": "silu",
|
| 11 |
+
"hidden_size": 5120,
|
| 12 |
+
"initializer_range": 0.02,
|
| 13 |
+
"intermediate_size": 14336,
|
| 14 |
+
"max_position_embeddings": 131072,
|
| 15 |
+
"model_type": "mistral",
|
| 16 |
+
"num_attention_heads": 32,
|
| 17 |
+
"num_hidden_layers": 40,
|
| 18 |
+
"num_key_value_heads": 8,
|
| 19 |
+
"pad_token_id": 10,
|
| 20 |
+
"quantization_config": {
|
| 21 |
+
"config_groups": {
|
| 22 |
+
"group_0": {
|
| 23 |
+
"format": "nvfp4-pack-quantized",
|
| 24 |
+
"input_activations": {
|
| 25 |
+
"actorder": null,
|
| 26 |
+
"block_structure": null,
|
| 27 |
+
"dynamic": "local",
|
| 28 |
+
"group_size": 16,
|
| 29 |
+
"num_bits": 4,
|
| 30 |
+
"observer": "static_minmax",
|
| 31 |
+
"observer_kwargs": {},
|
| 32 |
+
"scale_dtype": "torch.float8_e4m3fn",
|
| 33 |
+
"strategy": "tensor_group",
|
| 34 |
+
"symmetric": true,
|
| 35 |
+
"type": "float",
|
| 36 |
+
"zp_dtype": null
|
| 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": 16,
|
| 47 |
+
"num_bits": 4,
|
| 48 |
+
"observer": "memoryless_mse",
|
| 49 |
+
"observer_kwargs": {
|
| 50 |
+
"grid": -2.0,
|
| 51 |
+
"maxshrink": -1.0
|
| 52 |
+
},
|
| 53 |
+
"scale_dtype": "torch.float8_e4m3fn",
|
| 54 |
+
"strategy": "tensor_group",
|
| 55 |
+
"symmetric": true,
|
| 56 |
+
"type": "float",
|
| 57 |
+
"zp_dtype": null
|
| 58 |
+
}
|
| 59 |
+
}
|
| 60 |
+
},
|
| 61 |
+
"format": "nvfp4-pack-quantized",
|
| 62 |
+
"global_compression_ratio": null,
|
| 63 |
+
"ignore": [
|
| 64 |
+
"lm_head"
|
| 65 |
+
],
|
| 66 |
+
"kv_cache_scheme": null,
|
| 67 |
+
"quant_method": "compressed-tensors",
|
| 68 |
+
"quantization_status": "compressed",
|
| 69 |
+
"sparsity_config": {},
|
| 70 |
+
"transform_config": {},
|
| 71 |
+
"version": "0.13.0"
|
| 72 |
+
},
|
| 73 |
+
"rms_norm_eps": 1e-05,
|
| 74 |
+
"rope_theta": 1000000.0,
|
| 75 |
+
"sliding_window": null,
|
| 76 |
+
"tie_word_embeddings": false,
|
| 77 |
+
"transformers_version": "4.57.3",
|
| 78 |
+
"use_cache": false,
|
| 79 |
+
"vocab_size": 131074
|
| 80 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 1,
|
| 4 |
+
"do_sample": true,
|
| 5 |
+
"eos_token_id": 131072,
|
| 6 |
+
"pad_token_id": 10,
|
| 7 |
+
"transformers_version": "4.57.3"
|
| 8 |
+
}
|
model.safetensors.index.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
recipe.yaml
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
default_stage:
|
| 2 |
+
default_modifiers:
|
| 3 |
+
QuantizationModifier:
|
| 4 |
+
config_groups:
|
| 5 |
+
group_0:
|
| 6 |
+
targets: [Linear]
|
| 7 |
+
weights:
|
| 8 |
+
num_bits: 4
|
| 9 |
+
type: float
|
| 10 |
+
symmetric: true
|
| 11 |
+
group_size: 16
|
| 12 |
+
strategy: tensor_group
|
| 13 |
+
block_structure: null
|
| 14 |
+
dynamic: false
|
| 15 |
+
actorder: null
|
| 16 |
+
scale_dtype: torch.float8_e4m3fn
|
| 17 |
+
zp_dtype: null
|
| 18 |
+
observer: memoryless_mse
|
| 19 |
+
observer_kwargs: {maxshrink: -1.0, grid: -2.0}
|
| 20 |
+
input_activations:
|
| 21 |
+
num_bits: 4
|
| 22 |
+
type: float
|
| 23 |
+
symmetric: true
|
| 24 |
+
group_size: 16
|
| 25 |
+
strategy: tensor_group
|
| 26 |
+
block_structure: null
|
| 27 |
+
dynamic: local
|
| 28 |
+
actorder: null
|
| 29 |
+
scale_dtype: torch.float8_e4m3fn
|
| 30 |
+
zp_dtype: null
|
| 31 |
+
observer: static_minmax
|
| 32 |
+
observer_kwargs: {}
|
| 33 |
+
output_activations: null
|
| 34 |
+
format: null
|
| 35 |
+
targets: [Linear]
|
| 36 |
+
ignore: [lm_head]
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"additional_special_tokens": [
|
| 3 |
+
"<|im_start|>"
|
| 4 |
+
],
|
| 5 |
+
"bos_token": {
|
| 6 |
+
"content": "<s>",
|
| 7 |
+
"lstrip": false,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false
|
| 11 |
+
},
|
| 12 |
+
"eos_token": {
|
| 13 |
+
"content": "<|im_end|>",
|
| 14 |
+
"lstrip": false,
|
| 15 |
+
"normalized": false,
|
| 16 |
+
"rstrip": false,
|
| 17 |
+
"single_word": false
|
| 18 |
+
},
|
| 19 |
+
"pad_token": {
|
| 20 |
+
"content": "<pad>",
|
| 21 |
+
"lstrip": false,
|
| 22 |
+
"normalized": false,
|
| 23 |
+
"rstrip": false,
|
| 24 |
+
"single_word": false
|
| 25 |
+
},
|
| 26 |
+
"unk_token": {
|
| 27 |
+
"content": "<unk>",
|
| 28 |
+
"lstrip": false,
|
| 29 |
+
"normalized": false,
|
| 30 |
+
"rstrip": false,
|
| 31 |
+
"single_word": false
|
| 32 |
+
}
|
| 33 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a2fa2956478eaa353c6c4b1f47fdd6868cce6075e52e169c35ae8bd28524e7a8
|
| 3 |
+
size 17078668
|
tokenizer_config.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|