Downloads · 30 days
21
7% of all-time downloads
eswardivi/llama2chat_telugu
llama2chat_telugu is a text generation model from eswardivi. Use it when you need the model to write or continue text. It is set up for transformers.
meta-llama/Llama-2-7b-chat-hf is finetuned on tranliterated telugu sentences.
Downloads · 30 days
21
7% of all-time downloads
All-time downloads
303
Public
Parameters
6.7B
13.5 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors13.5 GB · 100%
From the Hugging Face model README
meta-llama/Llama-2-7b-chat-hf is finetuned on tranliterated telugu sentences.
from transformers import pipeline
pipe = pipeline(
"text-generation",
model="eswardivi/llama2chat_telugu",
device_map="auto"
)
def create_prompt(instruction: str, input: str = "") -> str:
prompt = f"""
### Instruction:
{instruction}
### Response:
"""
return prompt
prompt = create_prompt("Naku python Program 1 to 10 count cheyadaniki ivvu")
out = pipe(
prompt,
num_return_sequences=1,
max_new_tokens=1024,
temperature=0.7,
top_p=0.9,
do_sample=True
)
print(out[0]['generated_text'])