File tree Expand file tree Collapse file tree 4 files changed +91
-0
lines changed
Expand file tree Collapse file tree 4 files changed +91
-0
lines changed Original file line number Diff line number Diff line change 1+ load ("@fbcode_macros//build_defs:build_file_migration.bzl" , "fbcode_target" , "non_fbcode_target" )
2+ load ("@fbcode_macros//build_defs:python_library.bzl" , "python_library" )
3+
4+ oncall ("executorch" )
5+
6+ fbcode_target (_kind = python_library ,
7+ name = "mv3_model" ,
8+ srcs = [
9+ "__init__.py" ,
10+ "model.py" ,
11+ ],
12+ deps = [
13+ "//caffe2:torch" ,
14+ "//executorch/examples/models:model_base" ,
15+ "//pytorch/vision:torchvision" , # @manual
16+ ],
17+ )
Original file line number Diff line number Diff line change 1+ load ("@fbcode_macros//build_defs:build_file_migration.bzl" , "fbcode_target" , "non_fbcode_target" )
2+ load ("@fbsource//tools/target_determinator/macros:fbcode_ci_helpers.bzl" , "fbcode_ci" )
3+ load ("@fbsource//tools/target_determinator/macros:ci.bzl" , "ci" )
4+ load ("@fbsource//xplat/executorch/build:runtime_wrapper.bzl" , "runtime" )
5+
6+ oncall ("executorch" )
7+
8+ fbcode_target (_kind = runtime .python_test ,
9+ name = "test_mimi" ,
10+ srcs = ["test_mimi.py" ],
11+ labels = ci .labels (fbcode_ci .use_opt_instead_of_dev ()),
12+ deps = [
13+ "fbsource//third-party/pypi/huggingface-hub:huggingface-hub" ,
14+ "fbsource//third-party/pypi/moshi:moshi" ,
15+ "fbsource//third-party/pypi/numpy:numpy" ,
16+ "fbsource//third-party/pypi/requests:requests" ,
17+ "//caffe2:torch" ,
18+ "//executorch/backends/xnnpack/partition:xnnpack_partitioner" ,
19+ "//executorch/backends/xnnpack/quantizer:xnnpack_quantizer" ,
20+ "//executorch/devtools/backend_debug:delegation_info" ,
21+ "//executorch/runtime:runtime" ,
22+ "//pytorch/audio/src:torchaudio_core" ,
23+ ],
24+ )
Original file line number Diff line number Diff line change 1+ load ("@fbcode_macros//build_defs:build_file_migration.bzl" , "fbcode_target" , "non_fbcode_target" )
2+ load ("@fbcode_macros//build_defs:python_binary.bzl" , "python_binary" )
3+
4+ oncall ("executorch" )
5+
6+ fbcode_target (_kind = python_binary ,
7+ name = "export_model" ,
8+ srcs = [
9+ "export_model.py" ,
10+ ],
11+ main_function = "executorch.examples.models.phi-3-mini-lora.export_model.main" ,
12+ deps = [
13+ "fbsource//third-party/pypi/tiktoken:tiktoken" , # @manual
14+ "//caffe2:torch" ,
15+ "//executorch/exir:lib" ,
16+ "//pytorch/torchtune:lib" ,
17+ ],
18+ )
Original file line number Diff line number Diff line change 1+ load ("@fbcode_macros//build_defs:build_file_migration.bzl" , "fbcode_target" , "non_fbcode_target" )
2+ # Any targets that should be shared between fbcode and xplat must be defined in
3+ # targets.bzl. This file can contain fbcode-only targets.
4+
5+ load ("@fbsource//xplat/executorch/build:runtime_wrapper.bzl" , "runtime" )
6+
7+ oncall ("executorch" )
8+
9+ fbcode_target (_kind = runtime .python_binary ,
10+ name = "export_phi-3-mini" ,
11+ main_function = "executorch.examples.models.phi-3-mini.export_phi-3-mini.main" ,
12+ deps = [
13+ ":export_phi-3-mini_library" ,
14+ "//caffe2:torch" ,
15+ ],
16+ )
17+
18+ fbcode_target (_kind = runtime .python_library ,
19+ name = "export_phi-3-mini_library" ,
20+ srcs = [
21+ "export_phi-3-mini.py" ,
22+ "phi_3_mini.py" ,
23+ "static_cache.py" ,
24+ ],
25+ _is_external_target = True ,
26+ visibility = ["PUBLIC" ],
27+ deps = [
28+ "fbsource//third-party/pypi/transformers:transformers" , # @manual
29+ "//caffe2:torch" ,
30+ "//executorch/extension/llm/export:export_lib" ,
31+ ],
32+ )
You can’t perform that action at this time.
0 commit comments