Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use offical vllm #82

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions inference/notebooks/01_single_image_understanding_vllm.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,8 @@
"from PIL import Image\n",
"\n",
"from transformers import AutoTokenizer\n",
"from vllm import LLM, ModelRegistry, SamplingParams\n",
"from vllm.model_executor.models import _MULTIMODAL_MODELS\n",
"from vllm import LLM, SamplingParams\n",
"\n",
"from aria.vllm.aria import AriaForConditionalGeneration\n",
"\n",
"ModelRegistry.register_model(\n",
" \"AriaForConditionalGeneration\", AriaForConditionalGeneration\n",
")\n",
"_MULTIMODAL_MODELS[\"AriaForConditionalGeneration\"] = (\n",
" \"aria\",\n",
" \"AriaForConditionalGeneration\",\n",
")\n",
"\n",
"model_id_or_path = \"rhymes-ai/Aria\"\n",
"\n",
Expand Down Expand Up @@ -574,9 +564,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "aria",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "aria"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand Down
16 changes: 3 additions & 13 deletions inference/notebooks/02_multi_image_understanding_vllm.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,8 @@
"from PIL import Image\n",
"\n",
"from transformers import AutoTokenizer\n",
"from vllm import LLM, ModelRegistry, SamplingParams\n",
"from vllm.model_executor.models import _MULTIMODAL_MODELS\n",
"from vllm import LLM, SamplingParams\n",
"\n",
"from aria.vllm.aria import AriaForConditionalGeneration\n",
"\n",
"ModelRegistry.register_model(\n",
" \"AriaForConditionalGeneration\", AriaForConditionalGeneration\n",
")\n",
"_MULTIMODAL_MODELS[\"AriaForConditionalGeneration\"] = (\n",
" \"aria\",\n",
" \"AriaForConditionalGeneration\",\n",
")\n",
"\n",
"model_id_or_path = \"rhymes-ai/Aria\"\n",
"\n",
Expand Down Expand Up @@ -847,9 +837,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "aria",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "aria"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand Down
16 changes: 3 additions & 13 deletions inference/notebooks/03_multipage_pdf_understanding_vllm.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -128,18 +128,8 @@
"from PIL import Image\n",
"\n",
"from transformers import AutoTokenizer\n",
"from vllm import LLM, ModelRegistry, SamplingParams\n",
"from vllm.model_executor.models import _MULTIMODAL_MODELS\n",
"from vllm import LLM, SamplingParams\n",
"\n",
"from aria.vllm.aria import AriaForConditionalGeneration\n",
"\n",
"ModelRegistry.register_model(\n",
" \"AriaForConditionalGeneration\", AriaForConditionalGeneration\n",
")\n",
"_MULTIMODAL_MODELS[\"AriaForConditionalGeneration\"] = (\n",
" \"aria\",\n",
" \"AriaForConditionalGeneration\",\n",
")\n",
"\n",
"model_id_or_path = \"rhymes-ai/Aria\"\n",
"\n",
Expand Down Expand Up @@ -714,9 +704,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "aria",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "aria"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand Down
464 changes: 233 additions & 231 deletions inference/notebooks/04_video_understanding_vllm.ipynb

Large diffs are not rendered by default.