Downloads · 30 days
373
1% of all-time downloads
NlpHUST/gpt-neo-vi-small
gpt-neo-vi-small is a text generation model from NlpHUST. Use it when you need the model to write or continue text. It is set up for transformers.
First GPT for vietnamese GPT-Neo-vi-small is a transformer model designed using EleutherAI's replication of the GPT-3 architecture. GPT-Neo-vi-smal was trained on the News datasets, a large scale dataset created by fr…
Downloads · 30 days
373
1% of all-time downloads
All-time downloads
25.6K
Public
Repo size
1.1 GB
Likes
3
Public
Click a slice to open those files.
.bin546 MB · 100%
From the Hugging Face model README
First GPT for vietnamese
GPT-Neo-vi-small is a transformer model designed using EleutherAI's replication of the GPT-3 architecture.
GPT-Neo-vi-smal was trained on the News datasets, a large scale dataset created by from News Website for the purpose of training this model.
his example generates a different sequence each time it's run:
from transformers import GPTNeoForCausalLM, GPT2Tokenizer
model = GPTNeoForCausalLM.from_pretrained("NlpHUST/gpt-neo-vi-small")
tokenizer = GPT2Tokenizer.from_pretrained("NlpHUST/gpt-neo-vi-small")
prompt = "Ngay sau Tết Nguyên đán Tân Sửu, hiện tượng giá đất tăng tại nhiều địa phương. Thị trường nhộn nhịp, tạo ra những cơn sóng sốt đất khó tin khiến bộ ngành, địa phương đưa cảnh báo."
input_ids = tokenizer(prompt, return_tensors="pt").input_ids
gen_tokens = model.generate(input_ids, do_sample=True, temperature=1.0, max_length=1024)
gen_text = tokenizer.batch_decode(gen_tokens)[0]
print(gen_text)
For personal communication related to this project, please contact Nha Nguyen Van ([email protected]).