# Flux simple LSTM

**URL:** https://discourse.julialang.org/t/flux-simple-lstm/51929
**Category:** New to Julia
**Created:** [December 16, 2020, 12:39pm UTC](https://discourse.julialang.org/t/flux-simple-lstm/51929 "2020-12-16T12:39:08Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Tomas\_Berky](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomas_berky/32/19540_2.png) [@Tomas\_Berky](https://discourse.julialang.org/u/Tomas_Berky)
#### Post date: [December 16, 2020, 12:39pm UTC](https://discourse.julialang.org/t/flux-simple-lstm/51929/1 "2020-12-16T12:39:08Z")

</div>

Hello guys,

i want to create learn how to create simple LSTM. Do you guys have a guess where can i find some tutorial? Model\_zoo is not sadly not enough for me, i need more commentary on that…

---

<div class="post-metadata">

### Author: ![datnamer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/datnamer/32/3471_2.png) [@datnamer](https://discourse.julialang.org/u/datnamer)
#### Post date: [December 16, 2020, 11:29pm UTC](https://discourse.julialang.org/t/flux-simple-lstm/51929/2 "2020-12-16T23:29:28Z")

</div>

Hey, check out : [https://github.com/FluxML/Flux.jl/pull/1428#issuecomment-745801257](https://github.com/FluxML/Flux.jl/pull/1428#issuecomment-745801257)

---

<div class="post-metadata">

### Author: ![Tomas\_Berky](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomas_berky/32/19540_2.png) [@Tomas\_Berky](https://discourse.julialang.org/u/Tomas_Berky)
#### Post date: [January 13, 2021, 7:30am UTC](https://discourse.julialang.org/t/flux-simple-lstm/51929/3 "2021-01-13T07:30:20Z")

</div>

Thats not understandable for me…

---

<div class="post-metadata">

### Author: ![Colin\_Beckingham](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/colin_beckingham/32/4878_2.png) [@Colin\_Beckingham](https://discourse.julialang.org/u/Colin_Beckingham)
#### Post date: [January 13, 2021, 12:35pm UTC](https://discourse.julialang.org/t/flux-simple-lstm/51929/4 "2021-01-13T12:35:07Z")

</div>

One route to understanding is to take an end-to-end working basic model in Flux which uses the `Chain()`, `train!()` and `data_loader()` functions, possibly a simple regression type working with 1-d data, reduce the model to a single `Dense()` function (fully connected) and practice making minor tweaks to the code and explaining the result. When confident, introduce an `LSTM()` function into the chain before the final fully connected layer and once that is working continue building the model to more complexity.

It’s more meaningful than copy and paste.

---

<div class="post-metadata">

### Author: ![Skoffer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skoffer/32/378_2.png) [@Skoffer](https://discourse.julialang.org/u/Skoffer)
#### Post date: [January 13, 2021, 12:50pm UTC](https://discourse.julialang.org/t/flux-simple-lstm/51929/5 "2021-01-13T12:50:22Z")

</div>

Presumably, it means that you can read [Recurrent Models](https://github.com/FluxML/Flux.jl/blob/master/docs/src/models/recurrence.md) documentation which is not in the stable version of docs yet.

---

<div class="post-metadata">

### Author: ![mcreel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mcreel/32/30088_2.png) [@mcreel](https://discourse.julialang.org/u/mcreel)
#### Post date: [January 13, 2021, 12:56pm UTC](https://discourse.julialang.org/t/flux-simple-lstm/51929/6 "2021-01-13T12:56:32Z")

</div>

Here’s an example that I found helpful: [https://github.com/mkschleg/FluxBooks.jl/blob/main/RNNs.ipynb](https://github.com/mkschleg/FluxBooks.jl/blob/main/RNNs.ipynb)
