Downloads · 30 days
0
rb512/resonant-frank
resonant-frank is a machine learning model from rb512. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Frank is a retrieval + tone-aware embedding model. It pairs a frozen BGE-large-en-v1.5 backbone (competitive retrieval) with a trained tone head that separates register (formal vs casual) as an independent signal.
Downloads · 30 days
0
Access
Public
Updated Jun 27, 2026
Repo size
5.3 MB
Likes
0
Public
Click a slice to open those files.
.pt5.3 MB · 100%
From the Hugging Face model README
Frank is a retrieval + tone-aware embedding model. It pairs a frozen BGE-large-en-v1.5 backbone (competitive retrieval) with a trained tone head that separates register (formal vs casual) as an independent signal.
Retrieval uses BGE's native CLS path. Tone head is a separate read-only projection. No interference.
| Task | Score |
|---|---|
| NFCorpus | 0.604 |
| SciFact | 0.750 |
| ArguAna | 0.460 |
| FiQA | 0.568 |
| Average | 0.595 |
| Version | Gap (matched) | Probe Acc |
|---|---|---|
| v1 (CLS) | 0.361 | 98.5% |
| v2 (multi-layer) | 0.493 | 96.9% |
| Alpha | Register Match | nDCG@10 |
|---|---|---|
| 0.0 (BGE only) | 8.8% | 0.904 |
| 0.2 (v2 recommended) | 97.1% | 0.899 |
from transformers import AutoModel, AutoTokenizer
import torch, torch.nn as nn, torch.nn.functional as F
from huggingface_hub import hf_hub_download
# Load backbone
tok = AutoTokenizer.from_pretrained("BAAI/bge-large-en-v1.5")
backbone = AutoModel.from_pretrained("BAAI/bge-large-en-v1.5").eval()
# Load tone head (v2 recommended)
ckpt = torch.load(hf_hub_download("rb512/resonant-frank", "frank_v2_tone.pt"), map_location="cpu")
# See ToneBranchV2 class definition in the repo for architecture