Hacker GitHub

← All repos

minimaxir/mtg-embeddings

View on GitHub ↗ ★ 66 Jupyter Notebook

Code used to create text embeddings of all Magic: The Gathering cards.

3 mentions on Hacker News by 1 person: 0 stories, 3 comments · first 2025-02-24 · latest 2025-03-16

Mentions per year 3 mentions · busiest year 2025 (3)
20082026
  1. …composite five images: one consisting of the left half of the image, the other four in quadrants ( https://github.com/minimaxir/mtg-embeddings/blob/main/mtg_re... ). I know how to do that in PIL (have to manually specify the coordinates…
    comment by minimaxir · 2025-03-16 · in AI Is Making Developers Dumb
  2. …L4 GPU on Google Cloud Platform (g2-standard-4) at ~$0.28/hour, costing < $0.01 overall: https://github.com/minimaxir/mtg-embeddings/blob/main/mtg_em... The base ModernBERT uses CUDA tricks not available in MPS, so I suspect it would take…
  3. In general I like to send structured data (see the input format here: https://github.com/minimaxir/mtg-embeddings ), but the ModernBERT base for the embedding model used here specifically has better benefits implicitly for structured data…