Skip to content
Open
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
3 changes: 1 addition & 2 deletions .ci/scripts/test_model.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,10 @@ test_model() {
run_portable_executor_runner
rm "./${MODEL_NAME}.pte"
fi
STRICT="--strict"
STRICT="--no-strict"
if [[ "${MODEL_NAME}" == "llava" ]]; then
# Install requirements for llava
bash examples/models/llava/install_requirements.sh
STRICT="--no-strict"
fi
if [[ "${MODEL_NAME}" == "qwen2_5" ]]; then
# Install requirements for export_llama
Expand Down
4 changes: 2 additions & 2 deletions examples/xnnpack/aot_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@

model = model.eval()
# pre-autograd export. eventually this will become torch.export
ep = torch.export.export_for_training(model, example_inputs, strict=True)
ep = torch.export.export_for_training(model, example_inputs, strict=False)
model = ep.module()

if args.quantize:
logging.info("Quantizing Model...")
# TODO(T165162973): This pass shall eventually be folded into quantizer
model = quantize(model, example_inputs, quant_type)
ep = torch.export.export_for_training(model, example_inputs, strict=True)
ep = torch.export.export_for_training(model, example_inputs, strict=False)

edge = to_edge_transform_and_lower(
ep,
Expand Down
Loading