Add files using upload-large-folder tool
Browse files- .gitattributes +1 -0
- README.md +76 -3
- config.json +114 -0
- generation_config.json +10 -0
- model.safetensors +3 -0
- processor/added_tokens.json +3 -0
- processor/chat_template.jinja +47 -0
- processor/preprocessor_config.json +29 -0
- processor/processor_config.json +4 -0
- processor/special_tokens_map.json +33 -0
- processor/tokenizer.json +3 -0
- processor/tokenizer.model +3 -0
- processor/tokenizer_config.json +0 -0
- smash_config.json +30 -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 |
+
processor/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -1,3 +1,76 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
tags:
|
| 4 |
+
- pruna-ai
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
# Model Card for AINovice2005/medgemma-4b-it-smashed
|
| 8 |
+
|
| 9 |
+
This model was created using the [pruna](https://github.com/PrunaAI/pruna) library. Pruna is a model optimization framework built for developers, enabling you to deliver more efficient models with minimal implementation overhead.
|
| 10 |
+
|
| 11 |
+
## Usage
|
| 12 |
+
|
| 13 |
+
First things first, you need to install the pruna library:
|
| 14 |
+
|
| 15 |
+
```bash
|
| 16 |
+
pip install pruna
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
You can [use the transformers library to load the model](https://huggingface.co/AINovice2005/medgemma-4b-it-smashed?library=transformers) but this might not include all optimizations by default.
|
| 20 |
+
|
| 21 |
+
To ensure that all optimizations are applied, use the pruna library to load the model using the following code:
|
| 22 |
+
|
| 23 |
+
```python
|
| 24 |
+
from pruna import PrunaModel
|
| 25 |
+
|
| 26 |
+
loaded_model = PrunaModel.from_hub(
|
| 27 |
+
"AINovice2005/medgemma-4b-it-smashed"
|
| 28 |
+
)
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
After loading the model, you can use the inference methods of the original model. Take a look at the [documentation](https://pruna.readthedocs.io/en/latest/index.html) for more usage information.
|
| 32 |
+
|
| 33 |
+
## Smash Configuration
|
| 34 |
+
|
| 35 |
+
The compression configuration of the model is stored in the `smash_config.json` file, which describes the optimization methods that were applied to the model.
|
| 36 |
+
|
| 37 |
+
```bash
|
| 38 |
+
{
|
| 39 |
+
"batcher": null,
|
| 40 |
+
"cacher": null,
|
| 41 |
+
"compiler": null,
|
| 42 |
+
"factorizer": null,
|
| 43 |
+
"pruner": null,
|
| 44 |
+
"quantizer": "llm_int8",
|
| 45 |
+
"llm_int8_compute_dtype": "bfloat16",
|
| 46 |
+
"llm_int8_double_quant": false,
|
| 47 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
| 48 |
+
"llm_int8_has_fp16_weight": false,
|
| 49 |
+
"llm_int8_quant_type": "fp4",
|
| 50 |
+
"llm_int8_threshold": 6.0,
|
| 51 |
+
"llm_int8_weight_bits": 8,
|
| 52 |
+
"batch_size": 1,
|
| 53 |
+
"device": "cuda",
|
| 54 |
+
"device_map": null,
|
| 55 |
+
"save_fns": [],
|
| 56 |
+
"load_fns": [
|
| 57 |
+
"transformers"
|
| 58 |
+
],
|
| 59 |
+
"reapply_after_load": {
|
| 60 |
+
"factorizer": null,
|
| 61 |
+
"pruner": null,
|
| 62 |
+
"quantizer": null,
|
| 63 |
+
"cacher": null,
|
| 64 |
+
"compiler": null,
|
| 65 |
+
"batcher": null
|
| 66 |
+
}
|
| 67 |
+
}
|
| 68 |
+
```
|
| 69 |
+
|
| 70 |
+
## 🌍 Join the Pruna AI community!
|
| 71 |
+
|
| 72 |
+
[](https://twitter.com/PrunaAI)
|
| 73 |
+
[](https://github.com/PrunaAI)
|
| 74 |
+
[](https://www.linkedin.com/company/93832878/admin/feed/posts/?feedType=following)
|
| 75 |
+
[](https://discord.com/invite/rskEr4BZJx)
|
| 76 |
+
[](https://www.reddit.com/r/PrunaAI/)
|
config.json
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Gemma3ForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"boi_token_index": 255999,
|
| 6 |
+
"eoi_token_index": 256000,
|
| 7 |
+
"eos_token_id": [
|
| 8 |
+
1,
|
| 9 |
+
106
|
| 10 |
+
],
|
| 11 |
+
"image_token_index": 262144,
|
| 12 |
+
"initializer_range": 0.02,
|
| 13 |
+
"mm_tokens_per_image": 256,
|
| 14 |
+
"model_type": "gemma3",
|
| 15 |
+
"quantization_config": {
|
| 16 |
+
"_load_in_4bit": false,
|
| 17 |
+
"_load_in_8bit": true,
|
| 18 |
+
"bnb_4bit_compute_dtype": "bfloat16",
|
| 19 |
+
"bnb_4bit_quant_storage": "uint8",
|
| 20 |
+
"bnb_4bit_quant_type": "fp4",
|
| 21 |
+
"bnb_4bit_use_double_quant": false,
|
| 22 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
| 23 |
+
"llm_int8_has_fp16_weight": false,
|
| 24 |
+
"llm_int8_skip_modules": [
|
| 25 |
+
"lm_head"
|
| 26 |
+
],
|
| 27 |
+
"llm_int8_threshold": 6.0,
|
| 28 |
+
"load_in_4bit": false,
|
| 29 |
+
"load_in_8bit": true,
|
| 30 |
+
"quant_method": "bitsandbytes"
|
| 31 |
+
},
|
| 32 |
+
"text_config": {
|
| 33 |
+
"_sliding_window_pattern": 6,
|
| 34 |
+
"attention_bias": false,
|
| 35 |
+
"attention_dropout": 0.0,
|
| 36 |
+
"attn_logit_softcapping": null,
|
| 37 |
+
"final_logit_softcapping": null,
|
| 38 |
+
"head_dim": 256,
|
| 39 |
+
"hidden_activation": "gelu_pytorch_tanh",
|
| 40 |
+
"hidden_size": 2560,
|
| 41 |
+
"initializer_range": 0.02,
|
| 42 |
+
"intermediate_size": 10240,
|
| 43 |
+
"layer_types": [
|
| 44 |
+
"sliding_attention",
|
| 45 |
+
"sliding_attention",
|
| 46 |
+
"sliding_attention",
|
| 47 |
+
"sliding_attention",
|
| 48 |
+
"sliding_attention",
|
| 49 |
+
"full_attention",
|
| 50 |
+
"sliding_attention",
|
| 51 |
+
"sliding_attention",
|
| 52 |
+
"sliding_attention",
|
| 53 |
+
"sliding_attention",
|
| 54 |
+
"sliding_attention",
|
| 55 |
+
"full_attention",
|
| 56 |
+
"sliding_attention",
|
| 57 |
+
"sliding_attention",
|
| 58 |
+
"sliding_attention",
|
| 59 |
+
"sliding_attention",
|
| 60 |
+
"sliding_attention",
|
| 61 |
+
"full_attention",
|
| 62 |
+
"sliding_attention",
|
| 63 |
+
"sliding_attention",
|
| 64 |
+
"sliding_attention",
|
| 65 |
+
"sliding_attention",
|
| 66 |
+
"sliding_attention",
|
| 67 |
+
"full_attention",
|
| 68 |
+
"sliding_attention",
|
| 69 |
+
"sliding_attention",
|
| 70 |
+
"sliding_attention",
|
| 71 |
+
"sliding_attention",
|
| 72 |
+
"sliding_attention",
|
| 73 |
+
"full_attention",
|
| 74 |
+
"sliding_attention",
|
| 75 |
+
"sliding_attention",
|
| 76 |
+
"sliding_attention",
|
| 77 |
+
"sliding_attention"
|
| 78 |
+
],
|
| 79 |
+
"max_position_embeddings": 131072,
|
| 80 |
+
"model_type": "gemma3_text",
|
| 81 |
+
"num_attention_heads": 8,
|
| 82 |
+
"num_hidden_layers": 34,
|
| 83 |
+
"num_key_value_heads": 4,
|
| 84 |
+
"query_pre_attn_scalar": 256,
|
| 85 |
+
"rms_norm_eps": 1e-06,
|
| 86 |
+
"rope_local_base_freq": 10000,
|
| 87 |
+
"rope_scaling": {
|
| 88 |
+
"factor": 8.0,
|
| 89 |
+
"rope_type": "linear"
|
| 90 |
+
},
|
| 91 |
+
"rope_theta": 1000000,
|
| 92 |
+
"sliding_window": 1024,
|
| 93 |
+
"torch_dtype": "bfloat16",
|
| 94 |
+
"use_cache": true,
|
| 95 |
+
"vocab_size": 262208
|
| 96 |
+
},
|
| 97 |
+
"torch_dtype": "bfloat16",
|
| 98 |
+
"transformers_version": "4.54.0.dev0",
|
| 99 |
+
"vision_config": {
|
| 100 |
+
"attention_dropout": 0.0,
|
| 101 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 102 |
+
"hidden_size": 1152,
|
| 103 |
+
"image_size": 896,
|
| 104 |
+
"intermediate_size": 4304,
|
| 105 |
+
"layer_norm_eps": 1e-06,
|
| 106 |
+
"model_type": "siglip_vision_model",
|
| 107 |
+
"num_attention_heads": 16,
|
| 108 |
+
"num_channels": 3,
|
| 109 |
+
"num_hidden_layers": 27,
|
| 110 |
+
"patch_size": 14,
|
| 111 |
+
"torch_dtype": "bfloat16",
|
| 112 |
+
"vision_use_head": false
|
| 113 |
+
}
|
| 114 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 2,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
1,
|
| 6 |
+
106
|
| 7 |
+
],
|
| 8 |
+
"pad_token_id": 0,
|
| 9 |
+
"transformers_version": "4.54.0.dev0"
|
| 10 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4993c88fe1e1a53b3f7ede6a1c767a50ce83c96ef3c0b1cea5b71220424d010f
|
| 3 |
+
size 4985791240
|
processor/added_tokens.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"<image_soft_token>": 262144
|
| 3 |
+
}
|
processor/chat_template.jinja
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{{ bos_token }}
|
| 2 |
+
{%- if messages[0]['role'] == 'system' -%}
|
| 3 |
+
{%- if messages[0]['content'] is string -%}
|
| 4 |
+
{%- set first_user_prefix = messages[0]['content'] + '
|
| 5 |
+
|
| 6 |
+
' -%}
|
| 7 |
+
{%- else -%}
|
| 8 |
+
{%- set first_user_prefix = messages[0]['content'][0]['text'] + '
|
| 9 |
+
|
| 10 |
+
' -%}
|
| 11 |
+
{%- endif -%}
|
| 12 |
+
{%- set loop_messages = messages[1:] -%}
|
| 13 |
+
{%- else -%}
|
| 14 |
+
{%- set first_user_prefix = "" -%}
|
| 15 |
+
{%- set loop_messages = messages -%}
|
| 16 |
+
{%- endif -%}
|
| 17 |
+
{%- for message in loop_messages -%}
|
| 18 |
+
{%- if (message['role'] == 'user') != (loop.index0 % 2 == 0) -%}
|
| 19 |
+
{{ raise_exception("Conversation roles must alternate user/assistant/user/assistant/...") }}
|
| 20 |
+
{%- endif -%}
|
| 21 |
+
{%- if (message['role'] == 'assistant') -%}
|
| 22 |
+
{%- set role = "model" -%}
|
| 23 |
+
{%- else -%}
|
| 24 |
+
{%- set role = message['role'] -%}
|
| 25 |
+
{%- endif -%}
|
| 26 |
+
{{ '<start_of_turn>' + role + '
|
| 27 |
+
' + (first_user_prefix if loop.first else "") }}
|
| 28 |
+
{%- if message['content'] is string -%}
|
| 29 |
+
{{ message['content'] | trim }}
|
| 30 |
+
{%- elif message['content'] is iterable -%}
|
| 31 |
+
{%- for item in message['content'] -%}
|
| 32 |
+
{%- if item['type'] == 'image' -%}
|
| 33 |
+
{{ '<start_of_image>' }}
|
| 34 |
+
{%- elif item['type'] == 'text' -%}
|
| 35 |
+
{{ item['text'] | trim }}
|
| 36 |
+
{%- endif -%}
|
| 37 |
+
{%- endfor -%}
|
| 38 |
+
{%- else -%}
|
| 39 |
+
{{ raise_exception("Invalid content type") }}
|
| 40 |
+
{%- endif -%}
|
| 41 |
+
{{ '<end_of_turn>
|
| 42 |
+
' }}
|
| 43 |
+
{%- endfor -%}
|
| 44 |
+
{%- if add_generation_prompt -%}
|
| 45 |
+
{{'<start_of_turn>model
|
| 46 |
+
'}}
|
| 47 |
+
{%- endif -%}
|
processor/preprocessor_config.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_convert_rgb": null,
|
| 3 |
+
"do_normalize": true,
|
| 4 |
+
"do_pan_and_scan": null,
|
| 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": "Gemma3ImageProcessor",
|
| 13 |
+
"image_seq_length": 256,
|
| 14 |
+
"image_std": [
|
| 15 |
+
0.5,
|
| 16 |
+
0.5,
|
| 17 |
+
0.5
|
| 18 |
+
],
|
| 19 |
+
"pan_and_scan_max_num_crops": null,
|
| 20 |
+
"pan_and_scan_min_crop_size": null,
|
| 21 |
+
"pan_and_scan_min_ratio_to_activate": null,
|
| 22 |
+
"processor_class": "Gemma3Processor",
|
| 23 |
+
"resample": 2,
|
| 24 |
+
"rescale_factor": 0.00392156862745098,
|
| 25 |
+
"size": {
|
| 26 |
+
"height": 896,
|
| 27 |
+
"width": 896
|
| 28 |
+
}
|
| 29 |
+
}
|
processor/processor_config.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"image_seq_length": 256,
|
| 3 |
+
"processor_class": "Gemma3Processor"
|
| 4 |
+
}
|
processor/special_tokens_map.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"boi_token": "<start_of_image>",
|
| 3 |
+
"bos_token": {
|
| 4 |
+
"content": "<bos>",
|
| 5 |
+
"lstrip": false,
|
| 6 |
+
"normalized": false,
|
| 7 |
+
"rstrip": false,
|
| 8 |
+
"single_word": false
|
| 9 |
+
},
|
| 10 |
+
"eoi_token": "<end_of_image>",
|
| 11 |
+
"eos_token": {
|
| 12 |
+
"content": "<eos>",
|
| 13 |
+
"lstrip": false,
|
| 14 |
+
"normalized": false,
|
| 15 |
+
"rstrip": false,
|
| 16 |
+
"single_word": false
|
| 17 |
+
},
|
| 18 |
+
"image_token": "<image_soft_token>",
|
| 19 |
+
"pad_token": {
|
| 20 |
+
"content": "<pad>",
|
| 21 |
+
"lstrip": false,
|
| 22 |
+
"normalized": false,
|
| 23 |
+
"rstrip": false,
|
| 24 |
+
"single_word": false
|
| 25 |
+
},
|
| 26 |
+
"unk_token": {
|
| 27 |
+
"content": "<unk>",
|
| 28 |
+
"lstrip": false,
|
| 29 |
+
"normalized": false,
|
| 30 |
+
"rstrip": false,
|
| 31 |
+
"single_word": false
|
| 32 |
+
}
|
| 33 |
+
}
|
processor/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4667f2089529e8e7657cfb6d1c19910ae71ff5f28aa7ab2ff2763330affad795
|
| 3 |
+
size 33384568
|
processor/tokenizer.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1299c11d7cf632ef3b4e11937501358ada021bbdf7c47638d13c0ee982f2e79c
|
| 3 |
+
size 4689074
|
processor/tokenizer_config.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
smash_config.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"batcher": null,
|
| 3 |
+
"cacher": null,
|
| 4 |
+
"compiler": null,
|
| 5 |
+
"factorizer": null,
|
| 6 |
+
"pruner": null,
|
| 7 |
+
"quantizer": "llm_int8",
|
| 8 |
+
"llm_int8_compute_dtype": "bfloat16",
|
| 9 |
+
"llm_int8_double_quant": false,
|
| 10 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
| 11 |
+
"llm_int8_has_fp16_weight": false,
|
| 12 |
+
"llm_int8_quant_type": "fp4",
|
| 13 |
+
"llm_int8_threshold": 6.0,
|
| 14 |
+
"llm_int8_weight_bits": 8,
|
| 15 |
+
"batch_size": 1,
|
| 16 |
+
"device": "cuda",
|
| 17 |
+
"device_map": null,
|
| 18 |
+
"save_fns": [],
|
| 19 |
+
"load_fns": [
|
| 20 |
+
"transformers"
|
| 21 |
+
],
|
| 22 |
+
"reapply_after_load": {
|
| 23 |
+
"factorizer": null,
|
| 24 |
+
"pruner": null,
|
| 25 |
+
"quantizer": null,
|
| 26 |
+
"cacher": null,
|
| 27 |
+
"compiler": null,
|
| 28 |
+
"batcher": null
|
| 29 |
+
}
|
| 30 |
+
}
|