Skip to content

Commit

Permalink
update colpali-engine
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasht86 committed Oct 29, 2024
1 parent 050796c commit be2a0e3
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
},
"outputs": [],
"source": [
"!pip3 install colpali-engine==0.2.2 pdf2image pypdf==5.0.1 pyvespa vespacli requests numpy"
"!pip3 install colpali-engine==0.3.2 pdf2image pypdf==5.0.1 pyvespa vespacli requests numpy"
]
},
{
Expand Down Expand Up @@ -329,9 +329,7 @@
"outputs": [],
"source": [
"model_name = \"vidore/colpali-v1.2\"\n",
"model = ColPali.from_pretrained(\n",
" \"vidore/colpaligemma-3b-pt-448-base\", torch_dtype=type\n",
").eval()\n",
"model = ColPali.from_pretrained(model_name, torch_dtype=type).eval()\n",
"model.load_adapter(model_name)\n",
"model = model.eval()\n",
"model.to(device)\n",
Expand Down

0 comments on commit be2a0e3

Please sign in to comment.