Skip to content

Commit 4deeb3f

Browse files
committed
Make the test model smaller
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags:
1 parent 73d6e25 commit 4deeb3f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

examples/models/llama3_2_vision/text_decoder/test/test_text_decoder.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@
1212
import unittest
1313

1414
import torch
15-
from torch.testing import assert_close
1615

17-
from ..model import Llama3_2Decoder
16+
from executorch.examples.models.llama3_2_vision.text_decoder.model import (
17+
Llama3_2Decoder,
18+
)
19+
from torch.testing import assert_close
1820

1921
params = {
20-
"dim": 4096,
22+
"dim": 2048,
2123
"ffn_dim_multiplier": 1.3,
2224
"fusion_interval": 4,
2325
"intermediate_dim": 14336,
@@ -31,7 +33,7 @@
3133
"use_scaled_rope": True,
3234
"vision_chunk_size": 560,
3335
"vision_max_num_chunks": 4,
34-
"vocab_size": 128256,
36+
"vocab_size": 21008,
3537
"vision_num_cross_attention_layers": 1,
3638
}
3739

0 commit comments

Comments
 (0)