Skip to content

Commit

Permalink
little polish in reference info and indent
Browse files Browse the repository at this point in the history
  • Loading branch information
ATMxsp01 committed Dec 24, 2024
1 parent a171de0 commit 458c59b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
pixel_values = pixel_values.to('xpu')

with torch.inference_mode():
# The following code for generation is adapted from https://huggingface.co/THUDM/glm-edge-v-2b#inference
# The following code for generation is adapted from https://huggingface.co/THUDM/glm-edge-v-5b#inference
messages = [{
"role": "user",
"content": [{"type": "image"},
Expand All @@ -92,8 +92,8 @@
add_generation_prompt=True,
return_dict=True,
tokenize=True,
return_tensors="pt"
).to('xpu')
return_tensors="pt")
inputs = inputs.to('xpu')

generate_kwargs = {
**inputs,
Expand Down

0 comments on commit 458c59b

Please sign in to comment.