Raghav-Singhal commited on
Commit
59b1176
·
verified ·
1 Parent(s): 5b8f344

Model card

Browse files
Files changed (1) hide show
  1. README.md +56 -0
README.md ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ language:
4
+ - en
5
+ library_name: transformers
6
+ pipeline_tag: text-generation
7
+ tags:
8
+ - model-raising
9
+ - synthetic-persona-pretraining
10
+ - spp
11
+ - alignment
12
+ - safety
13
+ ---
14
+
15
+ # SPP-T0 — Instruct (1.7B)
16
+
17
+ **Type:** instruction-tuned model (base model + persona-binding supervised fine-tuning).
18
+
19
+ Trained with Synthetic Persona Pretraining (SPP) from token zero, then post-trained with persona-binding SFT.
20
+
21
+ ## Synthetic Persona Pretraining (SPP)
22
+ **Synthetic Persona Pretraining (SPP)** installs a target value persona during pretraining rather than only during alignment. Value-laden, first-person reflections, generated against a constitution, are appended to a subset of pretraining documents after a special `<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.
23
+
24
+ Base counterpart: [`dlab-spp/t0-1.7b-base`](https://huggingface.co/dlab-spp/t0-1.7b-base).
25
+
26
+ ## Model details
27
+ - **Architecture:** SmolLM2-1.7B architecture, trained from scratch.
28
+ - **Tokenizer:** SmolLM2 tokenizer with an added `<assistant>` marker token (vocabulary 49280).
29
+ - **Pretraining:** ~100B tokens on a subset of the Olmo 3 Dolma 3 mixture, with SPP reflections inserted into the safety-annotated documents within it.
30
+ - **Post-training:** persona-binding supervised fine-tuning (PBSFT-mix): 300k single-turn examples, 90% WildChat-1M instructions and 10% safety prompts (WildJailbreak, WildGuardMix); assistant responses follow a constitution with inline `[N.M]` citations; response-only loss, one epoch.
31
+
32
+ ## Chat format
33
+ There is **no system prompt**. Each assistant turn opens with `<|im_start|><assistant>`. Use the built-in chat template:
34
+
35
+ ```python
36
+ from transformers import AutoModelForCausalLM, AutoTokenizer
37
+ import torch
38
+
39
+ repo = "dlab-spp/t0-1.7b-instruct"
40
+ tok = AutoTokenizer.from_pretrained(repo)
41
+ model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype=torch.bfloat16, device_map="auto")
42
+
43
+ msgs = [{"role": "user", "content": "How should I think about honesty?"}]
44
+ ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)
45
+ out = model.generate(ids, max_new_tokens=512)
46
+ print(tok.decode(out[0, ids.shape[1]:], skip_special_tokens=False))
47
+ ```
48
+
49
+ ## Intended use
50
+ Research on alignment and safety (constitutional alignment, value generalization, jailbreak robustness). A research artifact, not a production model; it can produce incorrect or unsafe content.
51
+
52
+ ## Links
53
+ - Paper: _to be released_
54
+ - Collection: https://huggingface.co/collections/dlab-spp/spp-models
55
+
56
+ _License: to be finalised._