Retrieval uses BGE's native CLS path. Tone head is a separate read-only projection. No interference.
1from transformers import AutoModel, AutoTokenizer
2import torch, torch.nn as nn, torch.nn.functional as F
3from huggingface_hub import hf_hub_download
4
5# Load backbone
6tok = AutoTokenizer.from_pretrained("BAAI/bge-large-en-v1.5")
7backbone = AutoModel.from_pretrained("BAAI/bge-large-en-v1.5").eval()
8
9# Load tone head (v2 recommended)
10ckpt = torch.load(hf_hub_download("rb512/resonant-frank", "frank_v2_tone.pt"), map_location="cpu")
11# See ToneBranchV2 class definition in the repo for architecture