Downloads · 30 days
0
rishiraj/gemma-2-9b-kobita
gemma-2-9b-kobita is a machine learning model from rishiraj. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
0
Access
Public
Updated Sep 26, 2024
Repo size
1.8 GB
Likes
0
Public
Click a slice to open those files.
.safetensors1.7 GB · 98%
From the Hugging Face model README
prompt = """You are tasked with writing a poem in the style of the poet mentioned below. The poem should fit the specified category and adhere to the poet's distinctive tone, language, and themes.
### Poet:
{}
### Category:
{}
### Poem:
{}"""
inputs = tokenizer(
[
prompt.format(
"সুনীল গঙ্গোপাধ্যায়",
"প্রেমমূলক",
"",
)
], return_tensors = "pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens = 256, use_cache = True)
tokenizer.batch_decode(outputs)