Text Generation
MLX
Safetensors
Transformers
English
Chinese
gemma4_unified
image-text-to-text
humanizer
text-rewriting
rewriting
paraphrase
style-transfer
llama.cpp
gemma4
6-bit
Instructions to use guygrigsby/humanizer-12b-mlx-6bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use guygrigsby/humanizer-12b-mlx-6bit with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # if on a CUDA device, also pip install mlx[cuda] # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("guygrigsby/humanizer-12b-mlx-6bit") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - Transformers
How to use guygrigsby/humanizer-12b-mlx-6bit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="guygrigsby/humanizer-12b-mlx-6bit")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("guygrigsby/humanizer-12b-mlx-6bit") model = AutoModelForMultimodalLM.from_pretrained("guygrigsby/humanizer-12b-mlx-6bit", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- vLLM
How to use guygrigsby/humanizer-12b-mlx-6bit with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "guygrigsby/humanizer-12b-mlx-6bit" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "guygrigsby/humanizer-12b-mlx-6bit", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/guygrigsby/humanizer-12b-mlx-6bit
- SGLang
How to use guygrigsby/humanizer-12b-mlx-6bit with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "guygrigsby/humanizer-12b-mlx-6bit" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "guygrigsby/humanizer-12b-mlx-6bit", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "guygrigsby/humanizer-12b-mlx-6bit" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "guygrigsby/humanizer-12b-mlx-6bit", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - MLX LM
How to use guygrigsby/humanizer-12b-mlx-6bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "guygrigsby/humanizer-12b-mlx-6bit" --prompt "Once upon a time"
- Docker Model Runner
How to use guygrigsby/humanizer-12b-mlx-6bit with Docker Model Runner:
docker model run hf.co/guygrigsby/humanizer-12b-mlx-6bit
- Atomic Chat
Add files using upload-large-folder tool
Browse files- .gitattributes +20 -0
- README.md +22 -0
- assets/app-en.png +3 -0
- assets/app-showcase-en.png +3 -0
- assets/app-showcase-zh.png +3 -0
- assets/app-zh.png +3 -0
- assets/banner-en.png +3 -0
- assets/banner-zh.png +3 -0
- assets/compare-en-email.png +3 -0
- assets/compare-en-forum.png +3 -0
- assets/compare-zh-email.png +3 -0
- assets/compare-zh-zhihu.png +3 -0
- assets/eval-en.png +3 -0
- assets/eval-zh.png +3 -0
- assets/quant-top1-en.png +3 -0
- assets/results-detector-en.png +3 -0
- assets/results-detector-zh.png +3 -0
- assets/results-fidelity-en.png +3 -0
- assets/results-fidelity-zh.png +3 -0
- assets/training-en.png +3 -0
- assets/training-zh.png +3 -0
- config.json +194 -0
- generation_config.json +14 -0
- model-00001-of-00002.safetensors +3 -0
- model-00002-of-00002.safetensors +3 -0
- model.safetensors.index.json +0 -0
- processor_config.json +40 -0
- prompt_format.json +8 -0
- tokenizer.json +3 -0
- tokenizer_config.json +55 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,23 @@ 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
|
| 37 |
+
assets/results-detector-en.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
assets/training-zh.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
assets/compare-en-forum.png filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
assets/app-showcase-zh.png filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
assets/banner-zh.png filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
assets/compare-en-email.png filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
assets/compare-zh-zhihu.png filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
assets/training-en.png filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
assets/results-detector-zh.png filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
assets/banner-en.png filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
assets/app-showcase-en.png filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
assets/results-fidelity-en.png filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
assets/compare-zh-email.png filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
assets/eval-zh.png filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
assets/app-en.png filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
assets/quant-top1-en.png filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
assets/app-zh.png filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
assets/eval-en.png filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
assets/results-fidelity-zh.png filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: jialinyyzz/humanizer
|
| 4 |
+
base_model_relation: finetune
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
- zh
|
| 8 |
+
pipeline_tag: text-generation
|
| 9 |
+
library_name: mlx
|
| 10 |
+
tags:
|
| 11 |
+
- humanizer
|
| 12 |
+
- transformers
|
| 13 |
+
- safetensors
|
| 14 |
+
- text-rewriting
|
| 15 |
+
- rewriting
|
| 16 |
+
- paraphrase
|
| 17 |
+
- style-transfer
|
| 18 |
+
- gguf
|
| 19 |
+
- llama.cpp
|
| 20 |
+
- gemma4
|
| 21 |
+
- mlx
|
| 22 |
+
---
|
assets/app-en.png
ADDED
|
Git LFS Details
|
assets/app-showcase-en.png
ADDED
|
Git LFS Details
|
assets/app-showcase-zh.png
ADDED
|
Git LFS Details
|
assets/app-zh.png
ADDED
|
Git LFS Details
|
assets/banner-en.png
ADDED
|
Git LFS Details
|
assets/banner-zh.png
ADDED
|
Git LFS Details
|
assets/compare-en-email.png
ADDED
|
Git LFS Details
|
assets/compare-en-forum.png
ADDED
|
Git LFS Details
|
assets/compare-zh-email.png
ADDED
|
Git LFS Details
|
assets/compare-zh-zhihu.png
ADDED
|
Git LFS Details
|
assets/eval-en.png
ADDED
|
Git LFS Details
|
assets/eval-zh.png
ADDED
|
Git LFS Details
|
assets/quant-top1-en.png
ADDED
|
Git LFS Details
|
assets/results-detector-en.png
ADDED
|
Git LFS Details
|
assets/results-detector-zh.png
ADDED
|
Git LFS Details
|
assets/results-fidelity-en.png
ADDED
|
Git LFS Details
|
assets/results-fidelity-zh.png
ADDED
|
Git LFS Details
|
assets/training-en.png
ADDED
|
Git LFS Details
|
assets/training-zh.png
ADDED
|
Git LFS Details
|
config.json
ADDED
|
@@ -0,0 +1,194 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Gemma4UnifiedForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"audio_config": {
|
| 6 |
+
"_name_or_path": "",
|
| 7 |
+
"architectures": null,
|
| 8 |
+
"audio_embed_dim": 640,
|
| 9 |
+
"chunk_size_feed_forward": 0,
|
| 10 |
+
"dtype": "bfloat16",
|
| 11 |
+
"id2label": {
|
| 12 |
+
"0": "LABEL_0",
|
| 13 |
+
"1": "LABEL_1"
|
| 14 |
+
},
|
| 15 |
+
"initializer_range": 0.02,
|
| 16 |
+
"is_encoder_decoder": false,
|
| 17 |
+
"label2id": {
|
| 18 |
+
"LABEL_0": 0,
|
| 19 |
+
"LABEL_1": 1
|
| 20 |
+
},
|
| 21 |
+
"model_type": "gemma4_unified_audio",
|
| 22 |
+
"output_attentions": false,
|
| 23 |
+
"output_hidden_states": false,
|
| 24 |
+
"problem_type": null,
|
| 25 |
+
"return_dict": true,
|
| 26 |
+
"rms_norm_eps": 1e-06
|
| 27 |
+
},
|
| 28 |
+
"audio_token_id": 258881,
|
| 29 |
+
"boa_token_id": 256000,
|
| 30 |
+
"boi_token_id": 255999,
|
| 31 |
+
"do_sample": true,
|
| 32 |
+
"dtype": "bfloat16",
|
| 33 |
+
"eoa_token_index": 258883,
|
| 34 |
+
"eoi_token_id": 258882,
|
| 35 |
+
"eos_token_id": 1,
|
| 36 |
+
"generation_config": {
|
| 37 |
+
"bos_token_id": 2,
|
| 38 |
+
"do_sample": true,
|
| 39 |
+
"eos_token_id": 1,
|
| 40 |
+
"pad_token_id": 0,
|
| 41 |
+
"suppress_tokens": [
|
| 42 |
+
258883,
|
| 43 |
+
258882
|
| 44 |
+
],
|
| 45 |
+
"temperature": 1.0,
|
| 46 |
+
"top_k": 64,
|
| 47 |
+
"top_p": 0.95,
|
| 48 |
+
"transformers_version": "5.14.1"
|
| 49 |
+
},
|
| 50 |
+
"image_token_id": 258880,
|
| 51 |
+
"initializer_range": 0.02,
|
| 52 |
+
"model_type": "gemma4_unified",
|
| 53 |
+
"quantization": {
|
| 54 |
+
"group_size": 64,
|
| 55 |
+
"bits": 6,
|
| 56 |
+
"mode": "affine"
|
| 57 |
+
},
|
| 58 |
+
"quantization_config": {
|
| 59 |
+
"group_size": 64,
|
| 60 |
+
"bits": 6,
|
| 61 |
+
"mode": "affine"
|
| 62 |
+
},
|
| 63 |
+
"temperature": 1.0,
|
| 64 |
+
"text_config": {
|
| 65 |
+
"attention_bias": false,
|
| 66 |
+
"attention_dropout": 0.0,
|
| 67 |
+
"attention_k_eq_v": true,
|
| 68 |
+
"bos_token_id": 2,
|
| 69 |
+
"dtype": "bfloat16",
|
| 70 |
+
"enable_moe_block": false,
|
| 71 |
+
"eos_token_id": 1,
|
| 72 |
+
"final_logit_softcapping": 30.0,
|
| 73 |
+
"global_head_dim": 512,
|
| 74 |
+
"head_dim": 256,
|
| 75 |
+
"hidden_activation": "gelu_pytorch_tanh",
|
| 76 |
+
"hidden_size": 3840,
|
| 77 |
+
"hidden_size_per_layer_input": 0,
|
| 78 |
+
"initializer_range": 0.02,
|
| 79 |
+
"intermediate_size": 15360,
|
| 80 |
+
"layer_types": [
|
| 81 |
+
"sliding_attention",
|
| 82 |
+
"sliding_attention",
|
| 83 |
+
"sliding_attention",
|
| 84 |
+
"sliding_attention",
|
| 85 |
+
"sliding_attention",
|
| 86 |
+
"full_attention",
|
| 87 |
+
"sliding_attention",
|
| 88 |
+
"sliding_attention",
|
| 89 |
+
"sliding_attention",
|
| 90 |
+
"sliding_attention",
|
| 91 |
+
"sliding_attention",
|
| 92 |
+
"full_attention",
|
| 93 |
+
"sliding_attention",
|
| 94 |
+
"sliding_attention",
|
| 95 |
+
"sliding_attention",
|
| 96 |
+
"sliding_attention",
|
| 97 |
+
"sliding_attention",
|
| 98 |
+
"full_attention",
|
| 99 |
+
"sliding_attention",
|
| 100 |
+
"sliding_attention",
|
| 101 |
+
"sliding_attention",
|
| 102 |
+
"sliding_attention",
|
| 103 |
+
"sliding_attention",
|
| 104 |
+
"full_attention",
|
| 105 |
+
"sliding_attention",
|
| 106 |
+
"sliding_attention",
|
| 107 |
+
"sliding_attention",
|
| 108 |
+
"sliding_attention",
|
| 109 |
+
"sliding_attention",
|
| 110 |
+
"full_attention",
|
| 111 |
+
"sliding_attention",
|
| 112 |
+
"sliding_attention",
|
| 113 |
+
"sliding_attention",
|
| 114 |
+
"sliding_attention",
|
| 115 |
+
"sliding_attention",
|
| 116 |
+
"full_attention",
|
| 117 |
+
"sliding_attention",
|
| 118 |
+
"sliding_attention",
|
| 119 |
+
"sliding_attention",
|
| 120 |
+
"sliding_attention",
|
| 121 |
+
"sliding_attention",
|
| 122 |
+
"full_attention",
|
| 123 |
+
"sliding_attention",
|
| 124 |
+
"sliding_attention",
|
| 125 |
+
"sliding_attention",
|
| 126 |
+
"sliding_attention",
|
| 127 |
+
"sliding_attention",
|
| 128 |
+
"full_attention"
|
| 129 |
+
],
|
| 130 |
+
"max_position_embeddings": 262144,
|
| 131 |
+
"model_type": "gemma4_unified_text",
|
| 132 |
+
"moe_intermediate_size": null,
|
| 133 |
+
"num_attention_heads": 16,
|
| 134 |
+
"num_experts": null,
|
| 135 |
+
"num_global_key_value_heads": 1,
|
| 136 |
+
"num_hidden_layers": 48,
|
| 137 |
+
"num_key_value_heads": 8,
|
| 138 |
+
"num_kv_shared_layers": 0,
|
| 139 |
+
"pad_token_id": 0,
|
| 140 |
+
"rms_norm_eps": 1e-06,
|
| 141 |
+
"rope_parameters": {
|
| 142 |
+
"full_attention": {
|
| 143 |
+
"partial_rotary_factor": 0.25,
|
| 144 |
+
"rope_theta": 1000000.0,
|
| 145 |
+
"rope_type": "proportional"
|
| 146 |
+
},
|
| 147 |
+
"sliding_attention": {
|
| 148 |
+
"rope_theta": 10000.0,
|
| 149 |
+
"rope_type": "default"
|
| 150 |
+
}
|
| 151 |
+
},
|
| 152 |
+
"sliding_window": 1024,
|
| 153 |
+
"tie_word_embeddings": true,
|
| 154 |
+
"top_k_experts": null,
|
| 155 |
+
"use_bidirectional_attention": "vision",
|
| 156 |
+
"use_cache": true,
|
| 157 |
+
"use_double_wide_mlp": false,
|
| 158 |
+
"vocab_size": 262144,
|
| 159 |
+
"vocab_size_per_layer_input": 262144
|
| 160 |
+
},
|
| 161 |
+
"tie_word_embeddings": true,
|
| 162 |
+
"top_k": 64,
|
| 163 |
+
"top_p": 0.95,
|
| 164 |
+
"transformers_version": "5.14.1",
|
| 165 |
+
"video_token_id": 258884,
|
| 166 |
+
"vision_config": {
|
| 167 |
+
"_name_or_path": "",
|
| 168 |
+
"architectures": null,
|
| 169 |
+
"chunk_size_feed_forward": 0,
|
| 170 |
+
"dtype": "bfloat16",
|
| 171 |
+
"id2label": {
|
| 172 |
+
"0": "LABEL_0",
|
| 173 |
+
"1": "LABEL_1"
|
| 174 |
+
},
|
| 175 |
+
"initializer_range": 0.02,
|
| 176 |
+
"is_encoder_decoder": false,
|
| 177 |
+
"label2id": {
|
| 178 |
+
"LABEL_0": 0,
|
| 179 |
+
"LABEL_1": 1
|
| 180 |
+
},
|
| 181 |
+
"mm_embed_dim": 3840,
|
| 182 |
+
"mm_posemb_size": 1120,
|
| 183 |
+
"model_type": "gemma4_unified_vision",
|
| 184 |
+
"num_soft_tokens": 280,
|
| 185 |
+
"output_attentions": false,
|
| 186 |
+
"output_hidden_states": false,
|
| 187 |
+
"output_proj_dims": 3840,
|
| 188 |
+
"patch_size": 16,
|
| 189 |
+
"pooling_kernel_size": 3,
|
| 190 |
+
"problem_type": null,
|
| 191 |
+
"return_dict": true,
|
| 192 |
+
"rms_norm_eps": 1e-06
|
| 193 |
+
}
|
| 194 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 2,
|
| 3 |
+
"do_sample": true,
|
| 4 |
+
"eos_token_id": 1,
|
| 5 |
+
"pad_token_id": 0,
|
| 6 |
+
"suppress_tokens": [
|
| 7 |
+
258883,
|
| 8 |
+
258882
|
| 9 |
+
],
|
| 10 |
+
"temperature": 1.0,
|
| 11 |
+
"top_k": 64,
|
| 12 |
+
"top_p": 0.95,
|
| 13 |
+
"transformers_version": "5.14.1"
|
| 14 |
+
}
|
model-00001-of-00002.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4422000decee0a924c8d1eab1c3198393f93eff3a5496cbc02313905960eadab
|
| 3 |
+
size 5333109347
|
model-00002-of-00002.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:12e14aa8465a285017eb93dd00b41ce228aa8a5ad90cb266b5676cc68de2fde3
|
| 3 |
+
size 4395511990
|
model.safetensors.index.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
processor_config.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"image_processor": {
|
| 3 |
+
"do_convert_rgb": true,
|
| 4 |
+
"do_normalize": false,
|
| 5 |
+
"do_rescale": true,
|
| 6 |
+
"do_resize": true,
|
| 7 |
+
"image_mean": [
|
| 8 |
+
0.5,
|
| 9 |
+
0.5,
|
| 10 |
+
0.5
|
| 11 |
+
],
|
| 12 |
+
"image_processor_type": "Gemma4UnifiedImageProcessor",
|
| 13 |
+
"image_std": [
|
| 14 |
+
0.5,
|
| 15 |
+
0.5,
|
| 16 |
+
0.5
|
| 17 |
+
],
|
| 18 |
+
"max_soft_tokens": 280,
|
| 19 |
+
"model_patch_size": 48,
|
| 20 |
+
"patch_size": 16,
|
| 21 |
+
"pooling_kernel_size": 3,
|
| 22 |
+
"resample": 3,
|
| 23 |
+
"rescale_factor": 0.00392156862745098,
|
| 24 |
+
"size": {
|
| 25 |
+
"height": 224,
|
| 26 |
+
"width": 224
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
"processor_class": "Gemma4UnifiedProcessor",
|
| 30 |
+
"feature_extractor": {
|
| 31 |
+
"feature_extractor_type": "Gemma4UnifiedAudioFeatureExtractor",
|
| 32 |
+
"sampling_rate": 16000,
|
| 33 |
+
"num_mel_filters": 128,
|
| 34 |
+
"fft_length": 512,
|
| 35 |
+
"hop_length": 160,
|
| 36 |
+
"chunk_duration": 8.0,
|
| 37 |
+
"overlap_duration": 1.0
|
| 38 |
+
},
|
| 39 |
+
"audio_ms_per_token": 40
|
| 40 |
+
}
|
prompt_format.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"style": "legacy",
|
| 3 |
+
"sep": "\n\n### Rewritten:\n\n",
|
| 4 |
+
"fingerprint": "cc51d66b4c593fbe",
|
| 5 |
+
"instr": "Rewrite the text below so it reads like a person wrote it, not a language model.\n\nReorganize it as you see fit. Vary sentence length on purpose. Cut hedging,\nthroat-clearing, and any sentence that only announces what comes next.\nPrefer the concrete word over the abstract one. It is fine to sound uneven.\n\nEvery fact, number, unit, date, name and quotation must survive unchanged.",
|
| 6 |
+
"chat": false,
|
| 7 |
+
"note": "推理时需 instr + draft + sep"
|
| 8 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:12bac982b793c44b03d52a250a9f0d0b666813da566b910c24a6da0695fd11e6
|
| 3 |
+
size 32170070
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"audio_token": "<|audio|>",
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"boa_token": "<|audio>",
|
| 5 |
+
"boi_token": "<|image>",
|
| 6 |
+
"bos_token": "<bos>",
|
| 7 |
+
"eoa_token": "<audio|>",
|
| 8 |
+
"eoc_token": "<channel|>",
|
| 9 |
+
"eoi_token": "<image|>",
|
| 10 |
+
"eos_token": "<eos>",
|
| 11 |
+
"eot_token": "<turn|>",
|
| 12 |
+
"escape_token": "<|\"|>",
|
| 13 |
+
"etc_token": "<tool_call|>",
|
| 14 |
+
"etd_token": "<tool|>",
|
| 15 |
+
"etr_token": "<tool_response|>",
|
| 16 |
+
"extra_special_tokens": [
|
| 17 |
+
"<|video|>"
|
| 18 |
+
],
|
| 19 |
+
"image_token": "<|image|>",
|
| 20 |
+
"is_local": true,
|
| 21 |
+
"local_files_only": true,
|
| 22 |
+
"mask_token": "<mask>",
|
| 23 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 24 |
+
"model_specific_special_tokens": {
|
| 25 |
+
"audio_token": "<|audio|>",
|
| 26 |
+
"boa_token": "<|audio>",
|
| 27 |
+
"boi_token": "<|image>",
|
| 28 |
+
"eoa_token": "<audio|>",
|
| 29 |
+
"eoc_token": "<channel|>",
|
| 30 |
+
"eoi_token": "<image|>",
|
| 31 |
+
"eot_token": "<turn|>",
|
| 32 |
+
"escape_token": "<|\"|>",
|
| 33 |
+
"etc_token": "<tool_call|>",
|
| 34 |
+
"etd_token": "<tool|>",
|
| 35 |
+
"etr_token": "<tool_response|>",
|
| 36 |
+
"image_token": "<|image|>",
|
| 37 |
+
"soc_token": "<|channel>",
|
| 38 |
+
"sot_token": "<|turn>",
|
| 39 |
+
"stc_token": "<|tool_call>",
|
| 40 |
+
"std_token": "<|tool>",
|
| 41 |
+
"str_token": "<|tool_response>",
|
| 42 |
+
"think_token": "<|think|>"
|
| 43 |
+
},
|
| 44 |
+
"pad_token": "<pad>",
|
| 45 |
+
"padding_side": "left",
|
| 46 |
+
"processor_class": "Gemma4UnifiedProcessor",
|
| 47 |
+
"soc_token": "<|channel>",
|
| 48 |
+
"sot_token": "<|turn>",
|
| 49 |
+
"stc_token": "<|tool_call>",
|
| 50 |
+
"std_token": "<|tool>",
|
| 51 |
+
"str_token": "<|tool_response>",
|
| 52 |
+
"think_token": "<|think|>",
|
| 53 |
+
"tokenizer_class": "GemmaTokenizer",
|
| 54 |
+
"unk_token": "<unk>"
|
| 55 |
+
}
|