File tree Expand file tree Collapse file tree 4 files changed +180
-131
lines changed
examples/models/llama3_2_vision/preprocess Expand file tree Collapse file tree 4 files changed +180
-131
lines changed Original file line number Diff line number Diff line change 37
37
CMAKE_ARGS="-DEXECUTORCH_BUILD_XNNPACK=ON -DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON" \
38
38
.ci/scripts/setup-linux.sh cmake
39
39
40
+ # Install llama3_2_vision dependencies.
41
+ PYTHON_EXECUTABLE=python ./examples/models/llama3_2_vision/install_requirements.sh
42
+
40
43
# Run pytest with coverage
41
44
pytest -n auto --cov=./ --cov-report=xml
42
45
# Run gtest
67
70
${CONDA_RUN} --no-capture-output \
68
71
.ci/scripts/setup-macos.sh cmake
69
72
73
+ # Install llama3_2_vision dependencies.
74
+ PYTHON_EXECUTABLE=python ${CONDA_RUN} --no-capture-output \
75
+ ./examples/models/llama3_2_vision/install_requirements.sh
76
+
70
77
# Run pytest with coverage
71
78
${CONDA_RUN} pytest -n auto --cov=./ --cov-report=xml
72
79
# Run gtest
Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ class PreprocessConfig:
26
26
max_num_tiles : int = 4
27
27
tile_size : int = 224
28
28
antialias : bool = False
29
+ # Used for reference eager model from torchtune.
30
+ resize_to_max_canvas : bool = False
31
+ possible_resolutions : Optional [List [Tuple [int , int ]]] = None
29
32
30
33
31
34
class CLIPImageTransformModel (EagerModelBase ):
You can’t perform that action at this time.
0 commit comments