enforce eager mode with bnb quantization temporarily (#6846)
This commit is contained in:
parent
b5f49ee55b
commit
bb5494676f
@ -282,6 +282,10 @@ class ModelConfig:
|
|||||||
raise ValueError(
|
raise ValueError(
|
||||||
"BitAndBytes quantization with TP or PP is not supported yet.")
|
"BitAndBytes quantization with TP or PP is not supported yet.")
|
||||||
|
|
||||||
|
if self.quantization == "bitsandbytes" and self.enforce_eager is False:
|
||||||
|
raise ValueError(
|
||||||
|
"BitAndBytes with enforce_eager = False is not supported yet.")
|
||||||
|
|
||||||
def get_hf_config_sliding_window(self) -> Optional[int]:
|
def get_hf_config_sliding_window(self) -> Optional[int]:
|
||||||
"""Get the sliding window size, or None if disabled."""
|
"""Get the sliding window size, or None if disabled."""
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user