Skip to content

Commit

Permalink
Transformers future deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
loadams committed Dec 14, 2023
1 parent 3324efd commit c1488f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/unit/inference/quantization/test_intX_quantization.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def quantization_test_helper(pre_quant_type: torch.dtype, num_bits: int):

def zero3_post_init_quantization_test_helper(cpu_offload: bool, nvme_offload: bool, bits: int):
import deepspeed
from transformers.deepspeed import HfDeepSpeedConfig
from transformers.integrations.deepspeed import HfDeepSpeedConfig

def get_zero3_ds_config(hf_config: OPTConfig, cpu_offload: bool, nvme_offload: bool, bits: int) -> Dict:
GB = 1 << 30
Expand Down Expand Up @@ -172,7 +172,7 @@ def get_zero3_ds_config(hf_config: OPTConfig, cpu_offload: bool, nvme_offload: b

def zero3_quantized_initialization_test_helper(cpu_offload: bool, nvme_offload: bool, bits: int):
import deepspeed
from transformers.deepspeed import HfDeepSpeedConfig
from transformers.integrations.deepspeed import HfDeepSpeedConfig

def get_zero3_ds_config(hf_config: OPTConfig, cpu_offload: bool, nvme_offload: bool, bits: int) -> Dict:
GB = 1 << 30
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/runtime/zero/test_zero_nesting_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from unit.common import DistributedTest

from transformers import VisionEncoderDecoderModel
from transformers.deepspeed import HfDeepSpeedConfig
from transformers.integrations.deepspeed import HfDeepSpeedConfig

import deepspeed

Expand Down

0 comments on commit c1488f5

Please sign in to comment.