Fix is_ccl_available & is_xpu_available imports
This commit is contained in:
parent
778a010df8
commit
839a87bac8
4 changed files with 5 additions and 9 deletions
|
@ -7,12 +7,8 @@ from pathlib import Path
|
|||
|
||||
import torch
|
||||
import transformers
|
||||
from accelerate import (
|
||||
infer_auto_device_map,
|
||||
init_empty_weights,
|
||||
is_ccl_available,
|
||||
is_xpu_available
|
||||
)
|
||||
from accelerate import infer_auto_device_map, init_empty_weights
|
||||
from accelerate.utils import is_ccl_available, is_xpu_available
|
||||
from transformers import (
|
||||
AutoConfig,
|
||||
AutoModel,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue