YAML Metadata Warning: empty or missing yaml metadata in repo card (https://huggingface.co/docs/hub/model-cards#model-card-metadata)

KoBERT ๋ถ„๋ฅ˜ ๋ชจ๋ธ

์ด ๋ชจ๋ธ์€ KoBERT๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ํ…์ŠคํŠธ ๋ถ„๋ฅ˜๋ฅผ ์œ„ํ•ด ํŒŒ์ธํŠœ๋‹๋œ ๋ชจ๋ธ์ž…๋‹ˆ๋‹ค.

๋ชจ๋ธ ์ •๋ณด

  • ๊ธฐ๋ณธ ๋ชจ๋ธ: beomi/kcbert-base
  • ํด๋ž˜์Šค ์ˆ˜: 12
  • ์‚ฌ์šฉ ๋ฐฉ๋ฒ•: ์•„๋ž˜ ์ฝ”๋“œ๋ฅผ ์ฐธ์กฐํ•˜์„ธ์š”

์‚ฌ์šฉ ์˜ˆ์‹œ

from transformers import BertForSequenceClassification, BertTokenizer

# ๋ชจ๋ธ๊ณผ ํ† ํฌ๋‚˜์ด์ € ๋กœ๋“œ
model_name = "rmsdud/kobert-classifier"
tokenizer = BertTokenizer.from_pretrained(model_name)
model = BertForSequenceClassification.from_pretrained(model_name)

# ์ถ”๋ก 
text = "๋ถ„๋ฅ˜ํ•  ํ…์ŠคํŠธ๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”."
inputs = tokenizer(text, return_tensors="pt", padding=True, truncation=True, max_length=128)
outputs = model(**inputs)
logits = outputs.logits
predicted_class = logits.argmax(-1).item()
print(f"์˜ˆ์ธก ํด๋ž˜์Šค: predicted_class")
Downloads last month
208
Safetensors
Model size
109M params
Tensor type
F32
ยท
Inference Providers NEW
This model is not currently available via any of the supported Inference Providers.
The model cannot be deployed to the HF Inference API: The model has no library tag.