Last active
August 12, 2019 04:32
-
-
Save bearpelican/82096c693ebccd5cbdec6965d07d5d02 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config = default_config() # model dimensions | |
config['transpose_range'] = (0, 12) # data augmentation: transpose key | |
config['encode_position'] = True # enable beat positional encoding | |
config['mask_steps'] = 4 # attention mask: teacher forcing | |
model = get_language_model(arch=MusicTransformerXL, vocab_sz=len(data.vocab), config=config.copy()) | |
learn = MusicLearner(data, model) | |
learn.to_fp16(dynamic=True, clip=0.5); # mixed precision | |
learn.fit_one_cycle(4) # one cycle learning rates |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment