Downloads · 30 days
23
1% of all-time downloads
sangjeedondrub/tibetan-roberta-causal-base
tibetan-roberta-causal-base is a text generation model from sangjeedondrub. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
This model is trained and released by Sangjee Dondrub [sangjeedondrub at live dot com], the mere purpose of conducting these experiments is to improve my familiarity with Transformers APIs.
Downloads · 30 days
23
1% of all-time downloads
All-time downloads
2.5K
Public
Repo size
668 MB
Likes
5
Public
Click a slice to open those files.
.bin334 MB · 99%
From the Hugging Face model README
Tibetan Roberta Causal Language Modelfrom transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
model_name = 'sangjeedondrub/tibetan-roberta-causal-base'
model = AutoModelForCausalLM.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)
text_gen_pipe = pipeline(
"text-generation",
model=model,
tokenizer=tokenizer
)
init_text = 'རིན་'
outputs = text_gen_pipe(init_text,
do_sample=True,
max_new_tokens=200,
temperature=.9,
top_k=10,
top_p=0.92,
num_return_sequences=10,
truncate=True)
for idx, output in enumerate(outputs, start=1):
print(idx)
print(output['generated_text'])
This model is trained and released by Sangjee Dondrub [sangjeedondrub at live dot com], the mere purpose of conducting these experiments is to improve my familiarity with Transformers APIs.