SJ-ko / README.md
sjmoon21's picture
Update README.md
36e9640 verified
|
Raw History Blame Contribute Delete
15.9 kB
---
language:
- ko
- en
license: cc-by-nc-sa-4.0
library_name: gguf
tags:
- korean
- gpt
- from-scratch
- educational
- gguf
- tool-use
pipeline_tag: text-generation
---
# SJ-ko
A 75M parameter Korean GPT built and trained from scratch.
Current release: `SJ-0.7.1simft` (`sj-0.7.1simft.gguf`).
The earlier 11M releases `sj-0.5.6simf.gguf` and `sj-0.5.1si.gguf` are kept in `legacy/`.
In training: a ~400M-parameter successor (run28 โ€” 26 layers ยท 1024 dim, 32k byte-fallback BPE, 7.6B-token Korean/English/code corpus)
on Kaggle T4ร—2. It is not published yet; the training history below is updated as runs finish.
No Hugging Face Transformers, no existing training framework. The BPE tokenizer,
attention, training loop, and GGUF converter were all written by hand. This is an
educational project, not a production model. It invents facts and can fall into
repetition loops.
- Author: Sungjin Moon, Seoul National University, Department of Physics & Astronomy, Physics
- Contact: mongsil88@snu.ac.kr
## Specification
| | |
|---|---|
| Parameters | 75.32M (14.7% embeddings). The GGUF counts 75.61M: llama.cpp needs 565 extra byte-sequence tokens, whose embedding rows copy `<unk>` |
| Architecture | 20 layers ยท 512 dim ยท 8 heads ยท RMSNorm ยท RoPE ยท SwiGLU ยท QK-Norm ยท tied embeddings |
| GGUF layout | `qwen3` (the model's layout matches Qwen3's; the converter only reorders RoPE pairs, so no weights change) |
| Context | 1024 tokens (โ‰ˆ2,450 characters) |
| Vocabulary | 21,626 (byte-fallback BPE trained from scratch, 2.40 characters per token, digits kept as single tokens) |
| Hardware | Colab T4 โ†’ Kaggle T4ร—2 (pre-training), T4 (SFT) |
| Pre-training | 1.65B tokens ร— 1.03 epochs ยท 26.3์–ต (2.63B) characters of unique text |
| SFT | 55,016 training pairs ร— 2.87 epochs ยท 71 minutes |
The GGUF was checked against the PyTorch model: greedy generation matches token
for token on 9 of 9 test prompts (Ollama 0.33.3).
## Usage (Ollama)
```bash
ollama create sj-0.7.1simft -f Modelfile
ollama run sj-0.7.1simft
```
For the previous 11M release, download `legacy/sj-0.5.6simf.gguf` and `legacy/Modelfile-0.5.6simf` into one folder and run
`ollama create sj-0.5.6simf -f Modelfile-0.5.6simf`.
The bundled `Modelfile` carries settings that are required. Without them the
model echoes the question back or never stops generating.
```
TEMPLATE """{{- range .Messages }}{{- if eq .Role "user" }}<|user|>{{ .Content }}<|assistant|>{{- else }}{{ .Content }}<|endoftext|>{{- end }}{{- end }}"""
PARAMETER stop "<|endoftext|>"
PARAMETER stop "<|user|>"
```
The template walks `.Messages`, so multi-turn conversations work through
`/api/chat`. Building the prompt yourself with `raw: true` does not work โ€” the
special tokens are then treated as plain text rather than control tokens.
### Tools
This release was fine-tuned to call three tools โ€” `calc`, `clock`, and `search`
(BM25 over a local document index) โ€” through the special tokens `<|tool|>`,
`<|end|>`, and `<|result|>`. In this "forced" variant the calling program, not
the model, decides when a tool is needed and writes the tool token; the model then
fills in the arguments (for `calc`) and answers from the tool's result.
```
<|user|> question <|assistant|> <|tool|> name args <|end|> <|result|> result <|end|> answer <|endoftext|>
```
Plain `ollama run` never inserts a tool token, so there the model answers from
its own weights only. Tool calls need a harness that runs this loop; the harness
is not part of this repository.
## Self-hosting the chat UI
`serve_ollama.py` is a dependency-free chat server (Python standard library only,
no PyTorch). It talks to a local Ollama instance and streams responses.
```bash
OLLAMA_HOST=127.0.0.1:11434 ollama serve &
ollama create sj-0.7.1simft -f Modelfile
python3 serve_ollama.py --model sj-0.7.1simft --host 0.0.0.0 --port 3000
```
Keep Ollama bound to localhost. Its API has no authentication and allows model
deletion, so it must never be exposed to the internet.
## Training data
Pre-training (corpus v5, 2.63B unique characters; share of the training stream, with repeats)
| Source | Repeats | Share |
|---|---|---|
| AI Hub, 029.๋Œ€๊ทœ๋ชจ ๊ตฌ๋งค๋„์„œ ๊ธฐ๋ฐ˜ ํ•œ๊ตญ์–ด ๋ง๋ญ‰์น˜ ๋ฐ์ดํ„ฐ | 2 | 42.3% |
| [wikimedia/wikipedia](https://huggingface.co/datasets/wikimedia/wikipedia) 20231101 en (CC BY-SA) | 1 | 21.0% |
| [wikimedia/wikipedia](https://huggingface.co/datasets/wikimedia/wikipedia) 20231101 ko (CC BY-SA) | 2 | 18.0% |
| ๋‚˜๋ฌด์œ„ํ‚ค via [heegyu/namuwiki-extracted](https://huggingface.co/datasets/heegyu/namuwiki-extracted) (2021-03-01 dump, CC BY-NC-SA 2.0 KR) | 1 | 10.3% |
| Synthetic arithmetic, generated in Python with guaranteed-correct answers | 2 | 3.7% |
| AI Hub, 121.ํ•œ๊ตญ์–ด ์„ฑ๋Šฅ์ด ๊ฐœ์„ ๋œ ์ดˆ๊ฑฐ๋Œ€AI ์–ธ์–ด๋ชจ๋ธ ๊ฐœ๋ฐœ ๋ฐ ๋ฐ์ดํ„ฐ โ€” YouTube subtitle subset | 3 | 2.5% |
| AI Hub, 018.๋…ผ๋ฌธ์ž๋ฃŒ ์š”์•ฝ ๋ฐ์ดํ„ฐ โ€” abstracts | 1 | 2.0% |
| AI Hub, 121 โ€” ๊ตญ๋ฆฝ๊ตญ์–ด์› grammar Q&A subset | 1 | 0.2% |
Supervised fine-tuning (55,588 pairs loaded; 72 longer than 1,024 tokens dropped, 499 held out for validation)
| Source | Count |
|---|---|
| AI Hub, 121.ํ•œ๊ตญ์–ด ์„ฑ๋Šฅ์ด ๊ฐœ์„ ๋œ ์ดˆ๊ฑฐ๋Œ€AI ์–ธ์–ด๋ชจ๋ธ ๊ฐœ๋ฐœ ๋ฐ ๋ฐ์ดํ„ฐ (RLHF) | 32,275 |
| Tool-use pairs: `search` 5,006 (question-answer pairs over Korean Wikipedia passages, generated by DeepSeek) ยท `calc` 4,588 ยท `clock` 500 ยท no-tool contrast 175 | 10,269 |
| Synthetic atomic-fact question-answer pairs (900 facts ร— 8 phrasings, generated by DeepSeek) | 7,200 |
| Synthetic multi-turn (4,000 concatenated pairs + 908 follow-up turns generated by DeepSeek) | 4,908 |
| Synthetic identity pairs | 936 |
### Attribution
This model was developed using the following datasets provided by AI Hub
(https://aihub.or.kr):
- 018.๋…ผ๋ฌธ์ž๋ฃŒ ์š”์•ฝ ๋ฐ์ดํ„ฐ
- 029.๋Œ€๊ทœ๋ชจ ๊ตฌ๋งค๋„์„œ ๊ธฐ๋ฐ˜ ํ•œ๊ตญ์–ด ๋ง๋ญ‰์น˜ ๋ฐ์ดํ„ฐ
- 121.ํ•œ๊ตญ์–ด ์„ฑ๋Šฅ์ด ๊ฐœ์„ ๋œ ์ดˆ๊ฑฐ๋Œ€AI ์–ธ์–ด๋ชจ๋ธ ๊ฐœ๋ฐœ ๋ฐ ๋ฐ์ดํ„ฐ
It was also trained on ๋‚˜๋ฌด์œ„ํ‚ค (namu.wiki) text, licensed CC BY-NC-SA 2.0 KR,
and on Wikipedia text, licensed CC BY-SA.
No original data is included in this repository, and none is redistributed.
## License
CC BY-NC-SA 4.0 for `sj-0.7.1simft.gguf`, because its training data includes
๋‚˜๋ฌด์œ„ํ‚ค text under a NonCommercial-ShareAlike license. Non-commercial use only;
derivatives must carry the same license.
The earlier 11M releases (`legacy/sj-0.5.6simf.gguf`, `legacy/sj-0.5.1si.gguf`) did not use
๋‚˜๋ฌด์œ„ํ‚ค and were published under MIT; they remain available under MIT.
The terms of the original training data remain with their respective providers.
## Training history
Every run from the first character-level bigram to the current release. Loss per
char (nats per character) is the only column comparable across runs โ€” token loss
depends on the tokenizer, which changed several times. Notes are the author's own
working notes, in Korean.
| Run | Version | Method | Data | Train tokens | Epochs | Wall clock | Params | Tokens/param | Loss per char | Notes (Korean) |
|---|---|---|---|---|---|---|---|---|---|---|
| run01 | 0.1.0p | pre-training | ์ปค๋ฎค๋‹ˆํ‹ฐ ํฌ๋กค๋ง 298๋งŒ์ž | 2.84M | 6.5 | 54๋ถ„ | 5.45M | 3.39 | - | ํฌ๋กค๋ง ๋ฐ์ดํ„ฐ ๊ธฐ๋ฐ˜ pre-training. char-level tokenize. clien ๋ฐ์ดํ„ฐ๊ฐ€ ๋Œ€๋ถ€๋ถ„์ด๋ผ, ์ปค๋ฎค๋‹ˆํ‹ฐ ๋งํˆฌ์ด๊ธด ํ•œ๋ฐ ์•„์ €์”จ ๋งํˆฌ์—ฌ์„œ ์‹คํŒจ. ์ถ”๊ฐ€๋กœ, char-level์ด์–ด์„œ ์ธ์ง€ ํ•œ์ž๊ฐ€ ๋„ˆ๋ฌด ๋งŽ์ด ๋“ฑ์žฅํ•˜๋Š” ๋ฌธ์ œ๋„ ์กด์žฌ. step 3000/6000์—์„œ ์ˆ˜๋™ ์ค‘๋‹จ |
| run02 | 0.2.0p | pre-training | ์›น์†Œ์„ค 716๋งŒ์ž | 6.80M | 4.2 | 94.8๋ถ„ | 5.22M | 5.47 | 2.1032 | ์›น์†Œ์„ค 3๊ถŒ ๋ฐ์ดํ„ฐ ํ™œ์šฉ. char-level tokenized. val split์ด ๊ฒฉ์ฐจ๊ฐ€ โˆ’0.15๋กœ ํŽธํ–ฅ๋œ ๊ฒฐํ•จ ๋ฐœ๊ฒฌ |
| run03 | 0.2.1p | pre-training | ์›น์†Œ์„ค 714๋งŒ์ž | 3.75M | 4.10 | 51.6๋ถ„ | 5.82M | 2.64 | 2.3095 | BPE tokenizer๋กœ ๋ณ€๊ฒฝ(vocab 4096). ์›น ์†Œ์„ค ๋ฌธ์ฒด์—ฌ์„œ ๋Œ€๊ด„ํ˜ธ๋‚˜ ๋„ˆ๋ฌด ๊ณ ์œ ๋ช…์‚ฌ๋“ค์ด ๋งŽ์ด ๋‚˜์˜ค๋Š” ๋ฌธ์ œ๊ฐ€ ์žˆ์—ˆ์Œ. ๋ฐ์ดํ„ฐ ๊ต์ฒดํ•„์š”. ํšŒ์ฐจ ๋‹จ์œ„ ๋ถ„ํ•  + &lt;&#124;endoftext&#124;&gt; ๋„์ž… |
| run04 | 0.3.0p | pre-training | AI hub ๋„์„œ 1.79์–ต์ž | 91.4M | 1.01 | 312.7๋ถ„ | 6.15M | 15.01 | 2.2369 | AI hub ๋„์„œ ๋ฐ์ดํ„ฐ ๋„์ž…(vocab 5366). ์˜์–ด, ๊ธฐํ˜ธ ์•„์˜ˆ ์กด์žฌํ•˜์ง€ ์•Š๋Š” ๋ฌธ์ œ ์žˆ์Œ. ๋ฌธ๋‹จ์ด ์ €์ž‘๊ถŒ ๋ณดํ˜ธ๋กœ ๋ฌด์ž‘์œ„ ์„ž์—ฌ ์žˆ์–ด ๋…ผ๋ฆฌ ์ „๊ฐœ ํ•™์Šต ๋ถˆ๊ฐ€. ์ฐธ๊ณ ๋ฌธํ—Œ ์Œ์ฐจ ์˜ค์—ผ 1.7%. ์˜๋ฌธ/ํ•œ๊ธ€ ์œ„ํ‚ค ๋„์ž… ์˜ˆ์ • |
| run05 | 0.3.1s | sft | AI hub RLHF 21,650์Œ | 6.30M | 1.04 | 58.7๋ถ„ | 6.25M | 1.05 | 1.5161 (sft) | ์ฒซ sft ์ง„ํ–‰. ๋‚˜๋ฆ„ ์„ฑ๊ณต์  โ€” EOT ํ•™์Šต ์„ฑ๊ณต(์งˆ๋ฌธ ์œ ํ˜•๋ณ„ ๊ธธ์ด ์กฐ์ ˆ๊นŒ์ง€). ์ฒซ gguf ํŒŒ์ผ ์ƒ์„ฑ, `ollama run` ํ™•์ธ. bias ์ด์Šˆ๋กœ ์ธํ•œ ๋ณ€ํ™˜ ๊ณผ์ • ์•ฝ 3% ์†์‹ค |
| run06 | 0.3.2si | sft-identity | SFT + ์ •์ฒด์„ฑ 350์Œ | 6.31M | 1.04 | 66.5๋ถ„ | 6.25M | 1.05 | 1.4776 (sft) | ๋ชจ๋ธ ์ •์ฒด์„ฑ ์ฃผ์ž… ์‹œ๋„ํ–ˆ์ง€๋งŒ ์‹คํŒจ. ๊ณ ์œ  ์Œ๋‹น ๋…ธ์ถœ์ด ์ ์–ด ์‹คํŒจํ•œ ๊ฒƒ์œผ๋กœ ํ™•์ธ |
| run07 | 0.3.3si | sft-identity | SFT + ์ •์ฒด์„ฑ 1,170์Œ | 6.33M | 1.00 | 59.8๋ถ„ | 6.25M | 1.01 | 1.4762 (sft) | ๋ชจ๋ธ ์ •์ฒด์„ฑ ์ฃผ์ž… 2ํŠธ. ์‚ฌ๋ณธ์„ ๋Š˜๋ ค ๋…ธ์ถœ ํšŸ์ˆ˜ ์ฆ๊ฐ€. ๊ณผ์ž‰๋ฐœํ™” ๋ฌธ์ œ๊ฐ€ ์žˆ๊ธฐ๋Š” ํ•จ |
| run08 | 0.4.0p | pre-training | AI hub ๋„์„œ + ํ•œ/์˜ ์œ„ํ‚ค 2.96์–ต์ž | 146.9M | 1.00 | 319.2๋ถ„ | 6.10M | 24.08 | 2.0069 | 6์ธต ๊ตฌ์กฐ. ์Œ์ฐจ ์ œ๊ฑฐ, ์œ„ํ‚ค๋กœ ์˜์–ด์™€ ๊ธฐํ˜ธ ํ™•๋ณด, vocab์€ ์˜คํžˆ๋ ค ๊ฐ์†Œ(์••์ถ•๋ฅ  ์ฆ๊ฐ€), bias false๋กœ ๋ณ€๊ฒฝํ•ด์„œ gguf์—์„œ ์†์‹ค ๋‚˜์ง€ ์•Š๋„๋ก ์กฐ์น˜. |
| run09 | 0.4.1si | sft-identity | SFT 33,741์Œ + ์ •์ฒด์„ฑ 936์Œ | 10.49M | 3.05 | 87.4๋ถ„ | 6.20M | 5.16 | 1.2665 (sft) | 6์ธต ๊ตฌ์กฐ identity ํฌํ•จ sft. ์˜๋ฌธ, ๊ธฐํ˜ธ๊ฐ€ ํฌํ•จ๋˜์—ˆ๊ธฐ ๋•Œ๋ฌธ์— ํ™œ์šฉ ๊ฐ€๋Šฅํ•œ SFT ์Œ์ด ์ฆ๊ฐ€. ์ •์ฒด์„ฑ์€ ์‚ฌ๋ณธ 6๊ฐœ x 3 epoch๋กœ ๋…ธ์ถœ 18ํšŒ. |
| run10 | 0.4.2p | pre-training | AI hub ๋„์„œ + ํ•œ/์˜ ์œ„ํ‚ค 2.96์–ต์ž | 146.9M | 1.00 | 318.8๋ถ„ | 6.16M | 23.85 | 1.9529 | 6์ธต ๊ตฌ์กฐ. minimind ์ฐธ๊ณ ํ•˜์—ฌ RoPE ์ ์šฉํ•œ v2 ์•„ํ‚คํ…์ณ ๋„์ž…. run08๊ณผ ๋ฐ์ดํ„ฐ๋Š” ๋™์ผ |
| run11 | 0.4.3si | sft-identity | SFT 33,741์Œ + ์ •์ฒด์„ฑ 936์Œ | 10.49M | 1.99 | 43.0๋ถ„ | 6.16M | 3.39 | 1.2602 (sft) | v2 ์•„ํ‚คํ…์ณ ์ ์šฉ identity ํฌํ•จ sft. gguf ์ƒ์„ฑ ์—”์ง„ ์ˆ˜์ • |
| run12 | 0.4.4p | pre-training | AI hub ๋„์„œ + ํ•œ/์˜ ์œ„ํ‚ค 2.96์–ต์ž | 146.9M | 1.00 | 400.2๋ถ„ | 10.97M | 13.39 | 1.8823 | 12์ธต v2 ์•„ํ‚คํ…์ณ ๋ชจ๋ธ. ์ธต์ˆ˜ ์ฆ๊ฐ€๋กœ ์ธํ•œ ํŒŒ๋ผ๋ฏธํ„ฐ ์ฆ๊ฐ€. ํŒŒ๋ผ๋ฏธํ„ฐ +78%์ธ๋ฐ ์‹œ๊ฐ„์€ +26% |
| run13 | 0.4.5si | sft-identity | SFT 33,741์Œ + ์ •์ฒด์„ฑ 936์ฝ | 10.49M | 2.70 | 161.2๋ถ„ | 10.98M | 2.58 | 1.1243 (sft) | v2 ์•„ํ‚คํ…์ณ ์ ์šฉ 12์ธต sft. ๊ณผ์ž‰๋ฐœํ™” ๋ฌธ์ œ ์™„ํ™”. ์กฐ๊ธฐ์ข…๋ฃŒ |
| run14 | 0.5.0p | pre-training | AI hub ๋„์„œ + ํ•œ/์˜ ์œ„ํ‚ค + ํ•ฉ์„ฑ ์‚ฐ์ˆ  3.10์–ต์ž | 160.6M | 2.03 | 1,133.8๋ถ„ | 10.97M | 29.72 | 1.7796 | ์ˆซ์ž ํ•œ ์ž๋ฆฌ์”ฉ ํ† ํฌ๋‚˜์ด์ง• + ํ•ฉ์„ฑ ์‚ฐ์ˆ  5% ๋„์ž…. block 128โ†’256. ํ”„๋กฌํ”„ํŠธ๊ฐ€ \n์œผ๋กœ ์‹œ์ž‘ํ•  ๋•Œ๋งŒ์ด๊ธฐ๋Š” ํ•˜์ง€๋งŒ 4์ž๋ฆฌ ๋ง์…ˆ ๋ฐ›์•„์˜ฌ๋ฆผ ์™„์ฃผ 100% |
| run15 | 0.5.1sim | sft-identity | SFT 32,275 + ์ •์ฒด์„ฑ 936 + ๋‹ค์ค‘ํ„ด 4,908 + ์‚ฐ์ˆ  2,000 | 13.1M | 3.01 | 645.2๋ถ„ | 10.97M | 3.59 | 1.0948 (sft) | ๋‹ค์ค‘ ํ„ด ๋„์ž… ์„ฑ๊ณต. ๊ธฐ์กด์—๋Š” ์ฒ˜์Œ ๋ฌผ์€ ์งˆ๋ฌธ์— ๊ด€ํ•œ ๋‹ต๋ณ€๋งŒ ์ œ๊ณตํ•˜๋˜ ๋ฌธ์ œ ํ•ด๊ฒฐ. ๊ธฐ์กด SFT ๋ฐ์ดํ„ฐ์…‹์—์„œ ๋‹ต๋ณ€=์งˆ๋ฌธ์ธ ๋ฐ์ดํ„ฐ์…‹ ๋ฐœ๊ฒฌ ํ›„ ์ˆ˜์ •. ์‚ฐ์ˆ  ๋ฌธ๋‹ต ๋ฐ์ดํ„ฐ ์ ์šฉ. RoPE ๋„์ž… ํ›„ ๋ถ€์ž‘์šฉ ์—†๋Š” block ์ฆ๊ฐ€ |
| run16 | 0.5.2d | dpo | on-policy DPO 2,435์Œ (rep<=1) | 1.76M | 1.00 | 31.7๋ถ„ | 10.97M | 0.16 | - | DPO ์ฒซ ์‹œ๋„. ๋ฐ˜๋ณต ๊ฐ์†Œ๋ฅผ ๋ชฉํ‘œ. ํ•˜์ง€๋งŒ ๋ชจ๋“  ์ง€ํ‘œ ์•…ํ™”(๋ฐ˜๋ณต๋ฅ  10.6โ†’20.0%, ๊ธธ์ด 374โ†’572์ž, EOT 97โ†’87.6%, unk 25.6โ†’39.4%. ์ •์ฒด์„ฑ ์™„์ „ ์†Œ์‹ค, ํ† ํฐ ํŒŒ๊ดด) |
| run17 | 0.5.3d | dpo | on-policy DPO 2,435์Œ (rep<=1) | 1.76M | 1.00 | 31.5๋ถ„ | 10.97M | 0.16 | - | ฮฒ๋ฅผ 5๋ฐฐ๋กœ. ๋งˆ์ง„ ์–ต์ œ, ์ •์ฒด์„ฑ ๋ณด์กด. ๊ทธ๋Ÿฌ๋‚˜ ๋ฐ˜๋ณต๋ฅ  22.4%๋กœ ์ตœ์•…. ํ† ํฐ ํŒŒ๊ดด๋Š” ์ž”์กด |
| run18 | 0.5.4d | dpo | on-policy DPO 2,435์Œ (rep<=1) | 1.76M | 1.00 | 32.4๋ถ„ | 10.97M | 0.16 | - | ๋งˆ์ง„ 36์œผ๋กœ ๊ฐ€์žฅ ์ž˜ ๋ฌถ์ž„. ์…‹ ์ค‘ ์ œ์ผ ๋‚ซ์ง€๋งŒ ์›๋ณธ๋ณด๋‹ค๋Š” ๋‚˜์จ. DPO ๊ฒฐ๋ก : ฮฒ ๋ฌธ์ œ๊ฐ€ ์•„๋‹ˆ๋ผ ๋ฐ์ดํ„ฐ ๊ตฌ์กฐ ๋ฌธ์ œ. ๊ธด ๋‚ด์šฉ ์„ ํ˜ธ๋กœ ๋ฐ”๋€Œ๋ฉด์„œ ์ฑ„์šธ ๋‚ด์šฉ์ด ์—†์–ด ๋ฐ˜๋ณต์œผ๋กœ ๋–ผ์šด ๋“ฏ |
| run19 | 0.5.5sf | sft-facts | ์‚ฌ์‹ค QnA 7,200 + ์ •์ฒด์„ฑ 936 | 0.14M | 2.95 | 44.0๋ถ„ | 10.97M | 0.04 | 0.1276 (sft) | run15 ์œ„์— ์ถ”๊ฐ€๋กœ sft ์–น์€ ๋ฐฉ์‹. deepseek ์ƒ์„ฑ ์‚ฌ์‹ค 900๊ฐœ๋ฅผ ์งˆ๋ฌธ 8๊ฐ€์ง€์”ฉ SFT. ํ›ˆ๋ จ์— ์•ˆ ์“ด ํ‘œํ˜„์œผ๋กœ ๋ฌผ์–ด๋„ ํ•ต์‹ฌ์–ด 44.3% / ์™„์ „ ์ผ์น˜ 29.0% (์ด์ „ 8.0% / 0.0%). ํ•˜์ง€๋งŒ, ์‚ฐ์ˆ  10/20 โ†’ 0/20, ์ผ๋ฐ˜ ์„œ์ˆ  ๋‹ต๋ณ€์ด ํ•œ ๋ฌธ์žฅ์œผ๋กœ ๋ถ•๊ดด. ์ „์ฒด sft ์žฌ์‹คํ–‰ ์˜ˆ์ • |
| run20 | 0.5.6simf | sft-full | SFT 32,275 + ์ •์ฒด์„ฑ 936 + ๋‹ค์ค‘ํ„ด 4,908 + ์‚ฐ์ˆ  2,000 + ์‚ฌ์‹ค 7,200 | 13.1M | 2.99 | 349.1๋ถ„ | 10.97M | 3.56 | 1.0549 (sft) | run19์˜ ๋Œ€๋Ÿ‰ ๋ง๊ฐ์„ ์‚ฌ์‹ค ๋น„์ค‘ 88%โ†’15.2%๋กœ ๋‚ฎ์ถฐ ํ•ด๊ฒฐ. ๊ธธ์ด ๋ฒ„ํ‚ทํŒ…(ํ’€ ๋‹จ์œ„ ์ •๋ ฌ) ๋„์ž…์œผ๋กœ 12.7์‹œ๊ฐ„โ†’5.8์‹œ๊ฐ„. ๋‚จ์€ ๊ฒฐํ•จ์€ ์‚ฌ์‹ค ๊ฐ„ ํ˜ผ์„ (ํ•œ๋ผ์‚ฐ ๋‹ต์— ๋…๋„ ์„ค๋ช…์ด ๋ถ™์Œ)๊ณผ ๋‹ค์ค‘ ํ„ด ๋‚ด์šฉ ๋ถ•๊ดด. |
| run21 | 0.5.7p | pre-training(์ด์–ด์„œ) | AI hub ๋„์„œ + ํ•œ/์˜ ์œ„ํ‚ค + ํ•ฉ์„ฑ ์‚ฐ์ˆ  3.10์–ต์ž | 160.6M | 0.19 | 151.6๋ถ„ | 10.97M | 2.80 | 1.7375 | run14์—์„œ ์ด์–ด์„œ ๋ฌธ๋งฅ 256โ†’512. ๋ณต์‚ฌ ๋Šฅ๋ ฅ ์ „ ๊ตฌ๊ฐ„ ๊ฐœ์„ ๋˜์—ˆ์ง€๋งŒ RAG ์‚ฌ์šฉ ๊ฐ€๋Šฅ ์ˆ˜์ค€์—๋Š” ๋ฏธ๋‹ฌ โ†’ ๋ฌธ๋งฅ 1024๋กœ ๋‹ค์‹œ pre-training ์˜ˆ์ • |
| run22 | 0.6.0p | pre-training | ๋‚˜๋ฌด์œ„ํ‚ค + AI hub ๋„์„œ + ํ•œ/์˜ ์œ„ํ‚ค + ํ•ฉ์„ฑ ์‚ฐ์ˆ  7.64์–ต์ž | 353.6M | 1.22 | 4,279.1๋ถ„ | 22.34M | 19.0 | 1.6328 | ๋‚˜๋ฌด์œ„ํ‚ค ๋„์ž… + ํ† ํฌ๋‚˜์ด์ € v4 + 22M ํ™•์žฅ. ์ฝ”ํผ์Šค 3.10โ†’7.64์–ต์ž(๋‚˜๋ฌด์œ„ํ‚ค 33.6% / ๋„์„œ 24.1% / ์˜๋ฌธ์œ„ํ‚ค 22.1% / ํ•œ๊ตญ์–ด์œ„ํ‚ค 17.5% / ์‚ฐ์ˆ  2.7%, ํ•œ๊ตญ์–ด 75.2%). vocab 5,206โ†’14,241๋กœ ์ž/ํ† ํฐ 1.881โ†’2.107, unk 0.320โ†’0.054%. ๋ฌธ๋งฅ 256โ†’1024, 12์ธต d256โ†’14์ธต d320 |
| run23 | 0.6.1simf | sft-full | SFT 32,275 + ์ •์ฒด์„ฑ 936 + ๋‹ค์ค‘ํ„ด 4,908 + ์‚ฐ์ˆ  2,000 + ์‚ฌ์‹ค 7,200 | 11.8M | 3.00 | 475.8๋ถ„ | 22.34M | 1.58 | 1.0253 (sft) | run22 ๊ธฐ๋ฐ˜ ์ „์ฒด SFT. ๊ฐ™์€ ๋ฐ์ดํ„ฐยท์‹œ๋“œ๋กœ run20 ๋Œ€๋น„ ์‚ฌ์‹ค 29โ†’39.5%๋กœ ๊ฐœ์„ , unk 20.5โ†’0.5%. run20์˜ ์‚ฌ์‹ค ๊ฐ„ ํ˜ผ์„  ํ˜„์ƒ ๊ฐ์†Œ. parameter count ์˜ฌ๋ฆฐ ํšจ๊ณผ ํ™•์ธ. ์•„์ง RAG์€ ๊ฑฐ์˜ ๋ถˆ๊ฐ€๋Šฅ. ์ด๋Š” "์ฐพ๋Š”" ๋ฐฉ๋ฒ•์— ๋Œ€ํ•œ ํ•™์Šต์ด ์—†๊ธฐ ๋•Œ๋ฌธ์œผ๋กœ ํŒ๋‹จ, sft ์žฌ์‹ค์‹œ ์˜ˆ์ • |
| run24 | 0.6.2simfr | sft-rag | SFT 32,275 + ์ •์ฒด์„ฑ 936 + ๋‹ค์ค‘ํ„ด 4,908 + ์‚ฐ์ˆ  2,000 + ์‚ฌ์‹ค 7,200 + RAG 5,006 | 11.9M | 3.00 | 885.6๋ถ„ | 22.34M | 1.60 | 1.0301 (sft) | Deepseek ์ƒ์„ฑ RAG-SFT 5,006์Œ(9.6%) ์ถ”๊ฐ€. 700์ž ๋ฌธ๋‹จ์—์„œ ๋งž๋Š” ๋ฌธ์žฅ์„ ์ฐพ์•„ ๋ฐœ์ทŒํ•˜๊ธฐ ์‹œ์ž‘ํ•จ. ํ•˜์ง€๋งŒ๋ณตํ•ฉ ๋‹ต ๋ถ€๋ถ„ ๋ฐœ์ทŒ์™€ ์ •๋‹ต ์ฐพ์€ ๋’ค ๋ฐ˜๋ณต ๋ฃจํ”„ ๋ฌธ์ œ ์žˆ์Œ |
| run25 | 0.7.0p | pre-training | ์ฝ”ํผ์Šค v5 โ€” ๋„์„œยท๋‚˜๋ฌด์œ„ํ‚คยทํ•œ/์˜ ์œ„ํ‚คยท์œ ํŠœ๋ธŒ ์ž๋ง‰ยท์‚ฐ์ˆ ยท๋…ผ๋ฌธยท๊ตญ์–ด์› 8์ข… 26.3์–ต์ž (์ถœ์ฒ˜๋ณ„ ๋ฐ˜๋ณต ํฌํ•จ 39.6์–ต์ž) | 1,704M | 1.03 | ~921๋ถ„ | 75.32M | 22.62 | 1.2883 | notes/22 B์•ˆ. ํ† ํฌ๋‚˜์ด์ € v5(๋ฐ”์ดํŠธ ํด๋ฐฑ, vocab 21,621)๋กœ unk 0. 20์ธต d512, QK-Normยทz-lossยทWSDยทfp16 AMPยทtorch.compile ๋„์ž…. Colab T4 2,137์Šคํ…(13.4 s/step) โ†’ Kaggle T4ร—2 DDP 4,363์Šคํ…(6.2 s/step). ๊ธ€์ž๋‹น loss 1.633โ†’1.288(โˆ’21%). ๋ฌธ์žฅยท๋ฌธ๋‹จ ๊ตฌ์กฐ์™€ ์ธ์šฉ๋ถ€ํ˜ธ๋Š” ์žกํ˜”์œผ๋‚˜ ์‚ฌ์‹ค์€ ์ง€์–ด๋‚ด๊ณ  base ํŠน์œ ์˜ ๋ฐ˜๋ณต ๋ฃจํ”„ ์žˆ์Œ โ€” SFTยทRAG ๋ชซ |
| run26 | 0.7.1simft (forced) | sft-tool-forced | SFT 32,275 + ์ •์ฒด์„ฑ 792 + ๋‹ค์ค‘ํ„ด 4,908 + ์‚ฌ์‹ค 7,200 + ๋„๊ตฌ 10,269 (search 5,006 ยท calc 4,588 ยท clock 500 ยท ๋Œ€์กฐ 175) | 11.2M | 2.87 | 71.1๋ถ„ | 75.32M | 0.43 | 0.7281 (sft) | |
| run27 | 0.7.1simft (auto) | sft-tool-auto | SFT 32,275 + ์ •์ฒด์„ฑ 792 + ๋‹ค์ค‘ํ„ด 4,908 + ์‚ฌ์‹ค 7,200 + ๋„๊ตฌ 10,269 (search 5,006 ยท calc 4,588 ยท clock 500 ยท ๋Œ€์กฐ 175) | 11.4M | 2.87 | 73.7๋ถ„ | 75.32M | 0.43 | 0.7120 (sft) | |