If you use this model, please cite the following paper:
@inproceedings {yang-puli-gptrio,
title = {Mono- and multilingual GPT-3 models for Hungarian},
booktitle = {Text, Speech, and Dialogue},
year = {2023},
publisher = {Springer Nature Switzerland},
series = {Lecture Notes in Computer Science},
address = {Plzeň, Czech Republic},
author = {Yang, Zijian Győző and Laki, László János and Váradi, Tamás and Prószéky, Gábor},
pages = {94--104},
isbn = {978-3-031-40498-6}
}
Usage
from transformers import GPTNeoXForCausalLM, AutoTokenizer
model = GPTNeoXForCausalLM.from_pretrained("NYTK/PULI-GPTrio")
tokenizer = AutoTokenizer.from_pretrained("NYTK/PULI-GPTrio")
prompt = "Elmesélek egy történetet a nyelvtechnológiáról."
input_ids = tokenizer(prompt, return_tensors="pt").input_ids
gen_tokens = model.generate(
input_ids,
do_sample=True,
temperature=0.9,
max_length=100,
)
gen_text = tokenizer.batch_decode(gen_tokens)[0]
print(gen_text)
Usage with pipeline
from transformers import pipeline, GPTNeoXForCausalLM, AutoTokenizer
model = GPTNeoXForCausalLM.from_pretrained("NYTK/PULI-GPTrio")
tokenizer = AutoTokenizer.from_pretrained("NYTK/PULI-GPTrio")
prompt = "Elmesélek egy történetet a nyelvtechnológiáról."
generator = pipeline(task="text-generation", model=model, tokenizer=tokenizer)
print(generator(prompt)[0]["generated_text"])
Runs of NYTK PULI-GPTrio on huggingface.co
1.1K
Total runs
0
24-hour runs
0
3-day runs
314
7-day runs
422
30-day runs
More Information About PULI-GPTrio huggingface.co Model
PULI-GPTrio huggingface.co is an AI model on huggingface.co that provides PULI-GPTrio's model effect (), which can be used instantly with this NYTK PULI-GPTrio model. huggingface.co supports a free trial of the PULI-GPTrio model, and also provides paid use of the PULI-GPTrio. Support call PULI-GPTrio model through api, including Node.js, Python, http.
PULI-GPTrio huggingface.co is an online trial and call api platform, which integrates PULI-GPTrio's modeling effects, including api services, and provides a free online trial of PULI-GPTrio, you can try PULI-GPTrio online for free by clicking the link below.
NYTK PULI-GPTrio online free url in huggingface.co:
PULI-GPTrio is an open source model from GitHub that offers a free installation service, and any user can find PULI-GPTrio on GitHub to install. At the same time, huggingface.co provides the effect of PULI-GPTrio install, users can directly use PULI-GPTrio installed effect in huggingface.co for debugging and trial. It also supports api for free installation.