Downloads · 30 days
88
1% of all-time downloads
minimaxir/magic-the-gathering
magic-the-gathering is a text generation model from minimaxir. Use it when you need the model to write or continue text. It is set up for transformers.
A small (~1M parameters) GPT-2 model trained on Magic: The Gathering cards from sets up to and including Strixhaven and Commander 2021.
Downloads · 30 days
88
1% of all-time downloads
All-time downloads
16K
Public
Repo size
21.3 MB
Likes
5
Public
Click a slice to open those files.
.bin7.3 MB · 52%
From the Hugging Face model README
A small (~1M parameters) GPT-2 model trained on Magic: The Gathering cards from sets up to and including Strixhaven and Commander 2021.
The model was trained 8 hours on a V100 on about ~22k unique encoded cards, with 10 permutations of each possible card.
Examples of encoded cards:
<|toughness|><|text|>Counter target spell unless its controller pays {X}.<|power|><|type|>Instant<|loyalty|><|manaCost|>{X}{U}<|name|>Clash of Wills
<|loyalty|><|text|>~ enters the battlefield tapped.
{T}: Add {C}.
{T}: Add {U} or {R}. ~ deals 1 damage to you.<|toughness|><|name|>Caldera Lake<|power|><|manaCost|><|type|>Land
<|loyalty|>5<|text|>+1: Scry 1, then draw a card.
−2: Return target creature to its owner's hand.
−8: You get an emblem with "Whenever an opponent casts their first spell each turn, counter that spell."<|name|>Jace, Unraveler of Secrets<|toughness|><|type|>Legendary Planeswalker — Jace<|manaCost|>{3}{U}{U}<|power|>
The generated cards follow a similar schema, however because the model learns all possible permutations of the schema, the user can prompt the generation with any combination of schema.