Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- Nemotron-Mini-4B-Instruct/README.md +18 -0
- Nemotron-Mini-4B-Instruct/gguf/Nemotron-Mini-4B-Instruct-Q4_K_M.gguf +3 -0
- Nemotron-Mini-4B-Instruct/onnx-webgpu/chat_template.jinja +15 -0
- Nemotron-Mini-4B-Instruct/onnx-webgpu/genai_config.json +56 -0
- Nemotron-Mini-4B-Instruct/onnx-webgpu/model.onnx +3 -0
- Nemotron-Mini-4B-Instruct/onnx-webgpu/model.onnx.data +3 -0
- Nemotron-Mini-4B-Instruct/onnx-webgpu/special_tokens_map.json +16 -0
- Nemotron-Mini-4B-Instruct/onnx-webgpu/tokenizer.json +3 -0
- Nemotron-Mini-4B-Instruct/onnx-webgpu/tokenizer_config.json +0 -0
.gitattributes
CHANGED
|
@@ -52,3 +52,4 @@ internlm2_5-7b-chat/onnx-webgpu/tokenizer.json filter=lfs diff=lfs merge=lfs -te
|
|
| 52 |
Ministral-8B-Instruct-2410/onnx-webgpu/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 53 |
Mistral-Nemo-Instruct-2407/onnx-webgpu/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 54 |
Nemotron-Cascade-8B-Thinking/onnx-webgpu/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 52 |
Ministral-8B-Instruct-2410/onnx-webgpu/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 53 |
Mistral-Nemo-Instruct-2407/onnx-webgpu/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 54 |
Nemotron-Cascade-8B-Thinking/onnx-webgpu/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
Nemotron-Mini-4B-Instruct/onnx-webgpu/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
Nemotron-Mini-4B-Instruct/README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Nemotron-Mini-4B-Instruct
|
| 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 nvidia/Nemotron-Mini-4B-Instruct -o E:\ai-models\Nemotron-Mini-4B-Instruct\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: [bartowski/Nemotron-Mini-4B-Instruct-GGUF](https://huggingface.co/bartowski/Nemotron-Mini-4B-Instruct-GGUF)
|
Nemotron-Mini-4B-Instruct/gguf/Nemotron-Mini-4B-Instruct-Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2bf02846dbd45e9580b9338b90505fb54e00d185713d4b7f06699e2d5d298e48
|
| 3 |
+
size 2697387072
|
Nemotron-Mini-4B-Instruct/onnx-webgpu/chat_template.jinja
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{{'<extra_id_0>System'}}{% for message in messages %}{% if message['role'] == 'system' %}{{'
|
| 2 |
+
' + message['content'].strip()}}{% if tools or contexts %}{{'
|
| 3 |
+
'}}{% endif %}{% endif %}{% endfor %}{% if tools %}{% for tool in tools %}{{ '
|
| 4 |
+
<tool> ' + tool|tojson + ' </tool>' }}{% endfor %}{% endif %}{% if contexts %}{% if tools %}{{'
|
| 5 |
+
'}}{% endif %}{% for context in contexts %}{{ '
|
| 6 |
+
<context> ' + context.strip() + ' </context>' }}{% endfor %}{% endif %}{{'
|
| 7 |
+
|
| 8 |
+
'}}{% for message in messages %}{% if message['role'] == 'user' %}{{ '<extra_id_1>User
|
| 9 |
+
' + message['content'].strip() + '
|
| 10 |
+
' }}{% elif message['role'] == 'assistant' %}{{ '<extra_id_1>Assistant
|
| 11 |
+
' + message['content'].strip() + '
|
| 12 |
+
' }}{% elif message['role'] == 'tool' %}{{ '<extra_id_1>Tool
|
| 13 |
+
' + message['content'].strip() + '
|
| 14 |
+
' }}{% endif %}{% endfor %}{%- if add_generation_prompt %}{{'<extra_id_1>Assistant
|
| 15 |
+
'}}{%- endif %}
|
Nemotron-Mini-4B-Instruct/onnx-webgpu/genai_config.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": {
|
| 3 |
+
"bos_token_id": 2,
|
| 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": 3072,
|
| 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": 24,
|
| 32 |
+
"num_hidden_layers": 32,
|
| 33 |
+
"num_key_value_heads": 8
|
| 34 |
+
},
|
| 35 |
+
"eos_token_id": 3,
|
| 36 |
+
"pad_token_id": 3,
|
| 37 |
+
"type": "nemotron",
|
| 38 |
+
"vocab_size": 256000
|
| 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 |
+
}
|
Nemotron-Mini-4B-Instruct/onnx-webgpu/model.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2becca11c638013c21c32001302d6bf7e3ea831ed437e8a9d39ad38f86a1da0f
|
| 3 |
+
size 218430
|
Nemotron-Mini-4B-Instruct/onnx-webgpu/model.onnx.data
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aefe0e1fa2a4a783179e5fa0585344c7a7c995f4a84703e7a0e19db2005d81c2
|
| 3 |
+
size 3882024960
|
Nemotron-Mini-4B-Instruct/onnx-webgpu/special_tokens_map.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
}
|
Nemotron-Mini-4B-Instruct/onnx-webgpu/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:91fd32f29cfeb8fee9535681f551697b066992c9d950d810651801be24f39e93
|
| 3 |
+
size 34809710
|
Nemotron-Mini-4B-Instruct/onnx-webgpu/tokenizer_config.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|