Views
No views yet
mayflowergmbh/boldt-dc-1b-german-it-16k. Built by merging the SFT model with a DPO-tuned checkpoint of itself, following the same-model-merging approach described in the LFM2 technical report §4.4 (Liquid AI, arXiv:2511.23404). Same architecture, same context length, same chat format as the SFT release.1import torch
2from transformers import AutoTokenizer, AutoModelForCausalLM
3
4model_id = "mayflowergmbh/boldt-dc-1b-german-it-16k-dpo"
5tok = AutoTokenizer.from_pretrained(model_id)
6model = AutoModelForCausalLM.from_pretrained(model_id, dtype=torch.bfloat16, device_map="cuda")
7
8messages = [{"role": "user", "content": "Erkläre kurz, was eine Funktion in Python ist."}]
9prompt = tok.apply_chat_template(messages, add_generation_prompt=True, tokenize=False)
10inputs = tok(prompt, return_tensors="pt").to(model.device)
11out = model.generate(**inputs, max_new_tokens=200, do_sample=False)
12print(tok.decode(out[0, inputs.input_ids.shape[-1]:], skip_special_tokens=False))generation_config.eos_token_id = [0, 32003] covers both <|endoftext|> and <|end|>.mayflowergmbh/boldt-dc-1b-german-it-16k): plain transformers+peft SFT of Boldt/Boldt-DC-1B, 7000 steps at 16K context.DPOTrainer, loss_type="sigmoid", β=0.3, rpo_alpha=0.5 (NLL anchor on chosen — prevents the "response suppression" failure mode documented in 3D-Properties of DPO, Yan et al. 2024, arXiv:2406.07327). LR 5e-7, 800 steps, LoRA r=32 on QKV/MLP. Dataset: mayflowergmbh/boldt-dc-1b-orpo-onpolicy-de length-filtered to |chosen|/|rejected| ≤ 3 (54k → 22k pairs).mergekit at t=0.5, dtype=bfloat16, tokenizer_source: union. ~30 seconds on a single A6000.| Task | base (no FT) | SFT | DPO (pre-merge) | this (merge) |
|---|---|---|---|---|
| arc_de (25-shot) | 0.3618 | 0.3319 | 0.3285 | 0.3353 |
| hellaswag_de (10-shot) | 0.5037 | 0.4655 | 0.4667 | 0.4651 |
| m_mmlu_de (5-shot) | 0.2560 | 0.2488 | 0.2503 | 0.2488 |
| truthfulqa_de_mc2 (0-shot) | 0.3733 | 0.4154 | 0.4164 | 0.4160 |
| belebele_deu_Latn (0-shot) | 0.2289 | 0.2278 | 0.2344 | 0.2367 |
| mean | 0.3448 | 0.3379 | 0.3393 | 0.3404 |
arc_de recovers +0.34 pp from the DPO regression, belebele_deu_Latn adds +0.89 pp over SFT. Per-task deltas are within stderr (~±1.5 pp), but the direction is consistent across tasks and the result reproduces the LFM2 paper's claim that same-model merging recovers task-specific knowledge that preference tuning erodes.Boldt/Boldt-DC-1B base on these tier-1 averages without teacher-model distillation. This release does not close that gap, but it is the highest tier-1 mean among models in this family that also generate coherent German.1slices:
2 - sources:
3 - model: mayflowergmbh/boldt-dc-1b-german-it-16k # SFT
4 layer_range: [0, 16]
5 - model: <DPO-tuned checkpoint of the SFT>
6 layer_range: [0, 16]
7merge_method: slerp
8base_model: mayflowergmbh/boldt-dc-1b-german-it-16k
9parameters:
10 t: 0.5
11dtype: bfloat16
12tokenizer_source: union