zecanard commited on
Commit
cf6dfe1
·
verified ·
1 Parent(s): bad39b6

Add files using upload-large-folder tool

Browse files
Files changed (3) hide show
  1. README.md +3 -3
  2. chat_template.jinja +2 -11
  3. config.json +18 -0
README.md CHANGED
@@ -18,7 +18,7 @@ tags:
18
  ---
19
  # 🦆 zecanard/gemma-4-31B-it-uncensored-abliterix-MLX-2bit-mixed_2_6
20
 
21
- [This model](https://huggingface.co/zecanard/gemma-4-31B-it-uncensored-abliterix-MLX-2bit-mixed_2_6) was converted to MLX from [`wangzhang/gemma-4-31B-it-abliterated`](https://huggingface.co/wangzhang/gemma-4-31B-it-abliterated) using `mlx-vlm` version **0.5.0**.
22
  Please refer to the [original model card](https://huggingface.co/wangzhang/gemma-4-31B-it-abliterated) for more details.
23
 
24
  ## 🌟 Quality
@@ -29,11 +29,11 @@ Mixed-precision quantized vision language model with an effective **3.449 bits p
29
 
30
  ## 🛠️ Customizations
31
 
32
- This quant is aware of the current date, and also enables thinking (if available). You may disable this behavior by deleting the following line from the chat template, or changing `true` to `false`:
33
 
34
  `{%- set enable_thinking = true %}`
35
 
36
- You may also need to adjust your environment’s **Reasoning Section Parsing** to recognize `<|channel>thought` as the **Start String**, and `<channel|>` as the **End String**.
37
 
38
  ## 🖥️ Use with `mlx`
39
 
 
18
  ---
19
  # 🦆 zecanard/gemma-4-31B-it-uncensored-abliterix-MLX-2bit-mixed_2_6
20
 
21
+ [This model](https://huggingface.co/zecanard/gemma-4-31B-it-uncensored-abliterix-MLX-2bit-mixed_2_6) was converted to MLX from [`wangzhang/gemma-4-31B-it-abliterated`](https://huggingface.co/wangzhang/gemma-4-31B-it-abliterated) using `mlx-vlm` version **0.6.3**.
22
  Please refer to the [original model card](https://huggingface.co/wangzhang/gemma-4-31B-it-abliterated) for more details.
23
 
24
  ## 🌟 Quality
 
29
 
30
  ## 🛠️ Customizations
31
 
32
+ This quant includes a bugfix for tools calling. It is aware of the current date, and also enables thinking (if available). You may disable this behavior by deleting the following line from the chat template, or changing `true` to `false`:
33
 
34
  `{%- set enable_thinking = true %}`
35
 
36
+ You may need to adjust your environment’s **Reasoning Section Parsing** to recognize `<|channel>thought` as the **Start String**, and `<channel|>` as the **End String**.
37
 
38
  ## 🖥️ Use with `mlx`
39
 
chat_template.jinja CHANGED
@@ -4,7 +4,7 @@
4
  {%- if strftime_now is defined %}
5
  {%- set currentDate = strftime_now('%Y-%m-%d %G:%i:%s') %}
6
  {%- elif not currentDate is defined %}
7
- {%- set currentDate = '2026-05-22' %}
8
  {%- endif %}
9
  {{- 'The current date is: ' + currentDate + ".\n\n" }}
10
  {#- Template customizations by @zecanard. #}
@@ -319,15 +319,6 @@
319
  {%- endif -%}
320
  {%- endfor -%}
321
  {{- format_tool_response_block(ns_tname.name, ns_txt.s) -}}
322
- {%- for part in tool_body -%}
323
- {%- if part.get('type') == 'image' -%}
324
- {{- '<|image|>' -}}
325
- {%- elif part.get('type') == 'audio' -%}
326
- {{- '<|audio|>' -}}
327
- {%- elif part.get('type') == 'video' -%}
328
- {{- '<|video|>' -}}
329
- {%- endif -%}
330
- {%- endfor -%}
331
  {%- else -%}
332
  {{- format_tool_response_block(ns_tname.name, tool_body) -}}
333
  {%- endif -%}
@@ -384,4 +375,4 @@
384
  {{- '<|channel>thought\n<channel|>' -}}
385
  {%- endif -%}
386
  {%- endif -%}
387
- {%- endif -%}
 
4
  {%- if strftime_now is defined %}
5
  {%- set currentDate = strftime_now('%Y-%m-%d %G:%i:%s') %}
6
  {%- elif not currentDate is defined %}
7
+ {%- set currentDate = '2026-06-12' %}
8
  {%- endif %}
9
  {{- 'The current date is: ' + currentDate + ".\n\n" }}
10
  {#- Template customizations by @zecanard. #}
 
319
  {%- endif -%}
320
  {%- endfor -%}
321
  {{- format_tool_response_block(ns_tname.name, ns_txt.s) -}}
 
 
 
 
 
 
 
 
 
322
  {%- else -%}
323
  {{- format_tool_response_block(ns_tname.name, tool_body) -}}
324
  {%- endif -%}
 
375
  {{- '<|channel>thought\n<channel|>' -}}
376
  {%- endif -%}
377
  {%- endif -%}
378
+ {%- endif -%}
config.json CHANGED
@@ -6,6 +6,7 @@
6
  "audio_token_id": 258881,
7
  "boa_token_id": 256000,
8
  "boi_token_id": 255999,
 
9
  "dtype": "bfloat16",
10
  "eoa_token_id": 258883,
11
  "eoa_token_index": 258883,
@@ -15,6 +16,20 @@
15
  106,
16
  50
17
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  "image_token_id": 258880,
19
  "initializer_range": 0.02,
20
  "model_type": "gemma4",
@@ -3324,6 +3339,7 @@
3324
  "bits": 2
3325
  }
3326
  },
 
3327
  "text_config": {
3328
  "attention_bias": false,
3329
  "attention_dropout": 0.0,
@@ -3435,6 +3451,8 @@
3435
  "vocab_size_per_layer_input": 262144
3436
  },
3437
  "tie_word_embeddings": true,
 
 
3438
  "transformers_version": "5.6.2",
3439
  "video_token_id": 258884,
3440
  "vision_config": {
 
6
  "audio_token_id": 258881,
7
  "boa_token_id": 256000,
8
  "boi_token_id": 255999,
9
+ "do_sample": true,
10
  "dtype": "bfloat16",
11
  "eoa_token_id": 258883,
12
  "eoa_token_index": 258883,
 
16
  106,
17
  50
18
  ],
19
+ "generation_config": {
20
+ "bos_token_id": 2,
21
+ "do_sample": true,
22
+ "eos_token_id": [
23
+ 1,
24
+ 106,
25
+ 50
26
+ ],
27
+ "pad_token_id": 0,
28
+ "temperature": 1.0,
29
+ "top_k": 64,
30
+ "top_p": 0.95,
31
+ "transformers_version": "5.6.2"
32
+ },
33
  "image_token_id": 258880,
34
  "initializer_range": 0.02,
35
  "model_type": "gemma4",
 
3339
  "bits": 2
3340
  }
3341
  },
3342
+ "temperature": 1.0,
3343
  "text_config": {
3344
  "attention_bias": false,
3345
  "attention_dropout": 0.0,
 
3451
  "vocab_size_per_layer_input": 262144
3452
  },
3453
  "tie_word_embeddings": true,
3454
+ "top_k": 64,
3455
+ "top_p": 0.95,
3456
  "transformers_version": "5.6.2",
3457
  "video_token_id": 258884,
3458
  "vision_config": {