Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
lzhangzz committed Nov 20, 2024
1 parent 8fb10ba commit 103ba46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lmdeploy/turbomind/deploy/target_model/base.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) OpenMMLab. All rights reserved.
import collections
import os.path as osp
from abc import ABC
from collections.abc import Sequence

import torch
import tqdm
Expand Down Expand Up @@ -92,7 +92,7 @@ def single_to_list(self, config: dict, keys):
num_layer = int(config['num_layer'])
for k in keys:
v = config.get(k, None)
if v is not None and not isinstance(v, collections.Sequence):
if v is not None and not isinstance(v, Sequence):
config[k] = [v] * num_layer
return config

Expand Down

0 comments on commit 103ba46

Please sign in to comment.