Upload folder using huggingface_hub (#1)
Browse files- 644e49b4130504674584aafdb1de601df97d4d91da540bd9a8e6e4dae5cc9a92 (ed70a244b587031ef5793666c76768e2ba833d31)
- README.md +85 -0
- config.json +53 -0
- configuration_falcon.py +152 -0
- generation_config.json +6 -0
- model.safetensors +3 -0
- smash_config.json +35 -0
README.md
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
thumbnail: "https://assets-global.website-files.com/646b351987a8d8ce158d1940/64ec9e96b4334c0e1ac41504_Logo%20with%20white%20text.svg"
|
3 |
+
base_model: nqzfaizal77ai/swiftstrike-aero-init-580m
|
4 |
+
metrics:
|
5 |
+
- memory_disk
|
6 |
+
- memory_inference
|
7 |
+
- inference_latency
|
8 |
+
- inference_throughput
|
9 |
+
- inference_CO2_emissions
|
10 |
+
- inference_energy_consumption
|
11 |
+
tags:
|
12 |
+
- pruna-ai
|
13 |
+
---
|
14 |
+
<!-- header start -->
|
15 |
+
<!-- 200823 -->
|
16 |
+
<div style="width: auto; margin-left: auto; margin-right: auto">
|
17 |
+
<a href="https://docs.pruna.ai/en/latest/setup/pip.html" target="_blank" rel="noopener noreferrer">
|
18 |
+
<img src="https://imgur.com/rVAgqMY.png" alt="PrunaAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
19 |
+
</a>
|
20 |
+
</div>
|
21 |
+
<!-- header end -->
|
22 |
+
|
23 |
+
[![Twitter](https://img.shields.io/twitter/follow/PrunaAI?style=social)](https://twitter.com/PrunaAI)
|
24 |
+
[![GitHub](https://img.shields.io/github/followers/PrunaAI?label=Follow%20%40PrunaAI&style=social)](https://github.com/PrunaAI)
|
25 |
+
[![LinkedIn](https://img.shields.io/badge/LinkedIn-Connect-blue)](https://www.linkedin.com/company/93832878/admin/feed/posts/?feedType=following)
|
26 |
+
[![Discord](https://img.shields.io/badge/Discord-Join%20Us-blue?style=social&logo=discord)](https://discord.gg/rskEr4BZJx)
|
27 |
+
|
28 |
+
# Simply make AI models cheaper, smaller, faster, and greener!
|
29 |
+
|
30 |
+
- Give a thumbs up if you like this model!
|
31 |
+
- Contact us and tell us which model to compress next [here](https://www.pruna.ai/contact).
|
32 |
+
- Request access to easily compress your *own* AI models [here](https://z0halsaff74.typeform.com/pruna-access?typeform-source=www.pruna.ai).
|
33 |
+
- Read the documentations to know more [here](https://pruna-ai-pruna.readthedocs-hosted.com/en/latest/)
|
34 |
+
- Join Pruna AI community on Discord [here](https://discord.gg/CP4VSgck) to share feedback/suggestions or get help.
|
35 |
+
|
36 |
+
## Results
|
37 |
+
|
38 |
+
![image info](./plots.png)
|
39 |
+
|
40 |
+
**Frequently Asked Questions**
|
41 |
+
- ***How does the compression work?*** The model is compressed with llm-int8.
|
42 |
+
- ***How does the model quality change?*** The quality of the model output might vary compared to the base model.
|
43 |
+
- ***How is the model efficiency evaluated?*** These results were obtained with configuration described in `model/smash_config.json` and are obtained after a hardware warmup. The smashed model is directly compared to the original base model. Efficiency results may vary in other settings (e.g. other hardware, image size, batch size, ...). We recommend to directly run them in the use-case conditions to know if the smashed model can benefit you.
|
44 |
+
- ***What is the model format?*** We use safetensors.
|
45 |
+
- ***What calibration data has been used?*** If needed by the compression method, we used WikiText as the calibration data.
|
46 |
+
- ***What is the naming convention for Pruna Huggingface models?*** We take the original model name and append "turbo", "tiny", or "green" if the smashed model has a measured inference speed, inference memory, or inference energy consumption which is less than 90% of the original base model.
|
47 |
+
- ***How to compress my own models?*** You can request premium access to more compression methods and tech support for your specific use-cases [here](https://z0halsaff74.typeform.com/pruna-access?typeform-source=www.pruna.ai).
|
48 |
+
- ***What are "first" metrics?*** Results mentioning "first" are obtained after the first run of the model. The first run might take more memory or be slower than the subsequent runs due cuda overheads.
|
49 |
+
- ***What are "Sync" and "Async" metrics?*** "Sync" metrics are obtained by syncing all GPU processes and stop measurement when all of them are executed. "Async" metrics are obtained without syncing all GPU processes and stop when the model output can be used by the CPU. We provide both metrics since both could be relevant depending on the use-case. We recommend to test the efficiency gains directly in your use-cases.
|
50 |
+
|
51 |
+
## Setup
|
52 |
+
|
53 |
+
You can run the smashed model with these steps:
|
54 |
+
|
55 |
+
0. Check requirements from the original repo nqzfaizal77ai/swiftstrike-aero-init-580m installed. In particular, check python, cuda, and transformers versions.
|
56 |
+
1. Make sure that you have installed quantization related packages.
|
57 |
+
```bash
|
58 |
+
pip install transformers accelerate bitsandbytes>0.37.0
|
59 |
+
```
|
60 |
+
2. Load & run the model.
|
61 |
+
```python
|
62 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
63 |
+
|
64 |
+
|
65 |
+
model = AutoModelForCausalLM.from_pretrained("PrunaAI/nqzfaizal77ai-swiftstrike-aero-init-580m-bnb-8bit-smashed", trust_remote_code=True, device_map='auto')
|
66 |
+
tokenizer = AutoTokenizer.from_pretrained("nqzfaizal77ai/swiftstrike-aero-init-580m")
|
67 |
+
|
68 |
+
input_ids = tokenizer("What is the color of prunes?,", return_tensors='pt').to(model.device)["input_ids"]
|
69 |
+
|
70 |
+
outputs = model.generate(input_ids, max_new_tokens=216)
|
71 |
+
tokenizer.decode(outputs[0])
|
72 |
+
```
|
73 |
+
|
74 |
+
## Configurations
|
75 |
+
|
76 |
+
The configuration info are in `smash_config.json`.
|
77 |
+
|
78 |
+
## Credits & License
|
79 |
+
|
80 |
+
The license of the smashed model follows the license of the original model. Please check the license of the original model nqzfaizal77ai/swiftstrike-aero-init-580m before using this model which provided the base model. The license of the `pruna-engine` is [here](https://pypi.org/project/pruna-engine/) on Pypi.
|
81 |
+
|
82 |
+
## Want to compress other models?
|
83 |
+
|
84 |
+
- Contact us and tell us which model to compress next [here](https://www.pruna.ai/contact).
|
85 |
+
- Do it by yourself [here](https://docs.pruna.ai/en/latest/setup/pip.html).
|
config.json
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "/covalent/.cache/models/tmp5_q06dhdeoqraodv",
|
3 |
+
"alibi": false,
|
4 |
+
"apply_residual_connection_post_layernorm": false,
|
5 |
+
"architectures": [
|
6 |
+
"FalconForCausalLM"
|
7 |
+
],
|
8 |
+
"attention_dropout": 0.0,
|
9 |
+
"auto_map": {
|
10 |
+
"AutoConfig": "configuration_falcon.FalconConfig",
|
11 |
+
"AutoModel": "nqzfaizal77ai/swiftstrike-aero-init-580m--modeling_falcon.FalconModel",
|
12 |
+
"AutoModelForCausalLM": "nqzfaizal77ai/swiftstrike-aero-init-580m--modeling_falcon.FalconForCausalLM",
|
13 |
+
"AutoModelForQuestionAnswering": "nqzfaizal77ai/swiftstrike-aero-init-580m--modeling_falcon.FalconForQuestionAnswering",
|
14 |
+
"AutoModelForSequenceClassification": "nqzfaizal77ai/swiftstrike-aero-init-580m--modeling_falcon.FalconForSequenceClassification",
|
15 |
+
"AutoModelForTokenClassification": "nqzfaizal77ai/swiftstrike-aero-init-580m--modeling_falcon.FalconForTokenClassification"
|
16 |
+
},
|
17 |
+
"bias": false,
|
18 |
+
"bos_token_id": 11,
|
19 |
+
"eos_token_id": 11,
|
20 |
+
"hidden_dropout": 0.0,
|
21 |
+
"hidden_size": 1280,
|
22 |
+
"initializer_range": 0.02,
|
23 |
+
"layer_norm_epsilon": 1e-05,
|
24 |
+
"model_type": "falcon",
|
25 |
+
"multi_query": true,
|
26 |
+
"new_decoder_architecture": false,
|
27 |
+
"num_attention_heads": 20,
|
28 |
+
"num_hidden_layers": 30,
|
29 |
+
"num_kv_heads": 71,
|
30 |
+
"parallel_attn": true,
|
31 |
+
"quantization_config": {
|
32 |
+
"_load_in_4bit": false,
|
33 |
+
"_load_in_8bit": true,
|
34 |
+
"bnb_4bit_compute_dtype": "bfloat16",
|
35 |
+
"bnb_4bit_quant_storage": "uint8",
|
36 |
+
"bnb_4bit_quant_type": "fp4",
|
37 |
+
"bnb_4bit_use_double_quant": false,
|
38 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
39 |
+
"llm_int8_has_fp16_weight": false,
|
40 |
+
"llm_int8_skip_modules": [
|
41 |
+
"lm_head"
|
42 |
+
],
|
43 |
+
"llm_int8_threshold": 6.0,
|
44 |
+
"load_in_4bit": false,
|
45 |
+
"load_in_8bit": true,
|
46 |
+
"quant_method": "bitsandbytes"
|
47 |
+
},
|
48 |
+
"torch_dtype": "float16",
|
49 |
+
"transformers_version": "4.46.2",
|
50 |
+
"use_cache": true,
|
51 |
+
"vocab_size": 65024,
|
52 |
+
"api_key": null
|
53 |
+
}
|
configuration_falcon.py
ADDED
@@ -0,0 +1,152 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# coding=utf-8
|
2 |
+
# Copyright 2023 the Falcon authors and HuggingFace Inc. team. All rights reserved.
|
3 |
+
#
|
4 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5 |
+
# you may not use this file except in compliance with the License.
|
6 |
+
# You may obtain a copy of the License at
|
7 |
+
#
|
8 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9 |
+
#
|
10 |
+
# Unless required by applicable law or agreed to in writing, software
|
11 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 |
+
# See the License for the specific language governing permissions and
|
14 |
+
# limitations under the License.
|
15 |
+
""" Falcon configuration"""
|
16 |
+
from transformers.configuration_utils import PretrainedConfig
|
17 |
+
from transformers.utils import logging
|
18 |
+
|
19 |
+
|
20 |
+
logger = logging.get_logger(__name__)
|
21 |
+
|
22 |
+
FALCON_PRETRAINED_CONFIG_ARCHIVE_MAP = {
|
23 |
+
"tiiuae/falcon-40b": "https://huggingface.co/tiiuae/falcon-40b/resolve/main/config.json",
|
24 |
+
"tiiuae/falcon-7b": "https://huggingface.co/tiiuae/falcon-7b/resolve/main/config.json",
|
25 |
+
}
|
26 |
+
|
27 |
+
|
28 |
+
class FalconConfig(PretrainedConfig):
|
29 |
+
r"""
|
30 |
+
This is the configuration class to store the configuration of a [`FalconModel`]. It is used to instantiate a Falcon
|
31 |
+
model according to the specified arguments, defining the model architecture. Instantiating a configuration with the
|
32 |
+
defaults will yield a similar configuration to that of the
|
33 |
+
[tiiuae/falcon-7b](https://huggingface.co/tiiuae/falcon-7b) architecture.
|
34 |
+
|
35 |
+
Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
|
36 |
+
documentation from [`PretrainedConfig`] for more information.
|
37 |
+
|
38 |
+
|
39 |
+
Args:
|
40 |
+
vocab_size (`int`, *optional*, defaults to 65024):
|
41 |
+
Vocabulary size of the Falcon model. Defines the number of different tokens that can be represented by the
|
42 |
+
`inputs_ids` passed when calling [`FalconModel`]
|
43 |
+
hidden_size (`int`, *optional*, defaults to 4544):
|
44 |
+
Dimension of the hidden representations.
|
45 |
+
num_hidden_layers (`int`, *optional*, defaults to 32):
|
46 |
+
Number of hidden layers in the Transformer decoder.
|
47 |
+
num_attention_heads (`int`, *optional*, defaults to 71):
|
48 |
+
Number of attention heads for each attention layer in the Transformer encoder.
|
49 |
+
initializer_range (`float`, *optional*, defaults to 0.02):
|
50 |
+
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.
|
51 |
+
use_cache (`bool`, *optional*, defaults to `True`):
|
52 |
+
Whether the model should return the last key/values attentions (not used by all models). Only relevant if
|
53 |
+
`config.is_decoder=True`.
|
54 |
+
layer_norm_epsilon (`float`, *optional*, defaults to 1e-5):
|
55 |
+
The epsilon used by the layer normalization layers.
|
56 |
+
hidden_dropout (`float`, *optional*, defaults to 0.0):
|
57 |
+
The dropout probability for MLP layers.
|
58 |
+
attention_dropout (`float`, *optional*, defaults to 0.0):
|
59 |
+
The dropout probability for attention layers.
|
60 |
+
num_kv_heads (`int`, *optional*):
|
61 |
+
Number of key-value heads to use per attention layer. If unset, defaults to the same value as
|
62 |
+
`num_attention_heads`.
|
63 |
+
alibi (`bool`, *optional*, defaults to `False`):
|
64 |
+
Whether to use ALiBi positional biases during self-attention.
|
65 |
+
new_decoder_architecture (`bool`, *optional*, defaults to `False`):
|
66 |
+
Whether to use the new (Falcon-40B) decoder architecture. If `True`, the `multi_query` and `parallel_attn`
|
67 |
+
arguments are ignored, as the new decoder always uses parallel attention.
|
68 |
+
multi_query (`bool`, *optional*, defaults to `True`):
|
69 |
+
Whether to use multi-query attention in the decoder. Ignored when `new_decoder_architecture` is `True`.
|
70 |
+
parallel_attn (`bool`, *optional*, defaults to `True`):
|
71 |
+
Whether to compute attention in parallel with the feedforward layer. If False, they are consecutive
|
72 |
+
instead, as in the original Transformer architecture. Ignored when `new_decoder_architecture` is `True`.
|
73 |
+
bias (`bool`, *optional*, defaults to `False`):
|
74 |
+
Whether to use bias on Linear layers.
|
75 |
+
bos_token_id (`int`, *optional*, defaults to 11):
|
76 |
+
The id of the "beginning-of-sequence" token.
|
77 |
+
eos_token_id (`int`, *optional*, defaults to 11):
|
78 |
+
The id of the "end-of-sequence" token.
|
79 |
+
|
80 |
+
Example:
|
81 |
+
|
82 |
+
```python
|
83 |
+
>>> from transformers import FalconModel, FalconConfig
|
84 |
+
|
85 |
+
>>> # Initializing a small (2-layer) Falcon configuration
|
86 |
+
>>> configuration = FalconConfig(num_hidden_layers=2)
|
87 |
+
|
88 |
+
>>> # Initializing a model from the small configuration
|
89 |
+
>>> model = FalconModel(configuration)
|
90 |
+
|
91 |
+
>>> # Accessing the model configuration
|
92 |
+
>>> configuration = model.config
|
93 |
+
```"""
|
94 |
+
model_type = "falcon"
|
95 |
+
keys_to_ignore_at_inference = ["past_key_values"]
|
96 |
+
|
97 |
+
def __init__(
|
98 |
+
self,
|
99 |
+
vocab_size=65024,
|
100 |
+
hidden_size=4544,
|
101 |
+
num_hidden_layers=32,
|
102 |
+
num_attention_heads=71,
|
103 |
+
layer_norm_epsilon=1e-5,
|
104 |
+
initializer_range=0.02,
|
105 |
+
use_cache=True,
|
106 |
+
hidden_dropout=0.0,
|
107 |
+
attention_dropout=0.0,
|
108 |
+
num_kv_heads=None,
|
109 |
+
alibi=False,
|
110 |
+
new_decoder_architecture=False,
|
111 |
+
multi_query=True,
|
112 |
+
parallel_attn=True,
|
113 |
+
bias=False,
|
114 |
+
bos_token_id=11,
|
115 |
+
eos_token_id=11,
|
116 |
+
**kwargs,
|
117 |
+
):
|
118 |
+
logger.warning_once(
|
119 |
+
"\nWARNING: You are currently loading Falcon using legacy code contained in the model repository. Falcon has now been fully ported into the Hugging Face transformers library. "
|
120 |
+
"For the most up-to-date and high-performance version of the Falcon model code, please update to the latest version of transformers and then load the model "
|
121 |
+
"without the trust_remote_code=True argument.\n"
|
122 |
+
)
|
123 |
+
self.vocab_size = vocab_size
|
124 |
+
# Backward compatibility with n_embed kwarg
|
125 |
+
n_embed = kwargs.pop("n_embed", None)
|
126 |
+
self.hidden_size = hidden_size if n_embed is None else n_embed
|
127 |
+
self.num_hidden_layers = num_hidden_layers
|
128 |
+
self.num_attention_heads = num_attention_heads
|
129 |
+
self.layer_norm_epsilon = layer_norm_epsilon
|
130 |
+
self.initializer_range = initializer_range
|
131 |
+
self.use_cache = use_cache
|
132 |
+
self.hidden_dropout = hidden_dropout
|
133 |
+
self.attention_dropout = attention_dropout
|
134 |
+
|
135 |
+
self.bos_token_id = bos_token_id
|
136 |
+
self.eos_token_id = eos_token_id
|
137 |
+
self.num_kv_heads = num_attention_heads if num_kv_heads is None else num_kv_heads
|
138 |
+
self.alibi = alibi
|
139 |
+
self.new_decoder_architecture = new_decoder_architecture
|
140 |
+
self.multi_query = multi_query # Ignored when new_decoder_architecture is True
|
141 |
+
self.parallel_attn = parallel_attn
|
142 |
+
self.bias = bias
|
143 |
+
|
144 |
+
super().__init__(bos_token_id=bos_token_id, eos_token_id=eos_token_id, **kwargs)
|
145 |
+
|
146 |
+
@property
|
147 |
+
def head_dim(self):
|
148 |
+
return self.hidden_size // self.num_attention_heads
|
149 |
+
|
150 |
+
@property
|
151 |
+
def rotary(self):
|
152 |
+
return not self.alibi
|
generation_config.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 11,
|
4 |
+
"eos_token_id": 11,
|
5 |
+
"transformers_version": "4.46.2"
|
6 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dbf529cf2d0c83882e69fb5a41b020e3ab11f7aff9392ccb2fd531938d8e1549
|
3 |
+
size 664193928
|
smash_config.json
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"comp_cgenerate_active": false,
|
3 |
+
"comp_ctranslate_active": false,
|
4 |
+
"comp_cwhisper_active": false,
|
5 |
+
"comp_diffusers2_active": false,
|
6 |
+
"comp_ifw_active": false,
|
7 |
+
"comp_onediff_active": false,
|
8 |
+
"comp_step_caching_active": false,
|
9 |
+
"comp_torch_compile_active": false,
|
10 |
+
"comp_ws2t_active": false,
|
11 |
+
"comp_x-fast_active": false,
|
12 |
+
"prune_torch-structured_active": false,
|
13 |
+
"quant_aqlm_active": false,
|
14 |
+
"quant_awq_active": false,
|
15 |
+
"quant_gptq_active": false,
|
16 |
+
"quant_half_active": false,
|
17 |
+
"quant_hqq_active": false,
|
18 |
+
"quant_llm-int8_active": true,
|
19 |
+
"quant_quanto_active": false,
|
20 |
+
"quant_torch_dynamic_active": false,
|
21 |
+
"quant_torch_static_active": false,
|
22 |
+
"quant_llm-int8_compute_dtype": "bfloat16",
|
23 |
+
"quant_llm-int8_double_quant": false,
|
24 |
+
"quant_llm-int8_enable_fp32_cpu_offload": false,
|
25 |
+
"quant_llm-int8_has_fp16_weight": false,
|
26 |
+
"quant_llm-int8_quant_type": "fp4",
|
27 |
+
"quant_llm-int8_threshold": 6.0,
|
28 |
+
"quant_llm-int8_weight_bits": 8,
|
29 |
+
"max_batch_size": 1,
|
30 |
+
"device": "cuda",
|
31 |
+
"cache_dir": "/covalent/.cache/models/tmp5_q06dhd",
|
32 |
+
"task": "",
|
33 |
+
"save_load_fn": "bitsandbytes",
|
34 |
+
"save_load_fn_args": {}
|
35 |
+
}
|