Downloads · 30 days
9
41% of all-time downloads
oz1115/korean-gpt-quick-test
korean-gpt-quick-test is a machine learning model from oz1115. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
9
41% of all-time downloads
All-time downloads
22
Public
Repo size
317 MB
Likes
0
Public
Click a slice to open those files.
.bin46.7 MB · 98%
From the Hugging Face model README
한국어 GPT 모델입니다.
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained(
"oz1115/korean-gpt-quick-test",
trust_remote_code=True
)
model = AutoModelForCausalLM.from_pretrained(
"oz1115/korean-gpt-quick-test",
trust_remote_code=True
)
inputs = tokenizer("안녕하세요", return_tensors="pt")
outputs = model.generate(**inputs, max_length=50)
print(tokenizer.decode(outputs[0]))