mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-10 20:04:52 +00:00
fix(server): Failing quantize config after local read.
This commit is contained in:
parent
2a13f1a046
commit
7a2136eeb8
@ -224,7 +224,7 @@ class Weights:
|
||||
def _set_gptq_params(self, model_id):
|
||||
filename = "quantize_config.json"
|
||||
try:
|
||||
if not os.path.exists(os.path.join(model_id, filename)):
|
||||
if os.path.exists(os.path.join(model_id, filename)):
|
||||
filename = os.path.join(model_id, filename)
|
||||
else:
|
||||
filename = hf_hub_download(model_id, filename=filename)
|
||||
|
Loading…
Reference in New Issue
Block a user