Update qwen demo.py

This commit is contained in:
Colin 2024-01-05 11:49:35 +08:00
parent 8adae2130c
commit 55fed4bc5a
1 changed files with 2 additions and 2 deletions

View File

@ -10,8 +10,8 @@ seed = 4321
torch.manual_seed(seed) torch.manual_seed(seed)
torch.cuda.manual_seed_all(seed) torch.cuda.manual_seed_all(seed)
# model_dir = snapshot_download("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" # model_dir = "/home/colin/.cache/modelscope/hub/qwen/Qwen-1_8B-Chat"
config, kwargs = AutoConfig.from_pretrained( config, kwargs = AutoConfig.from_pretrained(
model_dir, model_dir,