The following code is for generating an alls file that is taken/modified from the vit_small.alls. This should allow you to compile dinov2_vits14, I have tested and it compiles fine.
model_name = "ONNXFILENAME" # If your onnx is named dinov2.onnx, this should be "dinov2"
alls_lines = [
"norm_layer1 = normalization([109.125, 116.28, 103.53], [58.395, 57.12, 57.375])",
"context_switch_param(mode=enabled)",
"allocator_param(enable_partial_row_buffers=disabled)",
"allocator_param(automatic_reshapes=disabled)",
"model_optimization_config(calibration, batch_size=16, calibset_size=1024)",
"pre_quantization_optimization(equalization, policy=enabled)",
"pre_quantization_optimization(ew_add_fusing, policy=disabled)",
f"model_optimization_flavor(optimization_level=0, compression_level=0)",
"pre_quantization_optimization(matmul_correction, layers={matmul*}, correction_type=zp_comp_block)",
"model_optimization_config(negative_exponent, layers={*}, rank=0)",
f"quantization_param({{{model_name}/ew_add*}}, precision_mode=a16_w16)",
f"quantization_param({{{model_name}/ew_add1}}, precision_mode=a8_w8)",
"resources_param(max_apu_utilization=0.9, max_compute_16bit_utilization=0.9, max_compute_utilization=0.9, max_control_utilization=0.9, max_input_aligner_utilization=0.9, max_memory_utilization=0.85)"
]
runner.load_model_script("\n".join(alls_lines))