Add files using upload-large-folder tool
Browse files- .gitattributes +1 -0
- README.md +12 -3
- config.json +1 -55
- model.safetensors +2 -2
- tokenizer.json +0 -0
- tokenizer_config.json +1 -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
|
README.md
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
---
|
2 |
-
base_model: GreenBitAI/Qwen-2.5-3B-Instruct-layer-mix-bpw-4.0
|
3 |
license: apache-2.0
|
|
|
4 |
tags:
|
5 |
- mlx
|
6 |
---
|
7 |
|
8 |
# GreenBitAI/Qwen-2.5-3B-Instruct-layer-mix-bpw-4.0-mlx
|
9 |
|
10 |
-
This quantized low-bit model [GreenBitAI/Qwen-2.5-3B-Instruct-layer-mix-bpw-4.0-mlx](https://huggingface.co/GreenBitAI/Qwen-2.5-3B-Instruct-layer-mix-bpw-4.0-mlx) was converted to MLX format from [`GreenBitAI/Qwen-2.5-3B-Instruct-layer-mix-bpw-4.0`](https://huggingface.co/GreenBitAI/Qwen-2.5-3B-Instruct-layer-mix-bpw-4.0) using gbx-lm version **0.
|
11 |
Refer to the [original model card](https://huggingface.co/GreenBitAI/Qwen-2.5-3B-Instruct-layer-mix-bpw-4.0) for more details on the model.
|
12 |
|
13 |
## Use with mlx
|
@@ -20,5 +20,14 @@ pip install gbx-lm
|
|
20 |
from gbx_lm import load, generate
|
21 |
|
22 |
model, tokenizer = load("GreenBitAI/Qwen-2.5-3B-Instruct-layer-mix-bpw-4.0-mlx")
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
```
|
|
|
1 |
---
|
|
|
2 |
license: apache-2.0
|
3 |
+
base_model: GreenBitAI/Qwen-2.5-3B-Instruct-layer-mix-bpw-4.0
|
4 |
tags:
|
5 |
- mlx
|
6 |
---
|
7 |
|
8 |
# GreenBitAI/Qwen-2.5-3B-Instruct-layer-mix-bpw-4.0-mlx
|
9 |
|
10 |
+
This quantized low-bit model [GreenBitAI/Qwen-2.5-3B-Instruct-layer-mix-bpw-4.0-mlx](https://huggingface.co/GreenBitAI/Qwen-2.5-3B-Instruct-layer-mix-bpw-4.0-mlx) was converted to MLX format from [`GreenBitAI/Qwen-2.5-3B-Instruct-layer-mix-bpw-4.0`](https://huggingface.co/GreenBitAI/Qwen-2.5-3B-Instruct-layer-mix-bpw-4.0) using gbx-lm version **0.4.0**.
|
11 |
Refer to the [original model card](https://huggingface.co/GreenBitAI/Qwen-2.5-3B-Instruct-layer-mix-bpw-4.0) for more details on the model.
|
12 |
|
13 |
## Use with mlx
|
|
|
20 |
from gbx_lm import load, generate
|
21 |
|
22 |
model, tokenizer = load("GreenBitAI/Qwen-2.5-3B-Instruct-layer-mix-bpw-4.0-mlx")
|
23 |
+
|
24 |
+
prompt = "hello"
|
25 |
+
|
26 |
+
if tokenizer.chat_template is not None:
|
27 |
+
messages = [{"role": "user", "content": prompt}]
|
28 |
+
prompt = tokenizer.apply_chat_template(
|
29 |
+
messages, add_generation_prompt=True
|
30 |
+
)
|
31 |
+
|
32 |
+
response = generate(model, tokenizer, prompt=prompt, verbose=True)
|
33 |
```
|
config.json
CHANGED
@@ -1,84 +1,30 @@
|
|
1 |
{
|
2 |
-
"add_cross_attention": false,
|
3 |
"architectures": [
|
4 |
"Qwen2ForCausalLM"
|
5 |
],
|
6 |
"attention_dropout": 0.0,
|
7 |
-
"bad_words_ids": null,
|
8 |
-
"begin_suppress_tokens": null,
|
9 |
"bos_token_id": 151643,
|
10 |
-
"chunk_size_feed_forward": 0,
|
11 |
-
"cross_attention_hidden_size": null,
|
12 |
-
"decoder_start_token_id": null,
|
13 |
-
"diversity_penalty": 0.0,
|
14 |
-
"do_sample": false,
|
15 |
-
"early_stopping": false,
|
16 |
-
"encoder_no_repeat_ngram_size": 0,
|
17 |
"eos_token_id": 151645,
|
18 |
-
"exponential_decay_length_penalty": null,
|
19 |
-
"finetuning_task": null,
|
20 |
-
"forced_bos_token_id": null,
|
21 |
-
"forced_eos_token_id": null,
|
22 |
"hidden_act": "silu",
|
23 |
"hidden_size": 2048,
|
24 |
-
"id2label": {
|
25 |
-
"0": "LABEL_0",
|
26 |
-
"1": "LABEL_1"
|
27 |
-
},
|
28 |
"initializer_range": 0.02,
|
29 |
"intermediate_size": 11008,
|
30 |
-
"is_decoder": false,
|
31 |
-
"is_encoder_decoder": false,
|
32 |
-
"label2id": {
|
33 |
-
"LABEL_0": 0,
|
34 |
-
"LABEL_1": 1
|
35 |
-
},
|
36 |
-
"length_penalty": 1.0,
|
37 |
-
"max_length": 20,
|
38 |
"max_position_embeddings": 32768,
|
39 |
"max_window_layers": 70,
|
40 |
-
"min_length": 0,
|
41 |
"model_type": "qwen2",
|
42 |
-
"no_repeat_ngram_size": 0,
|
43 |
"num_attention_heads": 16,
|
44 |
-
"num_beam_groups": 1,
|
45 |
-
"num_beams": 1,
|
46 |
"num_hidden_layers": 36,
|
47 |
"num_key_value_heads": 2,
|
48 |
-
"num_return_sequences": 1,
|
49 |
-
"output_attentions": false,
|
50 |
-
"output_hidden_states": false,
|
51 |
-
"output_scores": false,
|
52 |
-
"pad_token_id": null,
|
53 |
-
"prefix": null,
|
54 |
-
"problem_type": null,
|
55 |
-
"pruned_heads": {},
|
56 |
"quantization": {
|
57 |
"group_size": null,
|
58 |
"bits": null
|
59 |
},
|
60 |
-
"remove_invalid_values": false,
|
61 |
-
"repetition_penalty": 1.0,
|
62 |
-
"return_dict": true,
|
63 |
-
"return_dict_in_generate": false,
|
64 |
"rms_norm_eps": 1e-06,
|
65 |
"rope_theta": 1000000.0,
|
66 |
-
"sep_token_id": null,
|
67 |
"sliding_window": null,
|
68 |
-
"suppress_tokens": null,
|
69 |
-
"task_specific_params": null,
|
70 |
-
"temperature": 1.0,
|
71 |
-
"tf_legacy_loss": false,
|
72 |
-
"tie_encoder_decoder": false,
|
73 |
"tie_word_embeddings": true,
|
74 |
-
"tokenizer_class": null,
|
75 |
-
"top_k": 50,
|
76 |
-
"top_p": 1.0,
|
77 |
"torch_dtype": "float16",
|
78 |
-
"
|
79 |
-
"transformers_version": "4.44.0",
|
80 |
-
"typical_p": 1.0,
|
81 |
-
"use_bfloat16": false,
|
82 |
"use_cache": true,
|
83 |
"use_sliding_window": false,
|
84 |
"vocab_size": 151936
|
|
|
1 |
{
|
|
|
2 |
"architectures": [
|
3 |
"Qwen2ForCausalLM"
|
4 |
],
|
5 |
"attention_dropout": 0.0,
|
|
|
|
|
6 |
"bos_token_id": 151643,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
"eos_token_id": 151645,
|
|
|
|
|
|
|
|
|
8 |
"hidden_act": "silu",
|
9 |
"hidden_size": 2048,
|
|
|
|
|
|
|
|
|
10 |
"initializer_range": 0.02,
|
11 |
"intermediate_size": 11008,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
"max_position_embeddings": 32768,
|
13 |
"max_window_layers": 70,
|
|
|
14 |
"model_type": "qwen2",
|
|
|
15 |
"num_attention_heads": 16,
|
|
|
|
|
16 |
"num_hidden_layers": 36,
|
17 |
"num_key_value_heads": 2,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
"quantization": {
|
19 |
"group_size": null,
|
20 |
"bits": null
|
21 |
},
|
|
|
|
|
|
|
|
|
22 |
"rms_norm_eps": 1e-06,
|
23 |
"rope_theta": 1000000.0,
|
|
|
24 |
"sliding_window": null,
|
|
|
|
|
|
|
|
|
|
|
25 |
"tie_word_embeddings": true,
|
|
|
|
|
|
|
26 |
"torch_dtype": "float16",
|
27 |
+
"transformers_version": "4.43.4",
|
|
|
|
|
|
|
28 |
"use_cache": true,
|
29 |
"use_sliding_window": false,
|
30 |
"vocab_size": 151936
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:78ce0de008185d935a4a7191e3505a1389eaf5a730238a8dd5b812668400bc1e
|
3 |
+
size 2099384433
|
tokenizer.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
CHANGED
@@ -199,6 +199,7 @@
|
|
199 |
"clean_up_tokenization_spaces": false,
|
200 |
"eos_token": "<|im_end|>",
|
201 |
"errors": "replace",
|
|
|
202 |
"model_max_length": 131072,
|
203 |
"pad_token": "<|endoftext|>",
|
204 |
"split_special_tokens": false,
|
|
|
199 |
"clean_up_tokenization_spaces": false,
|
200 |
"eos_token": "<|im_end|>",
|
201 |
"errors": "replace",
|
202 |
+
"extra_special_tokens": {},
|
203 |
"model_max_length": 131072,
|
204 |
"pad_token": "<|endoftext|>",
|
205 |
"split_special_tokens": false,
|