Raghav-Singhal commited on
Commit
c72fed3
·
verified ·
1 Parent(s): 8e630df

Add model card

Browse files
Files changed (1) hide show
  1. README.md +52 -0
README.md ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 (3B)
16
+
17
+ SPP applied from token zero. First-person, value-laden reflections are inserted (after a special `<assistant>` token) into the roughly 10% of annotated pretraining documents that carry one, throughout the entire pretraining run.
18
+
19
+ This is one of five 3B models released with **Synthetic Persona Pretraining (SPP)** ("Model Raising"). All five share the same architecture, pretraining data, tokenizer, and post-training recipe; they differ only in the pretraining safety intervention.
20
+
21
+ ## Model details
22
+ - **Architecture:** Llama-3.2-3B-shaped dense decoder-only transformer (28 layers, hidden size 3072, 24 attention heads, 8 KV groups, RoPE, RMSNorm, SwiGLU, tied input/output embeddings), trained from scratch.
23
+ - **Tokenizer:** SmolLM2 tokenizer extended with a single `<assistant>` marker token (vocabulary 49280).
24
+ - **Pretraining:** ~500B tokens on a subset of the Olmo 3 Dolma 3 mixture.
25
+ - **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 the Model Raising Constitution and carry inline `[N.M]` article citations. Response-only loss, one epoch.
26
+
27
+ ## Chat format
28
+ There is **no system prompt**. Each assistant turn opens with `<|im_start|><assistant>`. Use the built-in chat template:
29
+
30
+ ```python
31
+ from transformers import AutoModelForCausalLM, AutoTokenizer
32
+ import torch
33
+
34
+ repo = "model-raising/spp-t0-3b"
35
+ tok = AutoTokenizer.from_pretrained(repo)
36
+ model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype=torch.bfloat16, device_map="auto")
37
+
38
+ msgs = [{"role": "user", "content": "How should I think about honesty?"}]
39
+ ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)
40
+ out = model.generate(ids, max_new_tokens=512)
41
+ print(tok.decode(out[0, ids.shape[1]:], skip_special_tokens=False))
42
+ ```
43
+
44
+ ## Intended use
45
+ Research on alignment and safety (constitutional alignment, value generalization, jailbreak robustness). This is a research artifact, not a production model, and it can produce incorrect or unsafe content.
46
+
47
+ ## Links
48
+ - Paper: _to be released_
49
+ - Code: _to be released_
50
+ - Collection: https://huggingface.co/collections/model-raising/spp-6a60bddd605bddee909726a9
51
+
52
+ _License: to be finalised before this repo is made public._