Sentence Similarity
sentence-transformers
Safetensors
Chinese
English
xlm-roberta
balatro
rag
bge-m3
feature-extraction
bilingual
chinese
gaming
embedding
text-embeddings-inference
Run this model with HF Jobs
Run Absurbedpoetry/balatro-bge-m3 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Absurbedpoetry/balatro-bge-m3. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Absurbedpoetry/balatro-bge-m3 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Absurbedpoetry/balatro-bge-m3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Absurbedpoetry/balatro-bge-m3 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Absurbedpoetry/balatro-bge-m3") sentences = [ "那是 個快樂的人", "那是 條快樂的狗", "那是 個非常幸福的人", "今天是晴天" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
🃏 Balatro-BGE-M3 (balatro-bge-m3)
First open-source bilingual (Simplified Chinese + English) domain-fine-tuned RAG embedding model for Balatro (《小丑牌》).
面向《小丑牌》(Balatro)的中英双语领域微调 RAG 向量检索模型,基于
BAAI/bge-m3在全量 503 篇 Wiki 词条与玩家真实中文黑话/简中官方译名问答对上采用对比学习微调(FP16 无损轻量化权重仅 1.07 GB)。
✨ Highlights
- Official Simplified Chinese + Community Slang Alignment:精准对齐《小丑牌》官方简体中文译名与中文玩家高频黑话(如
Hanging Chad → 悬空选票 / 挂票、Cavendish → 卡文迪什 / 大香蕉、Gros Michel → 大麦克 / 小香蕉、Oops! All 6s → 六六大顺、Brainstorm → 头脑风暴 / 脑暴、Baron → 男爵、Mime → 哑剧演员等),彻底解决原生通用模型跨语言与黑话漏检问题。 - **Lossless FP16 Lightweight Weights (~1.07 GB)**:精度较 BF16 几乎 0.00% 损失,可在 4GB 显存显卡(如 GTX 1650)或普通 CPU 上流畅运行。
- Full Wiki Coverage:覆盖全部 503 篇 balatrowiki.org 有效词条(157 张小丑牌、37 牌组、32 优惠券、30 盲注、24 标签、22 塔罗牌、21 修饰符、18 幻灵牌、12 星球牌、8 赌注及 142 篇机制/攻略)。
📊 Benchmark (206 Unseen Chinese/Slang Eval Queries / 503-Doc Corpus)
| Metric | Base BAAI/bge-m3 |
Fine-Tuned balatro-bge-m3 |
FP16 Release (1.07 GB) |
Gain |
|---|---|---|---|---|
| Recall@1 | 67.96% | 85.92% | 85.92% | +17.96% |
| Recall@3 | 82.04% | 96.12% | 96.12% | +14.08% |
| Recall@5 | 86.89% | 97.57% | 97.57% | +10.68% |
| Recall@10 | 90.78% | 99.03% | 99.03% | +8.25% |
| MRR@10 | 75.84% | 91.01% | 91.00% | +15.17% |
Real Chinese Slang Retrieval Comparison
- Query:
挂票的效果是什么,怎么配照片- Before:
照片 (0.598)>悬空选票 (0.580) - After:
悬空选票 Hanging Chad (0.425)>照片 Photograph (0.340)
- Before:
- Query:
手牌每留一张K就乘1.5倍率的是哪张小丑- Before: Missed completely (Top-3:
印错小丑 / 积分卡 / 半张小丑) - After:
男爵 Baron (0.541)#1 (2nd place:0.331)
- Before: Missed completely (Top-3:
🚀 Quickstart
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("Absurbedpoetry/balatro-bge-m3")
queries = ["挂票怎么配照片?", "手牌每留一张K乘1.5倍率的是哪张小丑?"]
embeddings = model.encode(queries, normalize_embeddings=True)
print(embeddings.shape) # (2, 1024)
🛠️ Training Details
- Base Model:
BAAI/bge-m3(1024-dim dense embeddings,max_seq_length=512) - Objective:
MultipleNegativesRankingLosswithBatchSamplers.NO_DUPLICATES - Training Data: 1,806 bilingual & slang contrastive pairs (
206held-out unseen queries for evaluation) - Hardware & Hyperparameters: NVIDIA L4 (22 GB),
bf16,batch_size=32,lr=2e-5,epochs=3,warmup_steps=17(317.6s total) - Source Code & Pipeline: https://github.com/Absurbedpoetry/balatro-rag
⚖️ License (Non-Commercial Only / 禁止直接商用)
- Code & Fine-Tuned Weights: Licensed under PolyForm Noncommercial License 1.0.0 (
PolyForm-Noncommercial-1.0.0, see NOTICE). Free for personal study, hobby projects, academic research, and non-commercial sharing. Direct commercial use, paid hosting/SaaS, or commercial resale without prior written permission is strictly prohibited. - Training Data Attribution: Derived from plain-text articles on balatrowiki.org under CC BY-NC-SA 3.0. No game artwork or proprietary assets from Balatro (LocalThunk / Playstack) are included.
- Downloads last month
- 33
Model tree for Absurbedpoetry/balatro-bge-m3
Base model
BAAI/bge-m3