From bd78096980d9adfd467b674649a0224f9554194b Mon Sep 17 00:00:00 2001 From: PZS-ModelCloud Date: Tue, 13 Aug 2024 09:41:54 +0000 Subject: [PATCH] fix python 3.9 error --- gptqmodel/models/auto.py | 1 + gptqmodel/models/base.py | 1 + gptqmodel/utils/model.py | 1 + 3 files changed, 3 insertions(+) diff --git a/gptqmodel/models/auto.py b/gptqmodel/models/auto.py index 3563958e..6e5d9222 100644 --- a/gptqmodel/models/auto.py +++ b/gptqmodel/models/auto.py @@ -1,3 +1,4 @@ +from __future__ import annotations from typing import Dict, List, Optional, Union from ..utils import BACKEND diff --git a/gptqmodel/models/base.py b/gptqmodel/models/base.py index 83520a8f..b56a80a4 100644 --- a/gptqmodel/models/base.py +++ b/gptqmodel/models/base.py @@ -1,3 +1,4 @@ +from __future__ import annotations import copy import json import logging diff --git a/gptqmodel/utils/model.py b/gptqmodel/utils/model.py index ce63373d..352f4a40 100644 --- a/gptqmodel/utils/model.py +++ b/gptqmodel/utils/model.py @@ -1,3 +1,4 @@ +from __future__ import annotations import functools import hashlib import json