Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ZX-ModelCloud committed Jul 30, 2024
1 parent a9d27c8 commit 2bdbe4f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gptqmodel/utils/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
import json
import logging
import os
import shutil
from logging import getLogger
from typing import List, Optional
from huggingface_hub import HfApi, hf_hub_download
import shutil

import accelerate
import threadpoolctl as tctl
import torch
import torch.nn as nn
import transformers
from huggingface_hub import HfApi, hf_hub_download
from tqdm import tqdm
from transformers import AutoConfig, PretrainedConfig
from transformers.utils.hub import cached_file
Expand Down Expand Up @@ -648,4 +649,4 @@ def copy_py_files(save_dir, file_extension=".py", model_id_or_path=""):
for file in model_info.siblings:
if file.rfilename.endswith(file_extension):
_ = hf_hub_download(repo_id=model_id_or_path, filename=file.rfilename,
local_dir=save_dir)
local_dir=save_dir)

0 comments on commit 2bdbe4f

Please sign in to comment.