Views
No views yet
<assistant> token. Attention masking and RoPE position aliasing keep the reflection from changing the continuation of the original document. This model is trained with SPP.epfl-dlab/spp-mt-3b-base.<assistant> marker token (vocabulary 49280).[N.M] citations; response-only loss, one epoch.<|im_start|><assistant>. Use the built-in chat template:1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4repo = "epfl-dlab/spp-mt-3b-instruct"
5tok = AutoTokenizer.from_pretrained(repo)
6model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype=torch.bfloat16, device_map="auto")
7
8msgs = [{"role": "user", "content": "How should I think about honesty?"}]
9ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)
10out = model.generate(ids, max_new_tokens=512)
11print(tok.decode(out[0, ids.shape[1]:], skip_special_tokens=False))main is the default 10% mixture; the other fractions are published as revisions on this repo, so each can be loaded by passing revision=:1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4repo = "epfl-dlab/spp-mt-3b-instruct"
5tok = AutoTokenizer.from_pretrained(repo) # identical at every revision
6model = AutoModelForCausalLM.from_pretrained(
7 repo, revision="safety-60", dtype=torch.bfloat16, device_map="auto"
8)| Revision | Safety fraction | Safety examples | Instruct examples |
|---|---|---|---|
safety-0 | 0% | 0 | 300,000 |
safety-5 | 5% | 15,000 | 285,000 |
safety-10 — default, same weights as main | 10% | 30,000 | 270,000 |
safety-30 | 30% | 90,000 | 210,000 |
safety-60 | 60% | 180,000 | 120,000 |