Update qwen demo.py
This commit is contained in:
parent
8adae2130c
commit
55fed4bc5a
|
@ -10,8 +10,8 @@ seed = 4321
|
|||
torch.manual_seed(seed)
|
||||
torch.cuda.manual_seed_all(seed)
|
||||
|
||||
# model_dir = snapshot_download("qwen/Qwen-1_8B-Chat")
|
||||
model_dir = "/home/colin/.cache/modelscope/hub/qwen/Qwen-1_8B-Chat"
|
||||
model_dir = snapshot_download("qwen/Qwen-1_8B-Chat")
|
||||
# model_dir = "/home/colin/.cache/modelscope/hub/qwen/Qwen-1_8B-Chat"
|
||||
|
||||
config, kwargs = AutoConfig.from_pretrained(
|
||||
model_dir,
|
||||
|
|
Loading…
Reference in New Issue