##Setup Fix — Documented in Fork
Hey! I managed to get midi-model fully working on Windows after hitting every dependency error in the book, and I wanted to share it here in case it helps others.
What I fixed / documented
- Pinned
transformers==4.38.2 and peft==0.10.0 to prevent breaking API changes from newer versions
- Added install order —
requirements.txt overwrites peft back to 0.18+, so it has to be re-pinned after
- FluidSynth path setup (hardcoded to
C:\tools\fluidsynth\bin)
- ffmpeg pre-built binary install (not source) for audio export
- CUDA-enabled torch install via
--index-url https://download.pytorch.org/whl/cu121
spaces module missing from requirements.txt locally
tokenizers version pin to 0.15.2
- Optional: Gradio share link frpc workaround
I documented every error encountered and the exact fix for each one in the README of my fork:
👉 https://github.com/Jayden-Dollaga/midi-model
Why I'm posting this
I noticed there are already a bunch of open issues about these exact errors. Would you be open to merging a PR with the updated README, or at least linking to the fork in the docs? Happy to open a pull request if that's easier.
Thanks for the project — the model itself works great once you get past the setup!
##Setup Fix — Documented in Fork
Hey! I managed to get
midi-modelfully working on Windows after hitting every dependency error in the book, and I wanted to share it here in case it helps others.What I fixed / documented
transformers==4.38.2andpeft==0.10.0to prevent breaking API changes from newer versionsrequirements.txtoverwritespeftback to 0.18+, so it has to be re-pinned afterC:\tools\fluidsynth\bin)--index-url https://download.pytorch.org/whl/cu121spacesmodule missing fromrequirements.txtlocallytokenizersversion pin to0.15.2I documented every error encountered and the exact fix for each one in the README of my fork:
👉 https://github.com/Jayden-Dollaga/midi-model
Why I'm posting this
I noticed there are already a bunch of open issues about these exact errors. Would you be open to merging a PR with the updated README, or at least linking to the fork in the docs? Happy to open a pull request if that's easier.
Thanks for the project — the model itself works great once you get past the setup!