Downloads · 30 days
128
3% of all-time downloads
cateto/korean-gpt-neox-125M
korean-gpt-neox-125M is a text generation model from cateto. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as cc-by-3.0.
- Developed by: cateto - Model type: gpt-neox - Language(s) (NLP): Korean
Downloads · 30 days
128
3% of all-time downloads
All-time downloads
4.9K
Public
Parameters
215M
761 MB on disk
Likes
1
Public
Click a slice to open those files.
.bin381 MB · 50%
How the weights are stored.
F16165M · 77%
From the Hugging Face model README
# Import the transformers library
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("cateto/korean-gpt-neox-125M")
model = AutoModelForCausalLM.from_pretrained("cateto/korean-gpt-neox-125M")
# Get user input
user_input = "우리는 앞으로 더나은 미래를"
# Encode the prompt using the tokenizer
input_ids = tokenizer.encode(user_input, return_tensors="pt")
# Generate chatbot output using the model
output_ids = model.generate(
input_ids,
num_beams=4,
repetition_penalty=1.5,
no_repeat_ngram_size=3
)
# Decode chatbot output ids as text
bot_output = tokenizer.decode(output_ids.tolist()[0], skip_special_tokens=True)
# Print chatbot output
print(f"출력 ## ", bot_output)
# 출력 ## 우리는 앞으로 더나은 미래를 향해 나아갈 수 있다.