Downloads · 30 days
280
1% of all-time downloads
team-lucid/mptk-1b
mptk-1b is a text generation model from team-lucid. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
MPTK-1B는 한국어/영어코드 데이터셋에서 학습된 1.3B 파라미터의 decoder-only transformer 언어모델입니다.
Downloads · 30 days
280
1% of all-time downloads
All-time downloads
54.3K
Public
Parameters
1.3B
31.5 GB on disk
Likes
2
Public
Click a slice to open those files.
.bin5.2 GB · 33%
From the Hugging Face model README
MPTK-1B는 한국어/영어코드 데이터셋에서 학습된 1.3B 파라미터의 decoder-only transformer 언어모델입니다.
이 모델은 구글의 TPU Research Cloud(TRC)를 통해 지원받은 Cloud TPU로 학습되었습니다.
다른 decoder-only transformer에서 일부 수정된 아키텍처인 MPT를 기반으로 합니다.
| Hyperparameter | Value |
|---|---|
| n_parameters | 1.3B |
| n_layers | 24 |
| n_heads | 16 |
| d_model | 2048 |
| vocab size | 50432 |
| sequence length | 2048 |
fp16으로 실행 시 NaN이 발생할 수 있습니다. 따라서 fp32 혹은 bf16로 실행하기를 권장합니다.
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
tokenizer = AutoTokenizer.from_pretrained("team-lucid/mptk-1b")
model = AutoModelForCausalLM.from_pretrained("team-lucid/mptk-1b")
pipe = pipeline('text-generation', model=model, tokenizer=tokenizer, device='cuda:0')
with torch.autocast('cuda', dtype=torch.bfloat16):
print(
pipe(
'대한민국의 수도는',
max_new_tokens=100,
do_sample=True,
)
)
OSCAR, mC4, wikipedia, namuwiki 등 한국어 데이터에 RefinedWeb, The Stack 에서 일부를 추가해 학습하였습니다.
| Hyperparameter | Value |
|---|---|
| Precision | bfloat16 |
| Optimizer | Lion |
| Learning rate | 2e-4 |
| Batch size | 1024 |