Skip to content

Commit

Permalink
Update default NNCF configurations (#869)
Browse files Browse the repository at this point in the history
* Add several data-aware configurations

* Added tiny llama config

* phi-2 config update
  • Loading branch information
KodiaqQ authored Aug 16, 2024
1 parent 8cf3f26 commit 46f8858
Showing 1 changed file with 51 additions and 5 deletions.
56 changes: 51 additions & 5 deletions optimum/intel/openvino/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,14 @@ class OVQuantizationMethod(str, Enum):


_DEFAULT_4BIT_CONFIGS = {
"databricks/dolly-v2-3b": {"bits": 4, "sym": False, "group_size": 128, "ratio": 0.8},
"databricks/dolly-v2-3b": {
"bits": 4,
"sym": False,
"group_size": 128,
"ratio": 1.0,
"dataset": "wikitext2",
"scale_estimation": True,
},
"EleutherAI/gpt-j-6b": {"bits": 4, "sym": False, "group_size": 64},
"facebook/opt-6.7b": {"bits": 4, "sym": False, "group_size": 64, "ratio": 0.8},
"togethercomputer/RedPajama-INCITE-7B-Instruct": {"bits": 4, "sym": False, "group_size": 128},
Expand Down Expand Up @@ -95,7 +102,14 @@ class OVQuantizationMethod(str, Enum):
},
"mistralai/Mixtral-8x7B-v0.1": {"bits": 4, "sym": True, "group_size": 128, "ratio": 0.8},
"facebook/opt-2.7b": {"bits": 4, "sym": True, "group_size": 128, "ratio": 0.7},
"togethercomputer/RedPajama-INCITE-Chat-3B-v1": {"bits": 4, "sym": False, "group_size": 128, "ratio": 0.8},
"togethercomputer/RedPajama-INCITE-Chat-3B-v1": {
"bits": 4,
"sym": False,
"group_size": 128,
"ratio": 1.0,
"dataset": "wikitext2",
"scale_estimation": True,
},
"lmsys/vicuna-7b-v1.5": {"bits": 4, "sym": False, "group_size": 128, "ratio": 1.0},
"stabilityai/stablelm-tuned-alpha-3b": {"bits": 4, "sym": False, "group_size": 128, "ratio": 0.8},
"mistralai/Mistral-7B-v0.1": {"bits": 4, "sym": True, "group_size": 128, "ratio": 0.9},
Expand All @@ -107,10 +121,42 @@ class OVQuantizationMethod(str, Enum):
"dataset": "wikitext2",
"quant_method": OVQuantizationMethod.AWQ,
},
"lmsys/longchat-7b-16k": {"bits": 4, "sym": False, "group_size": 128, "ratio": 0.9},
"lmsys/longchat-7b-16k": {
"bits": 4,
"sym": False,
"group_size": 128,
"ratio": 1.0,
"dataset": "wikitext2",
"quant_method": OVQuantizationMethod.AWQ,
"scale_estimation": True,
},
"bigcode/starcoder2-3b": {"bits": 4, "sym": False, "group_size": 128, "ratio": 0.9},
"TinyLlama/TinyLlama-1.1B-Chat-v1.0": {"bits": 4, "sym": False, "group_size": 128, "ratio": 0.8},
"microsoft/phi-2": {"bits": 4, "sym": False, "group_size": 128, "ratio": 0.9},
"TinyLlama/TinyLlama-1.1B-Chat-v1.0": {
"bits": 4,
"sym": False,
"group_size": 64,
"ratio": 1.0,
"dataset": "wikitext2",
"quant_method": OVQuantizationMethod.AWQ,
"scale_estimation": True,
},
"microsoft/phi-2": {
"bits": 4,
"sym": False,
"group_size": 64,
"ratio": 1.0,
"dataset": "wikitext2",
"quant_method": OVQuantizationMethod.AWQ,
"scale_estimation": True,
},
"stabilityai/stablelm-tuned-alpha-7b": {
"bits": 4,
"sym": False,
"group_size": 64,
"ratio": 1.0,
"dataset": "wikitext2",
"scale_estimation": True,
},
}

_DEFAULT_4BIT_CONFIG = {
Expand Down

0 comments on commit 46f8858

Please sign in to comment.