Downloads · 30 days
12
5% of all-time downloads
Yaongi/HybriKo-117M
HybriKo-117M is a machine learning model from Yaongi. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
RNN과 Attention 메커니즘을 결합한 Griffin 아키텍처 기반 한국어 하이브리드 언어 모델입니다.
Downloads · 30 days
12
5% of all-time downloads
All-time downloads
239
Public
Repo size
1.9 GB
Likes
3
Public
Click a slice to open those files.
.pt1.9 GB · 80%
From the Hugging Face model README
RNN과 Attention 메커니즘을 결합한 Griffin 아키텍처 기반 한국어 하이브리드 언어 모델입니다.
| Phase | Steps | Loss | PPL |
|---|---|---|---|
| Phase 1 | 0-10K | 1.80 | ~6.0 |
| Phase 2 | 10K-30K | 1.60 | ~4.95 |

HybriKo (117.8M params)
├── Embedding (32000 → 768)
├── Layers (12x)
│ ├── Layer 1,2: GriffinBlock (RNN)
│ ├── Layer 3: AttentionBlock
│ └── (패턴 반복)
└── LM Head (weight-tied)
주요 특징:
import torch
from hybridko.model import HybriKoModel, HybriKoConfig
from hybridko.data import load_tokenizer
# 모델 로드
config = HybriKoConfig.from_yaml("config.yaml")
model = HybriKoModel(config)
model.load_state_dict(torch.load("pytorch_model.pt"))
# 토크나이저 로드
tokenizer = load_tokenizer("HybriKo_tok.model")
# 텍스트 생성
from hybridko.inference import generate_with_cache
output = generate_with_cache(model, tokenizer, "한국의 수도는", max_tokens=50)
print(output)
prompts = ["한국어", "대한민국", "서울", "인공지능", "오늘 날씨가"]
for prompt in prompts:
input_ids = torch.tensor([[2] + sp.EncodeAsIds(prompt)]).to(device)
output = model.generate(input_ids, max_new_tokens=30, temperature=0.8, top_k=50)
generated = sp.DecodeIds(output[0].tolist())
print(f"📝 {prompt}")
print(f" → {generated}")
print("-" * 50)
pytorch_model.pt: 모델 가중치 (450MB)config.yaml: 모델 설정HybriKo_tok.model: SentencePiece 토크나이저HybriKo_tok.vocab: 토크나이저 어휘@misc{hybridko2026,
title={HybriKo: Korean Hybrid Language Model},
year={2026},
url={https://huggingface.co/gyunggyung/HybriKo-117M}
}
Apache 2.0