Skip to content

Commit bc56615

Browse files
committed
Change GRANITE_VISION_MODEL_NAME to TINY_GRANITE_VISION_MODEL_NAME
Signed-off-by: Abhishek <maurya.abhishek@ibm.com>
1 parent e00703e commit bc56615

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

tests/artifacts/vision_models/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
### Constants used for model path
2121
PREDEFINED_MODEL_PATH = os.path.join(os.path.dirname(__file__))
22-
LLAMA_VISION_MODEL_NAME = os.path.join(PREDEFINED_MODEL_PATH, "tiny_llama_vision_model")
23-
GRANITE_VISION_MODEL_NAME = os.path.join(
22+
TINY_LLAMA_VISION_MODEL_NAME = os.path.join(PREDEFINED_MODEL_PATH, "tiny_llama_vision_model")
23+
TINY_GRANITE_VISION_MODEL_NAME = os.path.join(
2424
PREDEFINED_MODEL_PATH, "tiny_granite_vision_model"
2525
)

tests/data/test_data_preprocessing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262
TWITTER_COMPLAINTS_TOKENIZED_PARQUET,
6363
)
6464
from tests.artifacts.vision_models import (
65-
GRANITE_VISION_MODEL_NAME,
66-
LLAMA_VISION_MODEL_NAME,
65+
TINY_GRANITE_VISION_MODEL_NAME,
66+
TINY_LLAMA_VISION_MODEL_NAME,
6767
)
6868

6969
# Local
@@ -1843,7 +1843,7 @@ def test_get_processed_dataset(datafile, datasetconfigname):
18431843

18441844
@pytest.mark.parametrize(
18451845
"model_name",
1846-
[LLAMA_VISION_MODEL_NAME, GRANITE_VISION_MODEL_NAME],
1846+
[TINY_LLAMA_VISION_MODEL_NAME, TINY_GRANITE_VISION_MODEL_NAME],
18471847
)
18481848
def test_vision_data_collator(model_name):
18491849
"""Test the VisionDataCollator with dummy Image data."""

tests/utils/test_embedding_resize.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
# First Party
3131
from tests.artifacts.testdata import CUSTOM_TOKENIZER_TINYLLAMA
32-
from tests.artifacts.vision_models import LLAMA_VISION_MODEL_NAME
32+
from tests.artifacts.vision_models import TINY_LLAMA_VISION_MODEL_NAME
3333

3434
# Local
3535
from tuning.utils.tokenizer_data_utils import tokenizer_and_embedding_resize
@@ -209,8 +209,8 @@ def test_resize_with_multiple_of():
209209

210210

211211
def test_resize_llama_vision_model():
212-
model = AutoModelForVision2Seq.from_pretrained(LLAMA_VISION_MODEL_NAME)
213-
processor = AutoProcessor.from_pretrained(LLAMA_VISION_MODEL_NAME)
212+
model = AutoModelForVision2Seq.from_pretrained(TINY_LLAMA_VISION_MODEL_NAME)
213+
processor = AutoProcessor.from_pretrained(TINY_LLAMA_VISION_MODEL_NAME)
214214
tokenizer = processor.tokenizer
215215

216216
current_input_embeddings = model.get_input_embeddings()

0 commit comments

Comments
 (0)