Skip to content

Enable T5 and similar models #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
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
35 changes: 0 additions & 35 deletions .github/workflows/test_export.yml

This file was deleted.

29 changes: 20 additions & 9 deletions .github/workflows/test_models.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ExecuTorch Runtime / Python - Test
name: ExecuTorch E2E / Python - Test

on:
push:
Expand All @@ -15,17 +15,28 @@ jobs:
strategy:
fail-fast: false
matrix:
test-modeling:
- common
- albert
- bert
- distilbert
- eurobert
- gemma
- gemma
- llama
- olmo
- qwen2
- roberta
- t5
executorch-version: ['0.4.0', 'nightly']
python-version: ['3.10', '3.11', '3.12']
os: [macos-15]
test-modeling:
- test_modeling_gemma2.py
- test_modeling_gemma.py
- test_modeling_llama.py
- test_modeling_olmo.py
- test_modeling.py
- test_modeling_qwen2.py

# Custom job name, now shortened and cleaner
name: build (${{ matrix.test-modeling }}, et=${{ matrix.executorch-version }}, py=${{ matrix.python-version }}, matrix.os)
runs-on: ${{ matrix.os }}
env:
MODEL_NAME: ${{ matrix.test-modeling }}
steps:
- uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python-version }}
Expand All @@ -39,4 +50,4 @@ jobs:
- name: Run tests
working-directory: tests
run: |
RUN_SLOW=1 pytest models/${{ matrix.test-modeling }} -s -vvvv --durations=0
RUN_SLOW=1 pytest models/test_modeling_${{ matrix.test-modeling }}.py -s -vvvv --durations=0
8 changes: 7 additions & 1 deletion optimum/executorch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,17 @@
_import_structure = {
"modeling": [
"ExecuTorchModelForCausalLM",
"ExecuTorchModelForMaskedLM",
"ExecuTorchModelForSeq2SeqLM",
],
}

if TYPE_CHECKING:
from .modeling import ExecuTorchModelForCausalLM
from .modeling import (
ExecuTorchModelForCausalLM,
ExecuTorchModelForMaskedLM,
ExecuTorchModelForSeq2SeqLM,
)
else:
import sys

Expand Down
Loading
Loading