-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
62 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Downgrade | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
# Skip intermediate builds: always. | ||
# Cancel intermediate builds: only if it is a pull request build. | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | ||
|
||
jobs: | ||
downgrade: | ||
# if: ${{ !contains(github.event.head_commit.message, '[skip tests]') && github.base_ref == github.event.repository.default_branch }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
test_group: | ||
- core | ||
- neural_networks | ||
- integration | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: julia-actions/setup-julia@v2 | ||
with: | ||
version: "1.10" | ||
- uses: julia-actions/julia-downgrade-compat@v1 | ||
with: | ||
skip: "ReactantCore" | ||
- name: "Install Dependencies and Run Tests" | ||
run: | | ||
import Pkg | ||
Pkg.Registry.update() | ||
# Install packages present in subdirectories | ||
dev_pks = Pkg.PackageSpec[] | ||
for path in ("lib/ReactantCore",) | ||
push!(dev_pks, Pkg.PackageSpec(; path)) | ||
end | ||
Pkg.develop(dev_pks) | ||
Pkg.instantiate() | ||
Pkg.test(; coverage="user") | ||
shell: julia --color=yes --code-coverage=user --depwarn=yes --project=. {0} | ||
id: run_tests | ||
env: | ||
JULIA_PKG_SERVER_REGISTRY_PREFERENCE: eager | ||
REACTANT_TEST_GROUP: ${{ matrix.test_group }} | ||
- uses: julia-actions/julia-processcoverage@v1 | ||
if: steps.run_tests.outcome == 'success' | ||
- uses: codecov/codecov-action@v5 | ||
if: steps.run_tests.outcome == 'success' | ||
with: | ||
files: lcov.info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97bf7ad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reactant.jl Benchmarks
ViT base (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :after_enzyme)
6210362195
ns5413804517
ns1.15
ViT base (256 x 256 x 3 x 32)/forward/CPU/Reactant
5735036003
ns6129080328
ns0.94
ViT base (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :before_enzyme)
5275879695
ns6885334947
ns0.77
ViT base (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :only_enzyme)
7431765067
ns7488256383
ns0.99
ViT base (256 x 256 x 3 x 32)/forward/CPU/Lux
33171194144
ns33764137689
ns0.98
ViT small (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :after_enzyme)
1553038587
ns1572509918
ns0.99
ViT small (256 x 256 x 3 x 4)/forward/CPU/Reactant
1543277580
ns1540574169
ns1.00
ViT small (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :before_enzyme)
1534690574
ns1551622605
ns0.99
ViT small (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :only_enzyme)
3296506322
ns3307639474
ns1.00
ViT small (256 x 256 x 3 x 4)/forward/CPU/Lux
2274870712
ns2559807136
ns0.89
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :after_enzyme)
2176196590
ns2130919371
ns1.02
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Reactant
2149612180
ns2129693004
ns1.01
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :before_enzyme)
2187958767
ns2133876774
ns1.03
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :only_enzyme)
3926981418
ns3968926719
ns0.99
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Lux
5699632049
ns6168170173.5
ns0.92
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :after_enzyme)
1487184830
ns1426118988
ns1.04
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Reactant
1479317708
ns1426378204
ns1.04
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :before_enzyme)
1485573585
ns1409132409
ns1.05
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :only_enzyme)
3328538147
ns3150696061
ns1.06
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Lux
1128541230.5
ns1640702004.5
ns0.69
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :after_enzyme)
1775441707
ns1694201241
ns1.05
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Reactant
1781070041
ns1694859743
ns1.05
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :before_enzyme)
1770243638
ns1692209732
ns1.05
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :only_enzyme)
3622272410
ns3438162145
ns1.05
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Lux
3191550201.5
ns3437779789.5
ns0.93
ViT small (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :after_enzyme)
2260327329
ns2125368450
ns1.06
ViT small (256 x 256 x 3 x 16)/forward/CPU/Reactant
2242602405
ns2180362988
ns1.03
ViT small (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :before_enzyme)
2236526873
ns2113675356
ns1.06
ViT small (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :only_enzyme)
4035446288
ns3901836386
ns1.03
ViT small (256 x 256 x 3 x 16)/forward/CPU/Lux
6075855044
ns6764812162
ns0.90
ViT small (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :after_enzyme)
3029617019
ns2977712820
ns1.02
ViT small (256 x 256 x 3 x 32)/forward/CPU/Reactant
3038364901
ns3003667317
ns1.01
ViT small (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :before_enzyme)
3047756026
ns3046943792
ns1.00
ViT small (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :only_enzyme)
5020610211
ns4857405620
ns1.03
ViT small (256 x 256 x 3 x 32)/forward/CPU/Lux
21336851068
ns9041023986
ns2.36
ViT base (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :after_enzyme)
3358460165
ns3109229306
ns1.08
ViT base (256 x 256 x 3 x 16)/forward/CPU/Reactant
3528781027
ns3163244884
ns1.12
ViT base (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :before_enzyme)
3221856514
ns3152278733
ns1.02
ViT base (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :only_enzyme)
5157120407
ns5077029212
ns1.02
ViT base (256 x 256 x 3 x 16)/forward/CPU/Lux
12293712706
ns15973751896
ns0.77
ViT base (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :after_enzyme)
1889217446
ns1845679933
ns1.02
ViT base (256 x 256 x 3 x 4)/forward/CPU/Reactant
1906465434
ns1847427891
ns1.03
ViT base (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :before_enzyme)
1910603050
ns1823520802
ns1.05
ViT base (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :only_enzyme)
3769045152
ns3578977105
ns1.05
ViT base (256 x 256 x 3 x 4)/forward/CPU/Lux
3405687272
ns3805640188.5
ns0.89
This comment was automatically generated by workflow using github-action-benchmark.