manueldeprada HF Staff commited on
Commit
613c7bb
·
verified ·
1 Parent(s): 2377200

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +55 -0
README.md ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ language:
4
+ - en
5
+ library_name: transformers
6
+ pipeline_tag: text-generation
7
+ tags:
8
+ - qwen3
9
+ - text-generation
10
+ - littlelearner
11
+ - bounded
12
+ - instruct
13
+ ---
14
+
15
+ # littlelearner-1.3b-bounded-sft-chatty-v2
16
+
17
+ 1.3B K-5-bounded chat model with general chat, model identity, and format steerability installed by a behavior SFT on the blend base (chatty v2).
18
+
19
+ Part of the **LittleLearner** scale-up study (*pedagogically-controlled knowledge exposure*): Qwen3 dense LMs trained on a corpus filtered to U.S. K-5 material (**bounded**) vs an unfiltered FineWeb-Edu corpus (**unbounded**), to measure what an interpretable knowledge boundary costs and grants.
20
+
21
+ ## Model
22
+ - **Architecture:** Qwen3 dense (`Qwen3ForCausalLM`).
23
+ - **Size:** 1.358B params, hidden 2048, 26 layers, 16 query / 8 KV heads, FFN 5632. **Context:** 4096.
24
+ - **Tokenizer:** custom 64k byte-level BPE with per-digit splitting (ChatML special tokens).
25
+ - **Pretraining:** 88B tokens on K-5 **LittleCurriculum** (FineWeb-Edu filtered to U.S. grades K-5). WSD schedule, sharded Muon, MXFP8, Megatron-Core on 8xB200.
26
+ - **SFT:** behavior SFT directly on the cooloff-blend base (no intermediate SFT stage): K-5 math CoT (30k) + smoltalk general chat (15k) + K-5 GSM8K + format-control pairs (answer-only, show-steps, length constraints; user-turn and system-turn variants) + LittleLearner identity data. fp32 master parameters, lr 1e-5, 1 epoch. The model chats on casual prompts, states that it is LittleLearner, and follows answer-format instructions given in the user turn or the system prompt.
27
+
28
+ ## Evaluation
29
+ MathCAMPS (paper-filtered):
30
+ - K-5 pass@64 **67.3** / pass@1 **24.0**
31
+ Behavior probes (greedy):
32
+ - casual prompts get conversational replies; identity answered as LittleLearner
33
+ - answer-format instruction obedience: user turn **0.65**, held-out system prompt **0.95**
34
+
35
+ ## Usage
36
+ ```python
37
+ # transformers (chat)
38
+ from transformers import AutoModelForCausalLM, AutoTokenizer
39
+ repo = "manueldeprada/littlelearner-1.3b-bounded-sft-chatty-v2"
40
+ tok = AutoTokenizer.from_pretrained(repo)
41
+ model = AutoModelForCausalLM.from_pretrained(repo, dtype="bfloat16", device_map="cuda")
42
+ msgs = [{"role": "user", "content": "Liam has 3 apples and buys 4 more. How many apples does he have?"}]
43
+ ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)
44
+ out = model.generate(ids)
45
+ print(tok.decode(out[0, ids.shape[1]:], skip_special_tokens=True))
46
+ ```
47
+
48
+ ```python
49
+ # vLLM
50
+ from vllm import LLM
51
+ repo = "manueldeprada/littlelearner-1.3b-bounded-sft-chatty-v2"
52
+ llm = LLM(repo)
53
+ msgs = [{"role": "user", "content": "Liam has 3 apples and buys 4 more. How many apples does he have?"}]
54
+ print(llm.chat(msgs)[0].outputs[0].text)
55
+ ```