Skip to content

Commit

Permalink
Merge pull request #213 from mobiusml/blip_fix
Browse files Browse the repository at this point in the history
bump transformers to 4.47.0
  • Loading branch information
HRashidi authored Dec 6, 2024
2 parents d9bc745 + 5975749 commit 29fb45d
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 138 deletions.
2 changes: 1 addition & 1 deletion aana/tests/deployments/test_hf_blip2_deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class TestHFBlip2Deployment:
"""Test HuggingFace BLIP2 deployment."""

@pytest.mark.asyncio
@pytest.mark.parametrize("image_name", ["Starry_Night.jpeg"])
@pytest.mark.parametrize("image_name", ["Starry_Night.jpeg", "Seated_Man.png"])
async def test_methods(self, setup_deployment, image_name):
"""Test HuggingFace BLIP2 methods."""
deployment_name, handle_name, _ = setup_deployment
Expand Down
1 change: 1 addition & 0 deletions aana/tests/deployments/test_hf_pipeline_deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
ray_actor_options={"num_gpus": 1},
user_config=HfPipelineConfig(
model_id="Salesforce/blip2-opt-2.7b",
task = "image-to-text",
model_kwargs={
"quantization_config": BitsAndBytesConfig(
load_in_8bit=False, load_in_4bit=True
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"a man sitting at a table in front of a plant"
Binary file added aana/tests/files/images/Seated_Man.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 29fb45d

Please sign in to comment.