Skip to content

Commit

Permalink
Merge pull request #924 from vespa-engine/jobergum/use-correct-device
Browse files Browse the repository at this point in the history
Use correct device
  • Loading branch information
thomasht86 authored Sep 18, 2024
2 parents 1e481f1 + d926730 commit 22a0ead
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@
"model = ColPali.from_pretrained(\"vidore/colpaligemma-3b-mix-448-base\", torch_dtype=type).eval()\n",
"model.load_adapter(model_name)\n",
"model = model.eval()\n",
"model.to(device)\n",
"processor = AutoProcessor.from_pretrained(model_name)"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@
"model = ColPali.from_pretrained(\"vidore/colpaligemma-3b-mix-448-base\", torch_dtype=type).eval()\n",
"model.load_adapter(model_name)\n",
"model = model.eval()\n",
"model.to(device)\n",
"processor = AutoProcessor.from_pretrained(model_name)"
]
},
Expand Down

0 comments on commit 22a0ead

Please sign in to comment.