G0 / README.md
jemsi7's picture
Document automatic G0 access for signed-in users
47d362c verified
|
Raw History Blame Contribute Delete
18.9 kB
---
language:
- ko
- en
library_name: pytorch
pipeline_tag: text-generation
tags:
- from-scratch
- tool-use
- reinforcement-learning
- safetensors
metrics:
- accuracy
- perplexity
datasets:
- HuggingFaceFW/fineweb-edu
- HuggingFaceFW/fineweb-2
- minpeter/fineweb-2-edu-korean
- HuggingFaceTB/smollm-corpus
- channelcorp/KoMagpie-raw
- beomi/KoAlpaca-v1.1a
- HuggingFaceTB/smol-smoltalk
- openai/gsm8k
- HuggingFaceTB/smoltalk
- klue/klue
---
# G0
**G0 is a 66.53M-parameter Koreanโ€“English small language model (SLM) trained from scratch for a local personal assistant.** Its 10-layer decoder-only Transformer predicts the next token from the preceding tokens. The tool-selection policy uses the same weights to score candidate functions and arguments. On the same 1,263 public questions, its six-task mean was 29.1%. Its clearest advantages were Korean text prediction against two of four peers and decoding speed against three. The system is useful for supervised experiments with local tools and source-backed lookup.
[ํ•œ๊ตญ์–ด](#ํ•œ๊ตญ์–ด) ยท [Build and training methodology on GitHub](https://github.com/jemsi7/G0) ยท [Full system card](https://github.com/jemsi7/G0/blob/main/docs/G0-System-Card-EN.pdf) ยท [Measurement data](https://github.com/jemsi7/G0/blob/main/evaluation/summary.json)
> **Sign in to Hugging Face and request access once on the G0 model page to download the weights and tokenizer immediately.** Access is granted automatically. [Get model access](https://huggingface.co/jemsi7/G0) ยท [Download weights (133 MB)](https://huggingface.co/jemsi7/G0/resolve/6c2159e60914d845f752316cbfc0ff9a88cd4bd0/model.safetensors?download=true) ยท [All checkpoint files](https://huggingface.co/jemsi7/G0/tree/main)
## Running G0
Use the projectโ€™s native PyTorch decoder and tokenizer. Its launch command verifies the four checkpoint file digests and selects CUDA or Apple MPS. For CPU use, add `--device cpu` to the harness commands. Run the following commands with Python 3.13.
For CLI downloads, complete the one-time access request in your browser, then sign in to the CLI with the same Hugging Face account.
```sh
git clone https://github.com/jemsi7/G0.git
cd G0
python -m pip install -r requirements.txt
hf auth login
hf download jemsi7/G0 config.json tokenizer.json model.safetensors stage.json release.json --revision 6c2159e60914d845f752316cbfc0ff9a88cd4bd0 --local-dir weights
python -m personal_slm.harness info --weights weights
python -m personal_slm.harness tool calc '{"expression":"18 * 12 + 3"}' --weights weights
```
The calculator returns **219**. That result comes from executing the calculator. Use `python -m personal_slm.harness chat` for a conversation or `python -m personal_slm.harness gui --open` for the local browser interface. The harness exposes 15 tools and records whether the model chose a call, the user explicitly requested it, or a tool supplied the final answer.
## Comparison on the same inputs
All five models ran in FP32 on one Apple M5 Pro, with a common neutral prompt. Mean accuracy gives equal weight to HAE-RAE knowledge and reading, ARC Easy and Challenge, HellaSwag and WinoGrande. Language prediction used the same 256 sentences per language. Lower bits per UTF-8 byte (BPB) means lower prediction cost.
![Six-task mean accuracy and Korean bits per byte for all five models](https://raw.githubusercontent.com/jemsi7/G0/main/docs/figures/overview-en.svg)
| Model | Parameters | Mean accuracy โ†‘ | Korean BPB โ†“ | English BPB โ†“ | First token, ms โ†“ | Decode, tok/s โ†‘ |
|---|---:|---:|---:|---:|---:|---:|
| G0 | 66.53M | 29.1% | 2.307 | 3.048 | 5.84 | 418.1 |
| Pythia-70M-deduped | 70.43M | 30.8% | 2.755 | 1.881 | 4.50 | 469.5 |
| KoGPT2-base-v2 | 125.16M | 30.2% | 1.168 | 2.538 | 9.33 | 185.8 |
| SmolLM2-135M | 134.52M | 38.1% | 2.246 | 1.567 | 18.75 | 109.6 |
| SmolLM2-135M-Instruct | 134.52M | 35.2% | 2.816 | 1.781 | 18.61 | 109.9 |
First-token time and cached decoding speed are medians at batch size one, with 128 input and 32 output tokens, after three warmups and 20 timed runs. G0โ€™s first-token p95 was **6.25 ms**. A complete 32-token response took **80.04 ms** at p50 and **82.91 ms** at p95. For G0, ln perplexity was **7.686** in Korean and **7.801** in English. The corresponding per-token perplexities were 2,176.6 and 2,443.0. BPB gives different tokenizers a common denominator.
Uniform random choice has an expected six-task mean of 28.3%. G0โ€™s highest relative ranking was on WinoGrande (90/160). No G0 accuracy advantage survived Holm correction over 40 prespecified paired tests. The English tasks used 160 items each, and reading passages could be truncated under the shared 512-token cap. These values apply to the project protocol. [Full task breakdown and paired tests](https://github.com/jemsi7/G0/blob/main/evaluation/summary.json)
## Tool use and long-horizon behavior
| What the evaluator gave G0 | Scoring rule | Result |
|---|---|---:|
| Four candidate calls per bilingual request | Select the exact function and arguments | 17/64 |
| The same requests as text | Generate one complete, valid JSON call with exact arguments | 0/64 |
| Public and Korean schema tasks | Native selector with supplied argument candidates | 41/60 public ยท 37/60 Korean |
| A goal in the native simulator | Reach the specified state | 49/60 |
| Explicit native tasks requiring 6โ€“16 calls | Reach the specified state | 23/120 |
| New bilingual ledger tasks with up to eight actions | Complete the task and preserve other ledger state | 0/40 |
![Live ledger outcomes and guided next-action accuracy for each model](https://raw.githubusercontent.com/jemsi7/G0/main/docs/figures/workflow-en.svg)
The native policy completed 150/300 held-out tasks across five groups. It made unrequested changes on 106/300 and overwrote existing values on 57/300. On the new ledger benchmark every model scored 0/40, and G0 changed an unrequested value or key on all 40. Held-out GSM8K accuracy was 1/60. For personal use, the measured results favor tasks where a person can verify the source and review state changes.
## Architecture, training and context
| Property | G0 |
|---|---|
| Decoder | 10 layers, width 640, ten 64-dimensional attention heads, RoPE, pre-RMSNorm, bias-free SwiGLU |
| Vocabulary and weights | 24,576 byte-level BPE tokens, tied embedding and output, 66,532,480 unique parameters, FP16 safetensors |
| Pretraining | 1,881,735,168 next-token targets in 76,568 updates on an NVIDIA T4 |
| Post-training | Dialogue SFT โ†’ supervised worked solutions โ†’ verifier-reward RL with a leave-one-out baseline |
| Selected checkpoint | RL update 2,467. Development success on 6+ explicit calls was 45/48 there and 11/48 at update 22,304. |
**Estimated training compute cost was US$4.95.** The four stages from pretraining through the end of RL logged 38.15 hours on an NVIDIA T4. The G0 session used an estimated 49.59 prepaid Colab compute units (CU). At the U.S. Pay As You Go price of US$9.99 per 100 CU on 27 November 2026, the calculation is 49.59 ร— US$9.99 รท 100. The training record does not include the purchase price of the prepaid balance. [Google Colab pricing](https://colab.research.google.com/signup?hl=en&gl=US)
Training used 512-token blocks. The stored configuration contains 1,024 positions. The CLI can process **40,000 tokens total** using tiled attention and extended RoPE positions. A four-choice retrieval test scored 8/8 at 256 tokens and 2/8 at 40,000. The configurable thinking budget caps extra draft tokens. Its effect on answer accuracy remains unmeasured. [Architecture screen, training recipe and reward function](https://github.com/jemsi7/G0/blob/main/README.en.md)
## Data and redistribution
Apache-2.0 covers the projectโ€™s source code. Separate permission for commercial use and further redistribution of the weights has not been established. [Source code license](https://github.com/jemsi7/G0/blob/main/LICENSE)
If a rights holder requests removal, the maintainer will disable checkpoint downloads on Hugging Face. [Request removal](https://github.com/jemsi7/G0/issues)
The KoMagpie publisher generated the questions with EXAONE 3.0 and the answers with Qwen2-72B-Instruct. Section 4.2 of the EXAONE license permits research distribution of outputs. Section 3.1 restricts using outputs to develop or improve other models. Section 5(b) of the Qwen license restricts improvement of other large language models outside the Qwen family. [Pinned KoMagpie card](https://huggingface.co/datasets/channelcorp/KoMagpie-raw/blob/62198fb91661d81719d8524dec2c64911757f67b/README.md) ยท [EXAONE license](https://github.com/LG-AI-EXAONE/EXAONE-3.0/blob/144dba848dd3f044065fa57c5d7b3fc1c25abe9f/LICENSE) ยท [Qwen license](https://huggingface.co/Qwen/Qwen2-72B-Instruct/blob/c867f763ef53f2ea9d9b31ee8501273dedd391eb/LICENSE) ยท [Training sources and review](https://github.com/jemsi7/G0/blob/main/docs/data-sources.json)
**Checkpoint SHA-256** `a42ec8064eacfe2fc034dbe230e5726a67cb2d0b0a121f486b1f2ccc286ab930`. [Per-file verification record](release.json)
Figure typefaces are DejaVu Sans and IBM Plex Sans KR. [DejaVu notice](https://github.com/jemsi7/G0/blob/main/docs/notices/DejaVu-Sans-LICENSE.txt) ยท [IBM Plex notice](https://github.com/jemsi7/G0/blob/main/docs/notices/IBM-Plex-Sans-KR-OFL.txt)
---
## ํ•œ๊ตญ์–ด
**G0๋Š” ๋กœ์ปฌ ๊ฐœ์ธ ๋น„์„œ๋ฅผ ์œ„ํ•ด ์ฒ˜์Œ๋ถ€ํ„ฐ ํ•™์Šตํ•œ 6,653๋งŒ ํŒŒ๋ผ๋ฏธํ„ฐ์˜ ํ•œ๊ตญ์–ดยท์˜์–ด ์†Œํ˜• ์–ธ์–ด ๋ชจ๋ธ(SLM)์ž…๋‹ˆ๋‹ค.** 10์ธต ๋””์ฝ”๋” ์ „์šฉ Transformer๊ฐ€ ์•ž์„  ํ† ํฐ์„ ๋ฐ”ํƒ•์œผ๋กœ ๋‹ค์Œ ํ† ํฐ์„ ์˜ˆ์ธกํ•ฉ๋‹ˆ๋‹ค. ๋„๊ตฌ ์„ ํƒ๊ธฐ๋Š” ๊ฐ™์€ ๊ฐ€์ค‘์น˜๋กœ ํ•จ์ˆ˜์™€ ์ธ์ž ํ›„๋ณด๋ฅผ ํ‰๊ฐ€ํ•ฉ๋‹ˆ๋‹ค. ๊ณต๊ฐœ ๋ฌธํ•ญ 1,263๊ฐœ์—์„œ 6๊ณผ๋ชฉ ํ‰๊ท  ์ •๋‹ต๋ฅ ์€ 29.1%์˜€์Šต๋‹ˆ๋‹ค. ํ•œ๊ตญ์–ด ๋ฌธ์žฅ ์˜ˆ์ธก ๋น„์šฉ์€ ๋น„๊ต ๋ชจ๋ธ ๋„ค ๊ฐœ ์ค‘ ๋‘˜๋ณด๋‹ค ๋‚ฎ์•˜๊ณ , ๋””์ฝ”๋”ฉ ์†๋„๋Š” ์…‹๋ณด๋‹ค ๋นจ๋ž์Šต๋‹ˆ๋‹ค. ์‚ฌ๋žŒ์ด ์ถœ์ฒ˜์™€ ์ž‘์—… ๊ฒฐ๊ณผ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋Š” ๋กœ์ปฌ ๋„๊ตฌ ์‹คํ—˜์— ์ ํ•ฉํ•ฉ๋‹ˆ๋‹ค.
[English](#g0) ยท [GitHub ๊ตฌ์ถ• ๋ฐฉ๋ฒ•๋ก ](https://github.com/jemsi7/G0) ยท [๊ตญ๋ฌธ ์‹œ์Šคํ…œ ์นด๋“œ](https://github.com/jemsi7/G0/blob/main/docs/G0-System-Card-KO.pdf) ยท [์‹ค์ธก ๋ฐ์ดํ„ฐ](https://github.com/jemsi7/G0/blob/main/evaluation/summary.json)
> **Hugging Face์— ๋กœ๊ทธ์ธํ•˜๊ณ  G0 ๋ชจ๋ธ ํŽ˜์ด์ง€์—์„œ ์ฒ˜์Œ ํ•œ ๋ฒˆ ์ ‘๊ทผ์„ ์‹ ์ฒญํ•˜๋ฉด ๊ฐ€์ค‘์น˜์™€ ํ† ํฌ๋‚˜์ด์ €๋ฅผ ๋ฐ”๋กœ ๋ฐ›์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.** ์šด์˜์ž ์Šน์ธ์€ ํ•„์š” ์—†์Šต๋‹ˆ๋‹ค. [๋ชจ๋ธ ์ ‘๊ทผ ์‹ ์ฒญ](https://huggingface.co/jemsi7/G0) ยท [๊ฐ€์ค‘์น˜ ํŒŒ์ผ(133 MB)](https://huggingface.co/jemsi7/G0/resolve/6c2159e60914d845f752316cbfc0ff9a88cd4bd0/model.safetensors?download=true) ยท [์ „์ฒด ์ฒดํฌํฌ์ธํŠธ ํŒŒ์ผ](https://huggingface.co/jemsi7/G0/tree/main)
## ์‹คํ–‰ํ•˜๊ธฐ
G0๋Š” ์ „์šฉ PyTorch ๋””์ฝ”๋”์™€ ํ† ํฌ๋‚˜์ด์ €๋กœ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค. ์‹คํ–‰๊ธฐ๋Š” ์ฒดํฌํฌ์ธํŠธ ํŒŒ์ผ 4๊ฐœ์˜ ํ•ด์‹œ๋ฅผ ๊ฒ€์ฆํ•˜๊ณ  CUDA ๋˜๋Š” Apple MPS๋ฅผ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค. CPU์—์„œ๋Š” ํ•˜๋‹ˆ์Šค ๋ช…๋ น์— `--device cpu`๋ฅผ ๋ถ™์ž…๋‹ˆ๋‹ค. ์•„๋ž˜ ๋ช…๋ น์€ Python 3.13์—์„œ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
CLI๋กœ ๋ฐ›์„ ๋•Œ๋Š” ๋จผ์ € ๋ธŒ๋ผ์šฐ์ €์—์„œ ์ ‘๊ทผ์„ ์‹ ์ฒญํ•œ ๋’ค, ๊ฐ™์€ Hugging Face ๊ณ„์ •์œผ๋กœ CLI์— ๋กœ๊ทธ์ธํ•ฉ๋‹ˆ๋‹ค.
```sh
git clone https://github.com/jemsi7/G0.git
cd G0
python -m pip install -r requirements.txt
hf auth login
hf download jemsi7/G0 config.json tokenizer.json model.safetensors stage.json release.json --revision 6c2159e60914d845f752316cbfc0ff9a88cd4bd0 --local-dir weights
python -m personal_slm.harness info --weights weights
python -m personal_slm.harness tool calc '{"expression":"18 * 12 + 3"}' --weights weights
```
๊ณ„์‚ฐ ๋„๊ตฌ์˜ ๋ฐ˜ํ™˜๊ฐ’์€ **219**์ž…๋‹ˆ๋‹ค. ์ด ๊ฐ’์€ ๊ณ„์‚ฐ๊ธฐ๋ฅผ ์‹คํ–‰ํ•ด์„œ ์–ป์Šต๋‹ˆ๋‹ค. ํ„ฐ๋ฏธ๋„ ๋Œ€ํ™”๋Š” `python -m personal_slm.harness chat`, ๋กœ์ปฌ ๋ธŒ๋ผ์šฐ์ € ํ™”๋ฉด์€ `python -m personal_slm.harness gui --open`์œผ๋กœ ์—ฝ๋‹ˆ๋‹ค. ํ•˜๋‹ˆ์Šค๋Š” ๋„๊ตฌ 15๊ฐœ๋ฅผ ์ œ๊ณตํ•˜๊ณ , ๋ชจ๋ธ์ด ๊ณ ๋ฅธ ํ˜ธ์ถœ์ธ์ง€ ์‚ฌ์šฉ์ž๊ฐ€ ๋ช…์‹œํ•œ ํ˜ธ์ถœ์ธ์ง€, ์ตœ์ข… ๋‹ต์ด ์–ด๋А ๋„๊ตฌ์—์„œ ์™”๋Š”์ง€ ๊ธฐ๋กํ•ฉ๋‹ˆ๋‹ค.
## ๊ฐ™์€ ์กฐ๊ฑด์—์„œ์˜ ์„ฑ๋Šฅ
Apple M5 Pro ํ•œ ๋Œ€์—์„œ ๋‹ค์„ฏ ๋ชจ๋ธ์— ๋™์ผํ•œ ์ค‘๋ฆฝ ํ”„๋กฌํ”„ํŠธ์™€ FP32 ์ •๋ฐ€๋„๋ฅผ ์ ์šฉํ–ˆ์Šต๋‹ˆ๋‹ค. ํ‰๊ท  ์ •๋‹ต๋ฅ ์€ HAE-RAE ์ƒ์‹ยท๋…ํ•ด, ARC EasyยทChallenge, HellaSwag, WinoGrande์˜ ์—ฌ์„ฏ ์ •๋‹ต๋ฅ ์„ ๊ฐ™์€ ๋น„์ค‘์œผ๋กœ ํ‰๊ท ํ•œ ๊ฐ’์ž…๋‹ˆ๋‹ค. ์–ธ์–ด ์˜ˆ์ธก์€ ์–ธ์–ด๋ณ„ ๋™์ผํ•œ 256๋ฌธ์žฅ์—์„œ ์ธก์ •ํ–ˆ์Šต๋‹ˆ๋‹ค. UTF-8 ์›๋ฌธ ๋ฐ”์ดํŠธ๋‹น ๋น„ํŠธ(BPB)๊ฐ€ ๋‚ฎ์„์ˆ˜๋ก ์˜ˆ์ธก ๋น„์šฉ์ด ์ž‘์Šต๋‹ˆ๋‹ค.
![๋‹ค์„ฏ ๋ชจ๋ธ์˜ ์—ฌ์„ฏ ๊ณผ๋ชฉ ํ‰๊ท  ์ •๋‹ต๋ฅ ๊ณผ ํ•œ๊ตญ์–ด ๋ฐ”์ดํŠธ๋‹น ๋น„ํŠธ](https://raw.githubusercontent.com/jemsi7/G0/main/docs/figures/overview-ko.svg)
| ๋ชจ๋ธ | ํŒŒ๋ผ๋ฏธํ„ฐ | ํ‰๊ท  ์ •๋‹ต๋ฅ  โ†‘ | ํ•œ๊ตญ์–ด BPB โ†“ | ์˜์–ด BPB โ†“ | ์ฒซ ํ† ํฐ ms โ†“ | ๋””์ฝ”๋”ฉ tok/s โ†‘ |
|---|---:|---:|---:|---:|---:|---:|
| G0 | 66.53M | 29.1% | 2.307 | 3.048 | 5.84 | 418.1 |
| Pythia-70M-deduped | 70.43M | 30.8% | 2.755 | 1.881 | 4.50 | 469.5 |
| KoGPT2-base-v2 | 125.16M | 30.2% | 1.168 | 2.538 | 9.33 | 185.8 |
| SmolLM2-135M | 134.52M | 38.1% | 2.246 | 1.567 | 18.75 | 109.6 |
| SmolLM2-135M-Instruct | 134.52M | 35.2% | 2.816 | 1.781 | 18.61 | 109.9 |
์ฒซ ํ† ํฐ ์ง€์—ฐ๊ณผ ํ›„์† ๋””์ฝ”๋”ฉ์€ ๋ฐฐ์น˜ 1, ์ž…๋ ฅ 128ยท์ถœ๋ ฅ 32ํ† ํฐ์—์„œ 3ํšŒ ์˜ˆ์—ด ๋’ค 20ํšŒ ์ธก์ •ํ•œ ์ค‘์•™๊ฐ’์ž…๋‹ˆ๋‹ค. G0์˜ ์ฒซ ํ† ํฐ p95๋Š” **6.25ms**, ์ „์ฒด ์‘๋‹ต์€ p50 **80.04ms**, p95 **82.91ms**์˜€์Šต๋‹ˆ๋‹ค. ์ž์—ฐ๋กœ๊ทธ ํผํ”Œ๋ ‰์‹œํ‹ฐ๋Š” ํ•œ๊ตญ์–ด **7.686**, ์˜์–ด **7.801**์ด๊ณ  ํ† ํฐ๋‹น ํผํ”Œ๋ ‰์‹œํ‹ฐ๋Š” ๊ฐ๊ฐ 2,176.6๊ณผ 2,443.0์ž…๋‹ˆ๋‹ค. ํ† ํฌ๋‚˜์ด์ €๊ฐ€ ๋‹ค๋ฅธ ๋ชจ๋ธ๋ผ๋ฆฌ ๋น„๊ตํ•  ๋•Œ๋Š” BPB๋ฅผ ํ•จ๊ป˜ ๋ณด์•„์•ผ ํ•ฉ๋‹ˆ๋‹ค.
๋ฌด์ž‘์œ„ ์„ ํƒ์˜ ๊ณผ๋ชฉ ํ‰๊ท  ๊ธฐ๋Œ€๊ฐ’์€ 28.3%์ž…๋‹ˆ๋‹ค. G0๋Š” WinoGrande์—์„œ 90/160์œผ๋กœ ๊ฐ€์žฅ ๋†’์•˜์ง€๋งŒ, ์‚ฌ์ „์— ์ •ํ•œ ์ง ๋น„๊ต 40๊ฐœ์— Holm ๋ณด์ •์„ ์ ์šฉํ•œ ๋’ค ํ™•์ธ๋œ G0์˜ ์ •๋‹ต๋ฅ  ์šฐ์œ„๋Š” ์—†์—ˆ์Šต๋‹ˆ๋‹ค. ์˜์–ด ๊ณผ๋ชฉ์€ ๊ณผ๋ชฉ๋‹น 160๋ฌธํ•ญ์ด๋ฉฐ ํ•œ๊ตญ์–ด ๋…ํ•ด์˜ ๊ธด ์ง€๋ฌธ์—๋Š” ๊ณตํ†ต 512ํ† ํฐ ์ƒํ•œ์„ ์ ์šฉํ–ˆ์Šต๋‹ˆ๋‹ค. [๊ณผ๋ชฉ๋ณ„ ์„ฑ์ ๊ณผ ์ง ๋น„๊ต ๊ฒฐ๊ณผ](https://github.com/jemsi7/G0/blob/main/evaluation/summary.json)
## ๋„๊ตฌ ํ˜ธ์ถœ๊ณผ ์žฅ๊ธฐ ์ž‘์—…
| ๋ชจ๋ธ์— ์ฃผ์–ด์ง„ ์กฐ๊ฑด | ํŒ์ • | ๊ฒฐ๊ณผ |
|---|---|---:|
| ํ•œยท์˜ ์š”์ฒญ๊ณผ ํ˜ธ์ถœ ํ›„๋ณด 4๊ฐœ | ์˜ฌ๋ฐ”๋ฅธ ํ•จ์ˆ˜์™€ ์ธ์ž ์„ ํƒ | 17/64 |
| ๊ฐ™์€ ์š”์ฒญ์„ ํ…์ŠคํŠธ๋กœ ์ž…๋ ฅ | ์‘๋‹ต ์ „์ฒด๊ฐ€ ์œ ํšจํ•œ JSON์ด๊ณ  ํ•จ์ˆ˜ยท์ธ์ž๋„ ์ผ์น˜ | 0/64 |
| ๊ณต๊ฐœ ๋ฐ ํ•œ๊ตญ์–ด ํ•จ์ˆ˜ ์Šคํ‚ค๋งˆ | ์ „์šฉ ์„ ํƒ๊ธฐ์— ์ธ์ž ํ›„๋ณด ์ œ๊ณต | ๊ณต๊ฐœ 41/60 ยท ํ•œ๊ตญ์–ด 37/60 |
| ๊ธฐ์กด ๋ชจ์˜ ํ™˜๊ฒฝ์˜ ๋ชฉํ‘œํ˜• ์ง€์‹œ | ๋ชฉํ‘œ ์ƒํƒœ์— ๋„๋‹ฌ | 49/60 |
| 6~16ํšŒ ํ˜ธ์ถœ์„ ๋ช…์‹œํ•œ ๊ธฐ์กด ํ™˜๊ฒฝ ๊ณผ์ œ | ๋ชฉํ‘œ ์ƒํƒœ์— ๋„๋‹ฌ | 23/120 |
| ์ตœ๋Œ€ 8ํšŒ ํ–‰๋™ํ•˜๋Š” ์ƒˆ ํ•œยท์˜ ์žฅ๋ถ€ | ์ •์‚ฐ ์™„๋ฃŒ ๋ฐ ๋‹ค๋ฅธ ์žฅ๋ถ€ ์ƒํƒœ ๋ณด์กด | 0/40 |
![๋‹ค์„ฏ ๋ชจ๋ธ์˜ ์žฅ๋ถ€ ์ •์‚ฐ ๊ฒฐ๊ณผ์™€ ์ •๋‹ต ์ด๋ ฅ์„ ์ฃผ์—ˆ์„ ๋•Œ์˜ ๋‹ค์Œ ํ–‰๋™ ์ •ํ™•๋„](https://raw.githubusercontent.com/jemsi7/G0/main/docs/figures/workflow-ko.svg)
์ „์šฉ ์ •์ฑ…์€ ๊ธฐ์กด ํ™˜๊ฒฝ์˜ ๋…๋ฆฝ ํ‰๊ฐ€ ๊ณผ์ œ 300๊ฐœ ์ค‘ 150๊ฐœ๋ฅผ ์™„๋ฃŒํ–ˆ์Šต๋‹ˆ๋‹ค. ์š”์ฒญ ๋ฐ– ๋ณ€๊ฒฝ์€ 106/300(35.3%), ๊ธฐ์กด ๊ฐ’ ๋ฎ์–ด์“ฐ๊ธฐ๋Š” 57/300(19.0%)์—์„œ ๊ด€์ธก๋์Šต๋‹ˆ๋‹ค. ์ƒˆ ์žฅ๋ถ€์—์„œ๋Š” ๋‹ค์„ฏ ๋ชจ๋ธ ๋ชจ๋‘ 0/40์ด์—ˆ๊ณ , G0๋Š” 40๊ฑด ๋ชจ๋‘์—์„œ ์ž˜๋ชป๋œ ๊ฐ’์ด๋‚˜ ํ‚ค๋ฅผ ๋ณ€๊ฒฝํ–ˆ์Šต๋‹ˆ๋‹ค. ๋ณ„๋„ GSM8K ์‹œํ—˜ ์„ฑ์ ์€ 1/60์ž…๋‹ˆ๋‹ค. ๋ฌธ์„œ์—์„œ ์ฐพ์€ ์ถœ์ฒ˜๋‚˜ ์ €์žฅ ์ „ํ›„์˜ ์ƒํƒœ๋ฅผ ์‚ฌ์šฉ์ž๊ฐ€ ๋Œ€์กฐํ•  ์ˆ˜ ์žˆ๋Š” ์กฐ๊ฑด์—์„œ ์“ฐ๋Š” ํŽธ์ด ํ‰๊ฐ€ ๊ฒฐ๊ณผ์— ๋ถ€ํ•ฉํ•ฉ๋‹ˆ๋‹ค.
## ๊ตฌ์กฐ์™€ ํ•™์Šต
| ํ•ญ๋ชฉ | G0 ์‚ฌ์–‘ ๋ฐ ๊ด€์ธก |
|---|---|
| ๋””์ฝ”๋” | 10์ธต, ํญ 640, ํ—ค๋“œ 10๊ฐœ ร— 64์ฐจ์›, RoPE, pre-RMSNorm, ํŽธํ–ฅ ์—†๋Š” SwiGLU |
| ์–ดํœ˜ยท๊ฐ€์ค‘์น˜ | ๋ฐ”์ดํŠธ BPE 24,576๊ฐœ, ์ž…์ถœ๋ ฅ ์ž„๋ฒ ๋”ฉ ๊ณต์œ , ๊ณ ์œ  ํŒŒ๋ผ๋ฏธํ„ฐ 66,532,480๊ฐœ, FP16 safetensors |
| ์‚ฌ์ „ํ•™์Šต | NVIDIA T4์—์„œ 76,568๋ฒˆ ๊ฐฑ์‹ , ๋‹ค์Œ ํ† ํฐ ๋ชฉํ‘œ 1,881,735,168๊ฐœ |
| ํ›„ํ•™์Šต | ๋Œ€ํ™” SFT โ†’ ํ’€์ด ์ง€๋„ํ•™์Šต โ†’ ๊ทธ๋ฃน ๋‚ด ๋‹ค๋ฅธ ๊ถค์  ํ‰๊ท ์„ ๊ธฐ์ค€์œผ๋กœ ํ•œ ๊ฒ€์ฆ ๋ณด์ƒ RL |
| ๊ฐ€์ค‘์น˜ ์„ ํƒ | RL 2,467๋ฒˆ์งธ ๊ฐฑ์‹ ์—์„œ ๋ช…์‹œํ˜• 6ํšŒ ์ด์ƒ ๊ฐœ๋ฐœ ๊ณผ์ œ 45/48. RL ์ข…๋ฃŒ 22,304๋ฒˆ์งธ์—๋Š” 11/48. |
**ํ›ˆ๋ จ์— ์‚ฌ์šฉํ•œ ์ปดํ“จํŒ… ๋น„์šฉ์€ ์•ฝ US$4.95์ž…๋‹ˆ๋‹ค.** ์‚ฌ์ „ํ•™์Šต๋ถ€ํ„ฐ RL ์ข…๋ฃŒ๊นŒ์ง€ ๋„ค ๋‹จ๊ณ„์—์„œ ๊ธฐ๋กํ•œ NVIDIA T4 ํ•™์Šต ์‹œ๊ฐ„์€ 38.15์‹œ๊ฐ„์ž…๋‹ˆ๋‹ค. G0 ์„ธ์…˜์€ ๊ธฐ์กด Colab ์„ ๋ถˆ ์ž”์•ก์—์„œ ์•ฝ 49.59 CU๋ฅผ ์‚ฌ์šฉํ–ˆ์Šต๋‹ˆ๋‹ค. 2026๋…„ 11์›” 27์ผ ๋ฏธ๊ตญ Pay As You Go ๊ฐ€๊ฒฉ์ธ 100 CU๋‹น US$9.99๋ฅผ ์ ์šฉํ•ด 49.59 ร— US$9.99 รท 100์œผ๋กœ ํ™˜์‚ฐํ–ˆ์Šต๋‹ˆ๋‹ค. ์„ ๋ถˆ ์ž”์•ก์„ ๊ตฌ์ž…ํ•  ๋•Œ ๊ฒฐ์ œํ•œ ๊ธˆ์•ก์€ ๊ธฐ๋ก์— ์—†์Šต๋‹ˆ๋‹ค. [Google Colab ์š”๊ธˆํ‘œ](https://colab.research.google.com/signup?hl=en&gl=US)
์‚ฌ์ „ํ•™์Šต ๋ธ”๋ก์€ 512ํ† ํฐ, ์ €์žฅ ์„ค์ •์€ 1,024์œ„์น˜์ž…๋‹ˆ๋‹ค. CLI๋Š” RoPE ์œ„์น˜์™€ ํƒ€์ผ ์–ดํ…์…˜์„ ํ™•์žฅํ•ด ์ž…๋ ฅ๊ณผ ์ถœ๋ ฅ์„ ํ•ฉํ•ด **40,000ํ† ํฐ**์„ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค. 4์ง€์„ ๋‹ค ํšŒ์ˆ˜ ์‹œํ—˜์€ 256ํ† ํฐ์—์„œ 8/8, 40,000ํ† ํฐ์—์„œ 2/8์ด์—ˆ์Šต๋‹ˆ๋‹ค. ์‚ฌ๊ณ  ์˜ˆ์‚ฐ์€ ์ถ”๊ฐ€ ์ดˆ์•ˆ ํ† ํฐ ์ˆ˜๋ฅผ ์ œํ•œํ•˜๋ฉฐ ์˜ˆ์‚ฐ๋ณ„ ์ •๋‹ต๋ฅ ์€ ์•„์ง ์ธก์ •ํ•˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค. [๊ตฌ์กฐ ๋น„๊ตยท๋‹จ๊ณ„๋ณ„ ํ•™์Šต๋ฒ•ยท๋ณด์ƒ ํ•จ์ˆ˜](https://github.com/jemsi7/G0)
## ๋ฐ์ดํ„ฐ์™€ ๊ฐ€์ค‘์น˜ ๋ฐฐํฌ ์กฐ๊ฑด
ํ”„๋กœ์ ํŠธ๊ฐ€ ์ž‘์„ฑํ•œ ์†Œ์Šค ์ฝ”๋“œ์—๋Š” Apache-2.0์ด ์ ์šฉ๋ฉ๋‹ˆ๋‹ค. ๊ฐ€์ค‘์น˜์˜ ์ƒ์—…์  ์ด์šฉ๊ณผ ์ถ”๊ฐ€ ์žฌ๋ฐฐํฌ์— ๊ด€ํ•œ ๋ณ„๋„ ํ—ˆ๊ฐ€๋Š” ํ™•์ธ๋˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค. [์ฝ”๋“œ ๋ผ์ด์„ ์Šค](https://github.com/jemsi7/G0/blob/main/LICENSE)
๊ถŒ๋ฆฌ์ž๊ฐ€ ๊ณต๊ฐœ ์ค‘๋‹จ์„ ์š”์ฒญํ•˜๋ฉด Hugging Face์—์„œ ์ฒดํฌํฌ์ธํŠธ ๋‹ค์šด๋กœ๋“œ๋ฅผ ์ค‘๋‹จํ•ฉ๋‹ˆ๋‹ค. [๊ณต๊ฐœ ์ค‘๋‹จ ์š”์ฒญ](https://github.com/jemsi7/G0/issues)
KoMagpie ์ œ์ž‘์ž๋Š” ์งˆ๋ฌธ์„ EXAONE 3.0์œผ๋กœ, ๋‹ต๋ณ€์„ Qwen2-72B-Instruct๋กœ ์ƒ์„ฑํ–ˆ๋‹ค๊ณ  ์„ค๋ช…ํ•ฉ๋‹ˆ๋‹ค. EXAONE ์•ฝ๊ด€ ์ œ4.2์กฐ๋Š” ์—ฐ๊ตฌ ๋ชฉ์ ์˜ ์ถœ๋ ฅ๋ฌผ ๋ฐฐํฌ๋ฅผ ํ—ˆ์šฉํ•˜๊ณ , ์ œ3.1์กฐ๋Š” ๊ทธ ์ถœ๋ ฅ์œผ๋กœ ๋‹ค๋ฅธ ๋ชจ๋ธ์„ ๊ฐœ๋ฐœยท๊ฐœ์„ ํ•˜๋Š” ์šฉ๋„๋ฅผ ์ œํ•œํ•ฉ๋‹ˆ๋‹ค. Qwen ์•ฝ๊ด€ ์ œ5์กฐ (b)๋Š” ๋‹ค๋ฅธ ๊ณ„์—ด์˜ ๋Œ€ํ˜• ์–ธ์–ด ๋ชจ๋ธ ๊ฐœ์„ ์„ ์ œํ•œํ•ฉ๋‹ˆ๋‹ค. [๊ณ ์ • KoMagpie ์นด๋“œ](https://huggingface.co/datasets/channelcorp/KoMagpie-raw/blob/62198fb91661d81719d8524dec2c64911757f67b/README.md) ยท [EXAONE ์•ฝ๊ด€](https://github.com/LG-AI-EXAONE/EXAONE-3.0/blob/144dba848dd3f044065fa57c5d7b3fc1c25abe9f/LICENSE) ยท [Qwen ์•ฝ๊ด€](https://huggingface.co/Qwen/Qwen2-72B-Instruct/blob/c867f763ef53f2ea9d9b31ee8501273dedd391eb/LICENSE) ยท [๋ฐ์ดํ„ฐ๋ณ„ ์ถœ์ฒ˜์™€ ๊ฒ€ํ†  ๊ธฐ๋ก](https://github.com/jemsi7/G0/blob/main/docs/data-sources.json)
**๊ฐ€์ค‘์น˜ SHA-256** `a42ec8064eacfe2fc034dbe230e5726a67cb2d0b0a121f486b1f2ccc286ab930`. [ํŒŒ์ผ๋ณ„ ๊ฒ€์ฆ ๊ธฐ๋ก](release.json)
๊ทธ๋ž˜ํ”„ ๊ธ€๊ผด์€ DejaVu Sans์™€ IBM Plex Sans KR์ž…๋‹ˆ๋‹ค. [DejaVu ๊ณ ์ง€](https://github.com/jemsi7/G0/blob/main/docs/notices/DejaVu-Sans-LICENSE.txt) ยท [IBM Plex ๊ณ ์ง€](https://github.com/jemsi7/G0/blob/main/docs/notices/IBM-Plex-Sans-KR-OFL.txt)