Downloads · 30 days
34
1% of all-time downloads
ehdwns1516/gpt3-kor-based_gpt2_review_SR2
gpt3-kor-based_gpt2_review_SR2 is a text generation model from ehdwns1516. Use it when you need the model to write or continue text. It is set up for transformers.
This model has been trained Korean dataset as a star of 2 in the naver shopping reivew dataset. Input text what you want to generate review. If the context is longer than 1200 characters, the context may be cut in the…
Downloads · 30 days
34
1% of all-time downloads
All-time downloads
5.2K
Public
Repo size
1.1 GB
Likes
0
Public
Click a slice to open those files.
.bin526 MB · 100%
From the Hugging Face model README
review generator DEMO: Ainize DEMO
review generator API: Ainize API
Language model: gpt3-kor-small_based_on_gpt2
Language: Korean
Training data: review_body dataset with a star of 2 in the naver shopping reivew dataset.
Code: See Ainize Workspace
from transformers import AutoTokenizer, AutoModelWithLMHead
tokenizer = AutoTokenizer.from_pretrained("ehdwns1516/gpt3-kor-based_gpt2_review_SR2")
model = AutoModelWithLMHead.from_pretrained("ehdwns1516/gpt3-kor-based_gpt2_review_SR2")
generator = pipeline(
"text-generation",
model="ehdwns1516/gpt3-kor-based_gpt2_review_SR2",
tokenizer=tokenizer
)
context = "your context"
result = dict()
result[0] = generator(context)[0]