-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement a separate
TracedRNumber
(#161)
* feat: TracedRScalar * feat: partial progress on getting scalars to work * refactor: Scalar --> Number * fix: batching * fix: promote_rule and introduce union over primitive types * chore: apply formatting * feat: type-restrict arrays * refactor: move scalar ops to a separate file * feat: support Base.float * fix: import ordering * feat: handle `broadcast_preserving_zero_d` in a generic fashion * refactor: move code a bit * test: more test fixes * chore: apply formatting * fix: setindex with scalars * fix: scalar broadcasting case * feat: support BFloat16 from Core (if available) * test: more native lux functionality unblocked * refactor: use a union type for traced types * fix: check for reactant primitives * fix: missing import * fix: correct semantics for Colon mapreduce * fix: trace_type * fix: minor fixes * feat: support logsoftmax * fix: bool promote rule * fix: broadcasting of closures * refactor: use TracedTypes * Fix type of `preserved_args` * Rename `TracedTypes` to `TracedType` * small testset rename * fix: special handling for concatenation of numbers * Reenable tests * Rename `ReactantPrimitives` to `ReactantPrimitive` --------- Co-authored-by: Sergio Sánchez Ramírez <[email protected]> Co-authored-by: Sergio Sánchez Ramírez <[email protected]>
- Loading branch information
1 parent
f2c0e8a
commit 6e89952
Showing
13 changed files
with
557 additions
and
252 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
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
Oops, something went wrong.
6e89952
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/CUDA/Reactant
1325630083
ns1315729546
ns1.01
ViT base (256 x 256 x 3 x 32)/forward/CUDA/Lux
217828012
ns212083499
ns1.03
ViT base (256 x 256 x 3 x 32)/forward/CPU/Reactant
6953042665
ns5286469750
ns1.32
ViT base (256 x 256 x 3 x 32)/forward/CPU/Lux
19834605771
ns23583347555
ns0.84
ViT small (256 x 256 x 3 x 4)/forward/CUDA/Reactant
1251065036
ns1254858296
ns1.00
ViT small (256 x 256 x 3 x 4)/forward/CUDA/Lux
8303675
ns8478570
ns0.98
ViT small (256 x 256 x 3 x 4)/forward/CPU/Reactant
1644888663
ns1636237670
ns1.01
ViT small (256 x 256 x 3 x 4)/forward/CPU/Lux
3346211607.5
ns2376437823
ns1.41
ViT tiny (256 x 256 x 3 x 32)/forward/CUDA/Reactant
1268605475.5
ns1266018905
ns1.00
ViT tiny (256 x 256 x 3 x 32)/forward/CUDA/Lux
91911558
ns84820407
ns1.08
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Reactant
2175800720
ns2170879105
ns1.00
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Lux
5163881653
ns4675094299
ns1.10
ViT tiny (256 x 256 x 3 x 4)/forward/CUDA/Reactant
1305929899
ns1263496480
ns1.03
ViT tiny (256 x 256 x 3 x 4)/forward/CUDA/Lux
8108212
ns7782824
ns1.04
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Reactant
1478744083.5
ns1467043032.5
ns1.01
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Lux
1501162607
ns1685775445
ns0.89
ViT tiny (256 x 256 x 3 x 16)/forward/CUDA/Reactant
1344634647.5
ns1306815930
ns1.03
ViT tiny (256 x 256 x 3 x 16)/forward/CUDA/Lux
11617967
ns11611908
ns1.00
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Reactant
1762294312
ns1752808523
ns1.01
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Lux
2714323365
ns2463987825.5
ns1.10
ViT small (256 x 256 x 3 x 16)/forward/CUDA/Reactant
1258217588
ns1325877558.5
ns0.95
ViT small (256 x 256 x 3 x 16)/forward/CUDA/Lux
85973438
ns90330187
ns0.95
ViT small (256 x 256 x 3 x 16)/forward/CPU/Reactant
2223618180
ns2213119086
ns1.00
ViT small (256 x 256 x 3 x 16)/forward/CPU/Lux
4021036919
ns4023816395
ns1.00
ViT small (256 x 256 x 3 x 32)/forward/CUDA/Reactant
1322735409
ns1270812264
ns1.04
ViT small (256 x 256 x 3 x 32)/forward/CUDA/Lux
115423826
ns113097539
ns1.02
ViT small (256 x 256 x 3 x 32)/forward/CPU/Reactant
2991911664
ns3042643080
ns0.98
ViT small (256 x 256 x 3 x 32)/forward/CPU/Lux
15616144600
ns8210106924.5
ns1.90
ViT base (256 x 256 x 3 x 16)/forward/CUDA/Reactant
1316851458
ns1324054039
ns0.99
ViT base (256 x 256 x 3 x 16)/forward/CUDA/Lux
128824702.5
ns127669686.5
ns1.01
ViT base (256 x 256 x 3 x 16)/forward/CPU/Reactant
3240917788
ns3203794253
ns1.01
ViT base (256 x 256 x 3 x 16)/forward/CPU/Lux
6435316514
ns11004907984
ns0.58
ViT base (256 x 256 x 3 x 4)/forward/CUDA/Reactant
1330411921
ns1299288245
ns1.02
ViT base (256 x 256 x 3 x 4)/forward/CUDA/Lux
83811390
ns96277750
ns0.87
ViT base (256 x 256 x 3 x 4)/forward/CPU/Reactant
2022207539.5
ns2155333265.5
ns0.94
ViT base (256 x 256 x 3 x 4)/forward/CPU/Lux
2432459556.5
ns2863535293.5
ns0.85
This comment was automatically generated by workflow using github-action-benchmark.