ADAM is different from Adam. Flux has ADAM, and Optimisers has Adam.
To use any of the optimization packages with Optimization.jl, you need to load the wrapper. See the documentation page:
It’s a bit unfortunate, though with Julia v1.9 we can make use of the new weak dependencies feature to make that easier.