GOAT mmBERT YAT Base — MLM 10B
GOAT mmBERT YAT Base is a multilingual encoder pretrained with masked language modeling (MLM). This release contains checkpoint 379079, following complete coverage of a prepared corpus containing 10,038,104,948 nonpadding tokens. The model has 281,834,028 parameters, including its MLM head.
The model uses GOAT-input attention and YATGLU feed-forward layers. It is an MLM-only pretrained base model, with no contrastive, embedding, instruction, or downstream task fine-tuning.
Architecture
| Setting | Value |
|---|---|
| Transformer layers | 22 |
| Hidden dimension | 768 |
| Intermediate dimension | 1152 |
| Attention heads | 12 |
| Vocabulary | 256,000 |
| Attention | GOAT-input; global attention every third layer; local window 128 |
| Feed-forward | YATGLU |
| YAT bias / epsilon | 1 / 0.01 |
| YAT alpha | Trainable |
| Positional embeddings | RoPE |
| Configured position capacity | 8,192 tokens |
| Training compute / residual dtype | BF16 / FP32 |
| Released weights | FP32, native Flax NNX Safetensors |
Pretraining
The lineage began with random initialization (seed 1006), followed by MLM pretraining on an earlier prepared 1B-token corpus. The 10B corpus stage initialized from the earlier MLM checkpoint at step 100000 with a fresh optimizer and schedule. Checkpoint 379079 is the final checkpoint of that stage.
The 10,038,104,948-token count measures nonpadding tokens in the prepared corpus with verified complete row coverage. It is a corpus coverage count for this stage; earlier MLM pretraining and repeated sampled presentations are separate from this count.
The 10B stage used a 15% masking probability, batch size 64 with four accumulation steps, a learning rate of 0.0001, 500 warmup updates, and a 500,000-update cosine schedule with a final learning-rate ratio of 0.05. Training stopped at complete prepared-corpus coverage. The committed full-state checkpoint, optimizer state and training artifacts are retained separately from this weight-only release.
The 10B corpus is YAT MLM 10B v2. Its source targets are 45% FineWeb2-HQ, 20% FineWeb-Edu, 15% additional FineWeb2, and 20% GitHub code. These percentages describe the corpus recipe.
Benchmark comparison
Checkpoint 379079 was evaluated unchanged on physical TPUs using the complete pinned benchmark inventories: English MTEB (41 tasks), multilingual MTEB (131 tasks), CoIR (10 tasks), and MIRACL hard-negative retrieval (18 language subsets).
| Benchmark | GOAT mmBERT YAT Base, MLM-only | Previous YAT embedding v1, fine-tuned | mmBERT-base paper, embedding fine-tuned |
|---|---|---|---|
| English MTEB, seven-category mean | 36.84 | 52.78 | 53.9 |
| Multilingual MTEB, eight-category mean | 31.77 | 48.21 | 54.1 |
| Multilingual MTEB, native nine-category mean | 28.07 | 42.40 | — |
| CoIR, ten-task mean | 9.91 | 43.45 | 42.2 |
| MIRACL hard-negative, 18-language mean | 1.82 | 46.37 | — |
Evaluation used MTEB 2.21.8, length512, right truncation, mean pooling over nonpadding tokens including special tokens, FP32 L2 normalization, no prompts, and inference batch16. Reported values use the 0–100 display scale; retained receipts preserve native main scores. The eight-category multilingual mean follows the paper table; the native nine-category mean also includes InstructionReranking.
The GOAT column contains new frozen-encoder measurements. The previous-model column uses its published full-suite receipts, with the same pinned task/dataset revisions and split/subset coverage. The paper column contains the authors' reported results. The previous model and paper models were not rerun in this evaluation.
The models have different training histories:
- GOAT mmBERT YAT Base: random initialization followed by MLM pretraining, including the earlier 1B-token corpus stage and complete coverage of the 10,038,104,948-token corpus described above. No contrastive or downstream encoder fine-tuning was applied.
- Previous YAT embedding v1: initialized from the mmBERT lineage and subsequently contrastively fine-tuned, using MS MARCO, MIRACL and CodeSearchNet pairs.
- mmBERT-base paper: the foundation model was pretrained with MLM on 3T tokens. Its reported MTEB and CoIR results followed embedding fine-tuning on 1.25 million MS MARCO hard triplets for one epoch, with learning-rate selection. See Tables 4–6 and Appendix B.
Full task, category and language results and the complete machine-readable receipts are retained in evaluation/.
Measurements combine authenticated receipts from three evaluation executions. Each accepted job retains its original execution identity, frozen protocol and final unchanged-weight proof. MIRACL language subsets and WebLINX splits are included once each.
Representation profile
| Suite | Category | GOAT base, MLM-only | Previous YAT, fine-tuned |
|---|---|---|---|
| English | Classification | 52.89 | 66.32 |
| Multilingual | Classification | 45.20 | 50.57 |
| English | STS | 49.45 | 74.70 |
| Multilingual | STS | 42.27 | 64.45 |
| English | Retrieval | 5.10 | 42.96 |
| Multilingual | Retrieval | 11.01 | 44.33 |
| Multilingual | Bitext mining | 12.66 | 43.99 |
Classification probes show a smaller gap to the previous model than retrieval, semantic similarity and bitext mining. Classification scores follow the benchmark classifier protocols over frozen encoder representations; encoder weights remained unchanged.
The released mean-pooled embeddings score below the previous fine-tuned model on the aggregate embedding benchmarks above. This checkpoint is an MLM-pretrained base for masked-language-modeling research and downstream adaptation. The previous YAT release has higher measured retrieval and code-search performance.
Use
Load the checkpoint directly through FlaxChat's Hub API. The release includes a small FlaxChat wheel containing the exact source used for its accepted native TPU runs, plus the Hub-loading helper. Python 3.12 is the tested environment.
Install the matching FlaxChat package on a TPU host:
pip install "flaxchat[tpu] @ https://huggingface.co/mlnomad/goat-mmbert-yat-base-mlm-10b/resolve/main/flaxchat-0.1.1%2Bgoat379079-py3-none-any.whl"
Load the native model by repository identifier:
from flaxchat.hub import from_pretrained
MODEL_ID = "mlnomad/goat-mmbert-yat-base-mlm-10b"
REVISION = "d1c6abaccb249d73d8728cacf2166204b4f8d111"
model = from_pretrained(MODEL_ID, revision=REVISION)
To obtain normalized mean-pooled embeddings:
import jax.numpy as jnp
from tokenizers import Tokenizer
tokenizer = Tokenizer.from_pretrained(MODEL_ID, revision=REVISION)
tokenizer.enable_truncation(max_length=512)
tokenizer.enable_padding(length=512, pad_id=0, pad_token="<pad>")
batch = tokenizer.encode_batch(["Hello world", "Bonjour le monde"])
input_ids = jnp.asarray([item.ids for item in batch], dtype=jnp.int32)
embeddings = model.pool(input_ids).astype(jnp.float32)
embeddings /= jnp.maximum(jnp.linalg.norm(embeddings, axis=-1, keepdims=True), 1e-12)
The loader returns the native Flax NNX model with its MLM head retained. model.encode(input_ids) returns token representations; model.pool(input_ids) returns mean-pooled document vectors. Mean pooling includes nonpadding special tokens. The example uses the benchmark length limit of512; native reload checks cover lengths128 and512. The configured position capacity is8,192 tokens.