Skip to content

Commit

Permalink
comments etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Dec 14, 2023
1 parent 09e9551 commit a5214a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions benchmarking/benchmark.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ modelstrings = (
"EfficientNetv2(:small)",
"ConvMixer(:small)",
"ConvNeXt(:small)",
# "MLPMixer()", # found no tests
# "ResMLP()", # found no tests
# "gMLP()", # found no tests
# "MLPMixer()", # no tests found
# "ResMLP()", # no tests found
# "gMLP()", # no tests found
"ViT(:tiny)",
"UNet()"
)
Expand All @@ -60,6 +60,7 @@ for (i, modstring) in enumerate(modelstrings)
@timeit to "$modstring" begin
@info "Evaluating $i/$(length(modelstrings)) $modstring"
@timeit to "First Load" eval(Meta.parse(modstring))
# second load simulates what might be possible with a proper set-up pkgimage workload
@timeit to "Second Load" model=eval(Meta.parse(modstring))
@timeit to "Training" train(model,
train_loader,
Expand Down
4 changes: 2 additions & 2 deletions benchmarking/tooling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ function train(args...;kwargs...)
try
_train(args...; kwargs...)
catch ex
rethrow()
# rethrow()
println()
@error sprint(showerror, ex)
GC.gc()
return false
end
end
end

0 comments on commit a5214a4

Please sign in to comment.