Skip to content

Commit 273a74e

Browse files
committed
Add export-models workflow for DL3 XNNPACK export
1 parent 17ced37 commit 273a74e

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
# All rights reserved.
3+
#
4+
# This source code is licensed under the BSD-style license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
7+
name: Export Models
8+
9+
on:
10+
schedule:
11+
# Run nightly at midnight UTC
12+
- cron: '0 0 * * *'
13+
workflow_dispatch:
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
dl3_export:
20+
runs-on: ubuntu-latest
21+
name: Export DL3 to XNNPACK
22+
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@v4
26+
27+
- name: Set up Python
28+
uses: actions/setup-python@v5
29+
with:
30+
python-version: '3.11'
31+
32+
- name: Install dependencies
33+
run: |
34+
python -m pip install --upgrade pip
35+
pip install executorch
36+
37+
- name: Run export script
38+
working-directory: dl3/python
39+
run: python export.py
40+
41+
- name: Upload exported model
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: dl3-xnnpack-fp32
45+
path: dl3/python/dl3_xnnpack_fp32.pte
46+
if-no-files-found: error

0 commit comments

Comments
 (0)