Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
grimoire committed Jan 31, 2024
1 parent 01b7417 commit 8c3574a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lmdeploy/tokenizer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Copyright (c) OpenMMLab. All rights reserved.
import json
import os
import os.path as osp
from collections import deque
from typing import List, Optional, Sequence, Union
Expand Down Expand Up @@ -139,7 +138,6 @@ class HuggingFaceTokenizer:

def __init__(self, model_dir: str):
from transformers import AutoTokenizer
model_file = osp.join(model_dir, 'tokenizer.model')
self.logger = get_logger('lmdeploy')
self.model = AutoTokenizer.from_pretrained(model_dir,
trust_remote_code=True)
Expand Down

0 comments on commit 8c3574a

Please sign in to comment.