diff --git a/docs/src/assets/tutorials/blas_optimizations.jpg b/docs/src/assets/tutorials/blas_optimizations.jpg new file mode 100644 index 000000000..d615fe7b4 Binary files /dev/null and b/docs/src/assets/tutorials/blas_optimizations.jpg differ diff --git a/docs/src/assets/tutorials/gravitational_waveform.png b/docs/src/assets/tutorials/gravitational_waveform.png new file mode 100644 index 000000000..39ba22140 Binary files /dev/null and b/docs/src/assets/tutorials/gravitational_waveform.png differ diff --git a/docs/src/assets/tutorials/hypernet.jpg b/docs/src/assets/tutorials/hypernet.jpg new file mode 100644 index 000000000..7539f2f86 Binary files /dev/null and b/docs/src/assets/tutorials/hypernet.jpg differ diff --git a/docs/src/assets/tutorials/julia.jpg b/docs/src/assets/tutorials/julia.jpg new file mode 100644 index 000000000..dcd7051e7 Binary files /dev/null and b/docs/src/assets/tutorials/julia.jpg differ diff --git a/docs/src/assets/tutorials/lstm-illustrative.webp b/docs/src/assets/tutorials/lstm-illustrative.webp new file mode 100644 index 000000000..d5353deeb Binary files /dev/null and b/docs/src/assets/tutorials/lstm-illustrative.webp differ diff --git a/docs/src/assets/tutorials/mlp.webp b/docs/src/assets/tutorials/mlp.webp new file mode 100644 index 000000000..62446654d Binary files /dev/null and b/docs/src/assets/tutorials/mlp.webp differ diff --git a/docs/src/assets/tutorials/mnist.jpg b/docs/src/assets/tutorials/mnist.jpg new file mode 100644 index 000000000..07ff1edd0 Binary files /dev/null and b/docs/src/assets/tutorials/mnist.jpg differ diff --git a/docs/src/components/Gallery.vue b/docs/src/components/Gallery.vue new file mode 100644 index 000000000..e5cbed2c7 --- /dev/null +++ b/docs/src/components/Gallery.vue @@ -0,0 +1,39 @@ + + + + + + + \ No newline at end of file diff --git a/docs/src/components/GalleryImage.vue b/docs/src/components/GalleryImage.vue new file mode 100644 index 000000000..1ca0ac2a7 --- /dev/null +++ b/docs/src/components/GalleryImage.vue @@ -0,0 +1,129 @@ + + + + + \ No newline at end of file diff --git a/docs/src/tutorials/index.md b/docs/src/tutorials/index.md index 0092a7608..ec9a3dede 100644 --- a/docs/src/tutorials/index.md +++ b/docs/src/tutorials/index.md @@ -1,145 +1,95 @@ ```@raw html ---- -layout: page ---- + - - - - - - - - - - - - - - - - - - - - +# Tutorials + +## Beginner Tutorials + + + +## Intermediate Tutorials + + + +## Advanced Tutorials + + + +## Aggregated Tutorials + +::: warning + +These tutorials are developed by the community and may not be up-to-date with the latest +version of `Lux.jl`. Please refer to the official documentation for the most up-to-date +information. + +Please open an issue (ideally both at `Lux.jl` and at the downstream linked package) if any +of them are non-functional and we will try to get them updated. + +::: + ``` diff --git a/docs/tutorials.jl b/docs/tutorials.jl index 18d6c7aff..1eb7013c8 100644 --- a/docs/tutorials.jl +++ b/docs/tutorials.jl @@ -39,21 +39,17 @@ try withenv("JULIA_DEBUG" => "Literate", "PKG_LOG_PATH" => pkg_log_path, "LUX_PATH" => lux_path, "JULIA_CUDA_HARD_MEMORY_LIMIT" => "$(CUDA_MEMORY_LIMIT)%", - "OUTPUT_DIRECTORY" => joinpath(OUTPUT, d), - "EXAMPLE_PATH" => p_, "EXAMPLE_NAME" => name, - "JULIA_NUM_THREADS" => Threads.nthreads()) do - cmd = `$(Base.julia_cmd()) --color=yes --project=$(tutorial_proj) -e \ + "OUTPUT_DIRECTORY" => joinpath(OUTPUT, d), "EXAMPLE_PATH" => p_, + "EXAMPLE_NAME" => name, "JULIA_NUM_THREADS" => Threads.nthreads(), + "JULIA_PKG_PRECOMPILE_AUTO" => 0) do + cmd = `$(Base.julia_cmd()) --color=yes --startup-file=no --project=$(tutorial_proj) -e \ 'using Pkg; io=open(ENV["PKG_LOG_PATH"], "w"); Pkg.develop(; path=ENV["LUX_PATH"], io); Pkg.instantiate(; io); - Pkg.precompile(; io); - eval(Meta.parse("using " * join(keys(Pkg.project().dependencies), ", "))); - close(io)'` - @info "Running Command: $(cmd)" - run(cmd) - cmd = `$(Base.julia_cmd()) --color=yes --project=$(tutorial_proj) -e \ - 'using Literate; + close(io); + + using Literate; function preprocess(path, str) new_str = replace(str, "__DIR = @__DIR__" => "__DIR = \"$(dirname(path))\"") appendix_code = "\n# ## Appendix\nusing InteractiveUtils\nInteractiveUtils.versioninfo()\nif @isdefined(LuxCUDA) && CUDA.functional(); println(); CUDA.versioninfo(); end\nif @isdefined(LuxAMDGPU) && LuxAMDGPU.functional(); println(); AMDGPU.versioninfo(); end\nnothing#hide"