Loadingโฆ
Loadingโฆ
Full dataset released.
A new model trained with new datasets while retaining the almost identical architecture to the previous version. The only difference in the architecture is that the context length has been increased to 1024.
Even though this model is exceptionally small for a language model, it has achieved significant improvements in generating accurate and logical sentences compared to its predecessor. These improvements were made possible by learning from super simple stories generated by more powerful language models, inspired by the TinyStories paper. Instead of using a dataset translated from English data, a much higher quality dataset was obtained by generating new synthetic data in line with the methodology outlined in the paper.
This model was intentionally kept the same size as its predecessor to demonstrate the impact of dataset quality on model performance. In fact, despite being trained on only about 10% of the tokens used by the previous model, it exhibits significantly better performance. The dataset will be released along with a larger version of the Neo-TinyStories-Korean model once its creation and validation are complete.
Result of this model with only single <s> token was given:
ํธ๋ฅด๋ฅธ ํ๋ ์๋ ๋๋ถ์ ํ์ด์ด ๊ฐ๋ํ ๋ ์ด์์ด์. ์๊ธฐ ๊ณฐ์ ์๋ง ๊ณฐ๊ณผ ํจ๊ป ์ฒ์ผ๋ก ๋๋ฌ ๊ฐ์ด์. ์ฒ ์์๋ ์์ ๊ฝ๋ค์ด ํผ์ด ์์๊ณ , ์๊ธฐ ๊ณฐ์ ์ ์ด ๋์ ๊ฝ์ ๊ตฌ๊ฒฝํ์ด์. ์๊ธฐ ๊ณฐ์ ๊ฝ์ ๋ณด๋ฉฐ ์ ์ด ๋ฌ์ด์. ๊ฐ์๊ธฐ ์๊ธฐ ๊ณฐ์ ์๋ง ๊ณฐ์๊ฒ ๋ฌ๋ ค๊ฐ "์๋ง, ์ ๊ฝ ์๋ป์!"๋ผ๊ณ ๋งํ์ด์. ์๋ง ๊ณฐ์ ์๊ธฐ ๊ณฐ์๊ฒ "๊ทธ๋, ์์ ๊ฝ์ด์ผ!"๋ผ๊ณ ๋งํ๋ฉฐ ์๊ธฐ ๊ณฐ์ ๊ผญ ์์ ์ฌ๋ ธ์ด์. ์๊ธฐ ๊ณฐ์ ์๋ง ๊ณฐ์ ๋ง์ ๋ฃ๊ณ ๊ฝ์ ๊บพ์ง ์๊ณ ์์๊ฒ ๋ฐ๋ผ๋ณด๋ ๊ฒ์ ๋ฐฐ์ ์ด์. ์๊ธฐ ๊ณฐ์ ์๋ง ๊ณฐ์ ๋ง์ ์ ๋ฃ๋ ๊ฒ์ด ์ค์ํ๋ค๋ ๊ฒ์ ์์์ด์.
Result of previous model with only single <s> token was given:
์๋ ์๋ , ํฐ ์ฒ์์ ํฐ ๋๋ฌด๋ค์ด ์์ ์ฒ์ ์ด๊ณ ์์์ต๋๋ค. ๊ทธ ๋๋ฌด๋ค์ ๋งค์ฐ ํ๋ณตํ์ต๋๋ค. ์ด๋ ๋ , ์์ ์๋ค์ด ๊ทธ ๋๋ฌด์ ์์ด์. ๊ทธ ๋๋ฌด๋ ์์ ์๋ฅผ ๋ณด๊ณ ๋งค์ฐ ๊ธฐ๋ปํ์ต๋๋ค. "์๋ , ์์ ์์ผ! ์ด๋ป๊ฒ ํด์ผ?"๋ผ๊ณ ์๊ฐ ๋งํ์ต๋๋ค. "๋๋ ์์ด ์์ด์ ๊ทธ๋์." ์์ ์๋ "์ ๋ ํฌ๊ณ ๊ฐํด์ง๋๋ฐ, ์ ๋ ์ ๋ง ๊ฐํด์."๋ผ๊ณ ๋งํ์ต๋๋ค. ์์ ์๋ ๋ ์์ฌ๋ผ ์์ ๋จน๊ณ ์ถ์ด ํ์ต๋๋ค. ์๋ ์์ ์ก๊ณ ์ถ์ด ํ์ต๋๋ค. ์์ ์๋ ์์ ์ฐพ์์ ์์ ์ฐพ์ ๋์ฐ์ต๋๋ค. ๋ง์นจ๋ด, ์์ ์๋ ์์ ์ฐพ์ ํฐ ์์ ์ฐพ์์ต๋๋ค. ์์ ์๋ ์์ฌ๊ท๋ค์ ์ฐพ์์ ์์ ์ฐพ์๋ด์ด ์์ ๋ฝ์๋์ต๋๋ค. ์๋ ์์ ๋ฐ์ ์์ ๋ค์ ๋ฝ์๋์ต๋๋ค. ์์ ์๋ ๋งค์ฐ ํ๋ณตํ์ต๋๋ค. ๊ทธ๋ค์ ์ข ์ผ ์์ผ๋ก ๋์๊ณ , ๊ทธ ๋ ์ดํ๋ก ๊ทธ๋ค์ ํญ์ ํจ๊ป ๋์์ต๋๋ค.
Result of this model with start sequence ๋จผ ์๋ , ๊ณ ์์ด was given:
๋จผ ์๋ , ๊ณ ์์ด ํ ๋ง๋ฆฌ๊ฐ ์ด์์ต๋๋ค. ๊ณ ์์ด๋ ๋ฐฅ์ ๋จน๊ณ ์ถ์์ต๋๋ค. ๊ณ ์์ด๋ ๋ฐฅ์ ์ฐพ์ ์ฒ ์์ผ๋ก ๋ค์ด๊ฐ์ต๋๋ค. ๊ณ ์์ด๋ ๋ง์๋ ๊ณผ์ผ์ ์ฐพ์์ต๋๋ค. ๊ณ ์์ด๋ ๊ณผ์ผ์ ๋จน๊ณ ์ถ์์ต๋๋ค. ๊ณ ์์ด๋ ๊ณผ์ผ์ ๋จน์ผ๋ ค๊ณ ํ์ง๋ง, ๊ณ ์์ด๋ ๋ฐฐ์ ์ฌ๋ผ๊ฐ ์ ์์์ต๋๋ค. ๊ณ ์์ด๋ ์ฌํ์ต๋๋ค. ๊ณ ์์ด๋ ๋ฐฅ์ ๋ชป ๋จน์์ต๋๋ค. ๊ณ ์์ด๋ ์ฌํ์ต๋๋ค. ๊ณ ์์ด๋ ์๋ง์๊ฒ ๋งํ์ต๋๋ค. "์๋ง, ๋ฐฅ์ด ์์ด์!" ๊ณ ์์ด๋ ์ฌํ์ต๋๋ค. ๊ณ ์์ด๋ ์๋ง์๊ฒ ๋ฐฅ์ ์ฃผ์์ต๋๋ค. ์๋ง๋ ๊ณ ์์ด์๊ฒ ๋ฐฅ์ ์ฃผ์์ต๋๋ค. ๊ณ ์์ด๋ ๋ฐฅ์ ๋ง์๊ฒ ๋จน์์ต๋๋ค. ๊ณ ์์ด๋ ์๋ง์๊ฒ ๊ณ ๋ง๋ค๊ณ ๋งํ์ต๋๋ค. ๊ณ ์์ด๋ ์๋ง ๋ง์ ์ ๋ค์์ต๋๋ค.
Result of previous model with start sequence ๋จผ ์๋ , ๊ณ ์์ด was given:
๋จผ ์๋ , ๊ณ ์์ด, ๋ณด๋ผ์์ธ ์, ํฐ์ ๊ณต์์์ ๋๊ณ ์์์ต๋๋ค. ๊ทธ๋ ํฐ ๋๋ฌด๋ฅผ ๋ณด๊ณ ์ฌ๋ผ๊ฐ๊ณ ์ถ์ด ํ์ต๋๋ค. ๊ทธ๋ ์ฌ๋ผ๊ฐ๊ณ ์ฌ๋ผ๊ฐ๊ธฐ ์์ํ์ต๋๋ค. ๊ทธ๋ ์ฌ๋ผ๊ฐ์ ๋๋ฌด๋ฅผ ์ค๋ฅด๊ธฐ ์์ํ์ต๋๋ค. ํฐ์ด ์ฌ๋ผ ๊ฐ๋ฉด์ ๊ทธ๋ ํฐ ๋๋ฌด๋ฅผ ๋ณด์์ต๋๋ค. ๊ทธ๋ ๋๋ฌด๋ฅผ ์ค๋ฅด๊ธฐ ์์ํ์ต๋๋ค. ํฐ์ ๋๋ฌด๋ฅผ ์ค๋ฅด๊ธฐ ์์ํ์ต๋๋ค. ๊ทธ๋ ์์ ์ก์์ต๋๋ค. ๊ทธ๋ ๋๋ฌด ๊ผญ๋๊ธฐ๊น์ง ์ฌ๋ผ๊ฐ์ต๋๋ค. ๊ทธ ๋๋ฌด ๊ผญ๋๊ธฐ์ ๋๋ฌํ์ต๋๋ค. ํฐ์ ๋งค์ฐ ํ๋ณตํ์ต๋๋ค. ๊ทธ๋ ๋๋ฌด ์๋ ํฐ ๋๋ฌด๋ฅผ ๋ณด์์ต๋๋ค. ๊ทธ๋ ๋๋ฌด์์ ๋ด๋ ค์ค๋ฉฐ ๋๋ฌด๋ฅผ ์ค๋ฅผ ์ ์์์ต๋๋ค. ๊ทธ๋ ๋๋ฌด๋ฅผ ์ค๋ฅด๊ณ ์ถ์์ต๋๋ค. ํ์ง๋ง ํฐ์ ๋๋ฌด๋ฅผ ์ค๋ฅด๊ธฐ ์์ํ์ต๋๋ค. ๊ทธ๋ ํฐ ๋๋ฌด๋ฅผ ์ค๋ฅด๊ธฐ ์ํด ์ฌ๋ผ๊ฐ ์ฌ๋ผ๊ฐ์ต๋๋ค. ํฐ์ ๋๋ฌด ๊ผญ๋๊ธฐ์ ๋๋ฌํ์ต๋๋ค. ๊ทธ๋ ๋๋ฌด๋ฅผ ์ค๋ฅด๋ ๊ฒ์ด ๋๋ฌด ๊ธฐ๋ปค์ต๋๋ค. ๊ทธ๋ ๋๋ฌด ๊ผญ๋๊ธฐ๊น์ง ๋๋ฌํ์ต๋๋ค. ๋๋ฌด ๊ผญ๋๊ธฐ์๋ ํฐ ๋๋ฌด๊ฐ ์๋ ๊ฒ์ ๋ณด์์ต๋๋ค. ๊ทธ๋ ๋๋ฌด ์๋ก ์ฌ๋ผ๊ฐ๊ณ ๋๋ฌด๋ฅผ ์ค๋ฅด๊ธฐ ์์ํ์ต๋๋ค. ๋๋ฌด๋ ๋๋ฌด ๊ผญ๋๊ธฐ์ ์ฌ๋ผ๊ฐ์ต๋๋ค. ํฐ์ ๋งค์ฐ ๊ธฐ๋ปค์ต๋๋ค. ๊ทธ๋ ๋๋ฌด์ ๋ชจ๋ ์น๊ตฌ๋ค์ ๋ฐฉ๋ฌธํด ์ค๋ซ๋์ ๋ด๋ ค์์ต๋๋ค. ๊ทธ๋ค์ ํจ๊ป ๋ง์ ์ฌ๋ฏธ๋ฅผ ๋๊ผ์ต๋๋ค.
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained('north-wind/Experimental-Neo-TinyStories-Korean-800K-20240819')
tokenizer = AutoTokenizer.from_pretrained('north-wind/Experimental-Neo-TinyStories-Korean-800K-20240819')
input_text = ''
input_ids = tokenizer(input_text, return_tensors='pt').input_ids
output = model.generate(input_ids, max_length=1024, do_sample=True, temperature=0.5)
print(tokenizer.decode(output[0]))