Downloads · 30 days
0
niallone/melodygenerator
melodygenerator is a text generation model from niallone. Use it when you need the model to write or continue text. It is set up for pytorch. The card lists the license as mit.
AI models for generating original musical melodies, trained on MIDI data across multiple genres. These models power melodygenerator.fun.
Downloads · 30 days
0
Access
Public
Updated Mar 20, 2026
Repo size
1.6 GB
Likes
1
Public
Click a slice to open those files.
.pkl1.1 GB · 69%
From the Hugging Face model README
AI models for generating original musical melodies, trained on MIDI data across multiple genres. These models power melodygenerator.fun.
| Version | Architecture | Genre | Vocab Size | Training Data | Format |
|---|---|---|---|---|---|
| v2 | LSTM (3-layer) | R&B / 90s Hip Hop | 59 | 24 songs | PyTorch + Keras |
| v3 | LSTM (3-layer) | Dance | 635 | ~200 songs | PyTorch + Keras |
| v4 | LSTM (3-layer) | Jazz | 635 | ~120 songs | PyTorch + Keras |
| v5 | LSTM (3-layer) | Various | 629 | 275 songs | PyTorch + Keras |
| v6 | LSTM + Embeddings | Various | 362 | 275 songs | PyTorch |
| v7 | Transformer | Various | 512 | 275 songs | PyTorch |
| v8 | Transformer | Various + Classical | 1024 | 275 songs + MAESTRO | PyTorch |
Each version directory contains:
model.pt — PyTorch model weightsmetadata.json — Model configuration and vocabulary infoseeds.json — Pre-computed seed sequences for generationtokenizer/tokenizer.json — MidiTok REMI tokenizer (v6-v8 only)model.h5 / model.h5_data.pkl — Legacy Keras weights (v2-v5 only)import torch
# Load a model
checkpoint = torch.load("v8/model.pt", map_location="cpu")
For full inference with generation, MIDI conversion, and audio rendering, see the melodygenerator repository.