Upload generate_prompt.py with huggingface_hub
Browse files- generate_prompt.py +1 -1
generate_prompt.py
CHANGED
@@ -36,7 +36,7 @@ parser.add_argument("--prompt_path", type=str, default="/home/zbz5349/WorkSpace/
|
|
36 |
|
37 |
args = parser.parse_args()
|
38 |
model = Qwen2_5_VLForConditionalGeneration.from_pretrained(
|
39 |
-
|
40 |
torch_dtype=torch.bfloat16,
|
41 |
attn_implementation="flash_attention_2",
|
42 |
device_map="auto",
|
|
|
36 |
|
37 |
args = parser.parse_args()
|
38 |
model = Qwen2_5_VLForConditionalGeneration.from_pretrained(
|
39 |
+
args.model_path,
|
40 |
torch_dtype=torch.bfloat16,
|
41 |
attn_implementation="flash_attention_2",
|
42 |
device_map="auto",
|