mirror of
https://github.com/RYDE-WORK/MiniCPM.git
synced 2026-01-19 12:53:36 +08:00
Merge pull request #14 from soulteary/fix/user-warning-typedstorage
fix: ignore typedstorage deprecated message #13
This commit is contained in:
commit
6eec0fa36b
@ -11,6 +11,8 @@ from transformers import (
|
||||
AutoTokenizer,
|
||||
TextIteratorStreamer
|
||||
)
|
||||
import warnings
|
||||
warnings.filterwarnings('ignore', category=UserWarning, message='TypedStorage is deprecated')
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("--model_path", type=str, default="")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user