julia-ml-and-dl
Skill0 starsChanged 5 days agoMITView on GitHub
Julia machine learning: Flux and Lux models, training loops and diagnostics, GraphNeuralNetworks, ReinforcementLearning, MLJ pipelines, and ONNX export. Use when writing or debugging Julia ML code.
In this repository55 other files it gives its agents.
- advanced-optimizationSkill
- bayesian-inferenceSkill
- bayesian-pinnSkill
- bayesian-ude-workflowSkill
- catalyst-reactionsSkill
- continuum-mechanics-and-rheologySkill
- control-theorySkill
- creating-julia-appSkill
- debugging-toolkitSkill
- differential-equationsSkill
- differentiationSkill
- equation-discoverySkill
- experiment-trackingSkill
- fem-feaSkill
- julia-graph-neural-networksSkill
- julia-languageSkill
- julia-model-deploymentSkill
- julia-paper-implementationSkill
- julia-pro-helpSkill
- julia-pro-modeSkill
- julia-reinforcement-learningSkill
- modeling-toolkitSkill
- neural-pdeSkill
- nonlinear-dynamicsSkill
- numerical-methods-implementationSkill
- package-development-workflowSkill
- performance-tuningSkill
- physical-learning-systemsSkill
- playbook-debugSkill
- playbook-model-validateSkill
- playbook-package-releaseSkill
- playbook-paper-implementSkill
- playbook-perfSkill
- playbook-test-specSkill
- principle-both-sidesSkill
- principle-breakingSkill
- principle-file-is-truthSkill
- principle-gateSkill
- principle-limitsSkill
- principle-loud-failureSkill
- principle-one-stepSkill
- principle-proof-listSkill
- principle-rebuttalSkill
- principle-runtime-surfaceSkill
- principle-three-boundsSkill
- principle-three-clocksSkill
- scientific-visualizationSkill
- sciml-and-diffeqSkill
- setup-julia-proSkill
- signal-processingSkill
- simulation-and-hpcSkill
- statistical-physicsSkill
- symbolic-mathSkill
- web-development-juliaSkill
- zarr-cloud-arraysSkill
The file
Files
Julia ML and deep learning
The Julia ML stack is several ecosystems that barely talk to each other. Pick by what the model is, not by what is most popular.
| Model | Library | Why |
| classical ML, tabular, pipelines | MLJ.jl | model composition, resampling, tuning, and a registry that spans ecosystems |
| neural network, research code | Lux.jl | explicit parameters and state; works with Zygote and Enzyme |
| neural network, quick iteration | Flux.jl | implicit parameters, fewer lines, harder to differentiate with Enzyme |
| graph data | GraphNeuralNetworks.jl | GNNGraph, GNNLux layers (GCN, GAT, SAGE, GIN) |
| reinforcement learning | ReinforcementLearning.jl | environments, policies, value functions, replay |
| PDE-constrained network | NeuralPDE.jl | PINN and Bayesian PINN discretizers, see neural-pde |
| export to a service | ONNX.jl | ONNX and TorchScript, then serve from any runtime |
Traps that cost a day each
- AD backend before the training loop. Zygote rejects mutation and
try/catch; Enzyme rejects closures it cannot annotate. Choose the backend first (see differentiation), then write the loop to suit it. - Gradient check on a two-parameter toy.
Zygote.gradienton one scalar input, compared to a finite difference, catches most wiring errors before a 40-minute run. - Type instability inside the loss.
@code_warntypeon the loss function, not the model: a singleAnyin a batch field costs an order of magnitude. - Lux state is not a parameter. Optimisers see parameters; batchnorm statistics and RNG live in state and must be threaded through every call.
- GPU before kernels.
CUDA.functional(), thenCUDA.@syncaround timings, then@profile. Hand-written kernels are the last lever, not the first. - Export parity. ONNX output compared against the Julia model on ten inputs; a mismatched axis order passes the export and fails in production.
- Log the seed and the data hash. A loss curve without them is not reproducible.
Depth
| Page | Open when |
| julia-neural-networks | writing the model itself: Lux vs Flux layers, explicit parameters, state threading |
| julia-neural-architectures | the architecture is the open question — CNN, residual, attention, GNN blocks in Julia |
| julia-training-diagnostics | the loss is wrong or flat: symptom to cause to first action |
| julia-ml-pipelines | the work is tabular: MLJ machines, resampling, tuning, model composition |
Done when
The framework choice matches the work (Lux for explicit parameters and state threading, Flux for a quick model, MLJ for tabular pipelines), parameters and optimiser state are threaded rather than global, the model reproduces a known toy result, and the training diagnostics were read before any hyperparameter was tuned.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

