From 5b849bb3a965b4ca59c2a1f5def513d730a18c75 Mon Sep 17 00:00:00 2001 From: hjh0119 Date: Mon, 7 Jul 2025 03:27:08 +0000 Subject: [PATCH] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 17f06b4..b70c5b3 100644 --- a/README.md +++ b/README.md @@ -70,12 +70,13 @@ messages = [ ], } ] -processor = AutoProcessor.from_pretrained(MODEL_PATH, use_fast=True) model = Glm4vForConditionalGeneration.from_pretrained( pretrained_model_name_or_path=MODEL_PATH, torch_dtype=torch.bfloat16, device_map="auto", ) +processor = AutoProcessor.from_pretrained(MODEL_PATH, use_fast=True) + inputs = processor.apply_chat_template( messages, tokenize=True,