Views
No views yet
이 모델은 mid-training 단계의 모델로, base 모델에 수학/코드/추론 능력을 강화하기 위해 continued pre-training을 수행한 결과입니다.결론: 대 실패작입니다..! 성능이 너무 안좋습니다. 하지만 이를 계기로 LLM의 전체 학습 파이프라인(아키텍처 설계 → pre-training → mid-training → SFT)을 직접 경험하고 이해할 수 있었으며, 이 경험을 바탕으로 더 발전된 모델을 만들어 나갈 예정입니다.
| Model | Stage | Description |
|---|---|---|
| KoGum-0.5B-16k | Pre-train | Base model |
| KoGum-0.5B-16k-mid | Mid-train | Continued pre-training (this) |
| KoGum-0.5B-16k-Instruct | SFT | Instruction-tuned chat model |
| Parameters | ~581M |
| Hidden Size | 1024 |
| Layers | 24 |
| Attention Heads | 16 (GQA, 8 KV heads) |
| Intermediate Size | 5120 |
| Vocab Size | 125,041 |
| Max Context | 16,384 tokens |
| RoPE Theta | 500,000 |
| Precision | BFloat16 |
| Dataset | Category | Ratio |
|---|---|---|
| KORMo-Team/UltraFineWeb-filtered | Web | 17% |
| HuggingFaceTB/smollm-corpus (cosmopedia-v2) | Web + Code + Textbook | 11% |
| HuggingFaceTB/cosmopedia (web_samples_v1) | Synthetic Textbook | 7% |
| HuggingFaceTB/finemath (finemath-3plus) | Math | 13% |
| nvidia/OpenMathReasoning (CoT) | Math Reasoning | 10% |
| nvidia/OpenCodeReasoning | Code Reasoning | 7% |
| Dataset | Category | Ratio |
|---|---|---|
| KORMo-Team/UltraFineWeb-ko-synth | Web | 11% |
| KORMo-Team/FineWeb2-ko-synth | Web | 8% |
| KORMo-Team/NemoPost-ko-synth | Reasoning | 6% |
| KORMo-Team/Cosmopedia-ko-synth | Textbook | 5% |
| KORMo-Team/korean-public-corpus | Public Data | 5% |
| Total Steps | 1,500 |
| Tokens Seen | ~0.79B |
| Final Loss | 2.04 |
1from transformers import AutoTokenizer, AutoModelForCausalLM
2
3import torch
4
5tokenizer = AutoTokenizer.from_pretrained("jiwon9703/KoGum-0.5B-16k-mid", trust_remote_code=True)
6model = AutoModelForCausalLM.from_pretrained(
7 "jiwon9703/KoGum-0.5B-16k-mid",
8 trust_remote_code=True,
9 torch_dtype=torch.bfloat16,
10)
11
12input_text = "피타고라스 정리를 증명하면"
13inputs = tokenizer(input_text, return_tensors="pt")
14outputs = model.generate(**inputs, max_new_tokens=200)
15print(tokenizer.decode(outputs[0], skip_special_tokens=True))Benchmark 결과는 추후 업데이트 예정입니다.