Upload folder using huggingface_hub
Browse files- SOLAR-10.7B-Instruct-v1.0/README.md +18 -0
- SOLAR-10.7B-Instruct-v1.0/gguf/solar-10.7b-instruct-v1.0.Q4_K_M.gguf +3 -0
- SOLAR-10.7B-Instruct-v1.0/onnx-webgpu/chat_template.jinja +9 -0
- SOLAR-10.7B-Instruct-v1.0/onnx-webgpu/genai_config.json +56 -0
- SOLAR-10.7B-Instruct-v1.0/onnx-webgpu/model.onnx +3 -0
- SOLAR-10.7B-Instruct-v1.0/onnx-webgpu/model.onnx.data +3 -0
- SOLAR-10.7B-Instruct-v1.0/onnx-webgpu/special_tokens_map.json +30 -0
- SOLAR-10.7B-Instruct-v1.0/onnx-webgpu/tokenizer.json +0 -0
- SOLAR-10.7B-Instruct-v1.0/onnx-webgpu/tokenizer.model +3 -0
- SOLAR-10.7B-Instruct-v1.0/onnx-webgpu/tokenizer_config.json +44 -0
SOLAR-10.7B-Instruct-v1.0/README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SOLAR-10.7B-Instruct-v1.0
|
| 2 |
+
|
| 3 |
+
## GenAI WebGPU Model
|
| 4 |
+
|
| 5 |
+
Generated using `onnxruntime_genai.models.builder`
|
| 6 |
+
|
| 7 |
+
- **onnxruntime-genai commit**: `41c4ce18fec1240c2f848725e31fbe8854010188`
|
| 8 |
+
- **transformers version**: `4.57.0`
|
| 9 |
+
- **Precision**: int4
|
| 10 |
+
- **Execution Provider**: webgpu
|
| 11 |
+
|
| 12 |
+
```
|
| 13 |
+
python -m onnxruntime_genai.models.builder -p int4 -e webgpu -m upstage/SOLAR-10.7B-Instruct-v1.0 -o E:\ai-models\SOLAR-10.7B-Instruct-v1.0\onnx-webgpu\ --extra_options int4_algo_config=rtn_last int4_is_symmetric=true prune_lm_head=true enable_webgpu_graph=true
|
| 14 |
+
```
|
| 15 |
+
|
| 16 |
+
## GGUF Model
|
| 17 |
+
|
| 18 |
+
Downloaded from: [TheBloke/SOLAR-10.7B-Instruct-v1.0-GGUF](https://huggingface.co/TheBloke/SOLAR-10.7B-Instruct-v1.0-GGUF)
|
SOLAR-10.7B-Instruct-v1.0/gguf/solar-10.7b-instruct-v1.0.Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0f0a4bd237c1ccecabc3c85d08da6e1b9e667942f5117993d0c93149e08ba745
|
| 3 |
+
size 6461667936
|
SOLAR-10.7B-Instruct-v1.0/onnx-webgpu/chat_template.jinja
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% for message in messages %}{% if message['role'] == 'system' %}{% if message['content']%}{{'### System:
|
| 2 |
+
' + message['content']+'
|
| 3 |
+
|
| 4 |
+
'}}{% endif %}{% elif message['role'] == 'user' %}{{'### User:
|
| 5 |
+
' + message['content']+'
|
| 6 |
+
|
| 7 |
+
'}}{% elif message['role'] == 'assistant' %}{{'### Assistant:
|
| 8 |
+
' + message['content']}}{% endif %}{% if loop.last and add_generation_prompt %}{{ '### Assistant:
|
| 9 |
+
' }}{% endif %}{% endfor %}
|
SOLAR-10.7B-Instruct-v1.0/onnx-webgpu/genai_config.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": {
|
| 3 |
+
"bos_token_id": 1,
|
| 4 |
+
"context_length": 4096,
|
| 5 |
+
"decoder": {
|
| 6 |
+
"session_options": {
|
| 7 |
+
"log_id": "onnxruntime-genai",
|
| 8 |
+
"provider_options": [
|
| 9 |
+
{
|
| 10 |
+
"webgpu": {
|
| 11 |
+
"enableGraphCapture": "0",
|
| 12 |
+
"validationMode": "disabled"
|
| 13 |
+
}
|
| 14 |
+
}
|
| 15 |
+
]
|
| 16 |
+
},
|
| 17 |
+
"filename": "model.onnx",
|
| 18 |
+
"head_size": 128,
|
| 19 |
+
"hidden_size": 4096,
|
| 20 |
+
"inputs": {
|
| 21 |
+
"input_ids": "input_ids",
|
| 22 |
+
"attention_mask": "attention_mask",
|
| 23 |
+
"past_key_names": "past_key_values.%d.key",
|
| 24 |
+
"past_value_names": "past_key_values.%d.value"
|
| 25 |
+
},
|
| 26 |
+
"outputs": {
|
| 27 |
+
"logits": "logits",
|
| 28 |
+
"present_key_names": "present.%d.key",
|
| 29 |
+
"present_value_names": "present.%d.value"
|
| 30 |
+
},
|
| 31 |
+
"num_attention_heads": 32,
|
| 32 |
+
"num_hidden_layers": 48,
|
| 33 |
+
"num_key_value_heads": 8
|
| 34 |
+
},
|
| 35 |
+
"eos_token_id": 2,
|
| 36 |
+
"pad_token_id": 2,
|
| 37 |
+
"type": "llama",
|
| 38 |
+
"vocab_size": 32000
|
| 39 |
+
},
|
| 40 |
+
"search": {
|
| 41 |
+
"diversity_penalty": 0,
|
| 42 |
+
"do_sample": false,
|
| 43 |
+
"early_stopping": true,
|
| 44 |
+
"length_penalty": 1,
|
| 45 |
+
"max_length": 4096,
|
| 46 |
+
"min_length": 0,
|
| 47 |
+
"no_repeat_ngram_size": 0,
|
| 48 |
+
"num_beams": 1,
|
| 49 |
+
"num_return_sequences": 1,
|
| 50 |
+
"past_present_share_buffer": true,
|
| 51 |
+
"repetition_penalty": 1,
|
| 52 |
+
"temperature": 1,
|
| 53 |
+
"top_k": 50,
|
| 54 |
+
"top_p": 1
|
| 55 |
+
}
|
| 56 |
+
}
|
SOLAR-10.7B-Instruct-v1.0/onnx-webgpu/model.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:908564c7efb9655edfaae54a6112bcc8e1d151b33ecee7c164ea5b42d75b19fc
|
| 3 |
+
size 360152
|
SOLAR-10.7B-Instruct-v1.0/onnx-webgpu/model.onnx.data
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:582ce083750ba497fabb1768a41ae0a65dfaafc68d975c4465c5293fc407c16d
|
| 3 |
+
size 6292111360
|
SOLAR-10.7B-Instruct-v1.0/onnx-webgpu/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 |
+
}
|
SOLAR-10.7B-Instruct-v1.0/onnx-webgpu/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
SOLAR-10.7B-Instruct-v1.0/onnx-webgpu/tokenizer.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
|
| 3 |
+
size 493443
|
SOLAR-10.7B-Instruct-v1.0/onnx-webgpu/tokenizer_config.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
"additional_special_tokens": [],
|
| 32 |
+
"bos_token": "<s>",
|
| 33 |
+
"clean_up_tokenization_spaces": false,
|
| 34 |
+
"eos_token": "</s>",
|
| 35 |
+
"extra_special_tokens": {},
|
| 36 |
+
"legacy": true,
|
| 37 |
+
"model_max_length": 4096,
|
| 38 |
+
"pad_token": "</s>",
|
| 39 |
+
"sp_model_kwargs": {},
|
| 40 |
+
"spaces_between_special_tokens": false,
|
| 41 |
+
"tokenizer_class": "LlamaTokenizer",
|
| 42 |
+
"unk_token": "<unk>",
|
| 43 |
+
"use_default_system_prompt": true
|
| 44 |
+
}
|