Views
No views yet
1pip install torch transformers tokenizers
2
3import torch
4from tokenizers import Tokenizer
5
6# 토크나이저 로드
7tokenizer = Tokenizer.from_pretrained("oz1115/korean-gpt-150m")
8
9# 모델 로드 (커스텀 구현 필요)
10# model = CustomGPTModel.from_pretrained("oz1115/korean-gpt-150m")
11
12# 텍스트 생성
13prompt = "인공지능의 미래는"
14input_ids = tokenizer.encode(prompt).ids
15# output = model.generate(input_ids, max_length=50)
16# generated_text = tokenizer.decode(output)
17Training Data
18한국어 위키피디아 및 공개 한국어 텍스트 코퍼스
19Training Procedure
20Preprocessing
21
22Tokenizer: BPE (Byte-Pair Encoding)
23Vocabulary Size: 32,000
24Max Sequence Length: 512
25
26Training
27
28Optimizer: AdamW
29Learning Rate: 5e-4
30Batch Size: 32 (effective)
31Training Steps: ~10,000
32Hardware: Google Colab (T4 GPU)
33
34Evaluation
35한국어 텍스트 생성 품질 평가는 korean_evaluation.json 파일을 참조하세요.
36Limitations
37
38학습 데이터가 제한적이어서 일반화 성능에 한계가 있을 수 있습니다
39긴 문맥 처리에 제한이 있습니다 (max 512 tokens)
40사실 정확성이 보장되지 않습니다
41
42Bias and Risks
43모델이 학습 데이터의 편향을 반영할 수 있습니다. 생성된 텍스트를 비판적으로 검토하시기 바랍니다.
44Citation
45bibtex@misc{korean-gpt-150m,
46 author = {oz1115},
47 title = {korean-gpt-150m: Korean Foundation Model},
48 year = {2025},
49 publisher = {HuggingFace},
50 url = {https://huggingface.co/oz1115/korean-gpt-150m}
51}
52Contact
53
54HuggingFace: @oz1115
55
56License
57MIT