Text Generation
Transformers
Safetensors
Telugu
llama
conversational
text-generation-inference
Inference Endpoints
File size: 947 Bytes
8151200
 
95b1371
 
 
 
 
 
 
8151200
 
7e59cbc
8151200
95b1371
8151200
95b1371
8151200
95b1371
 
8151200
95b1371
 
 
 
 
8151200
95b1371
 
 
 
8151200
95b1371
 
 
8151200
95b1371
8151200
95b1371
 
 
 
 
 
 
 
8151200
95b1371
8151200
 
95b1371
8151200
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
library_name: transformers
datasets:
- eswardivi/telugu_instruction_dataset
- Telugu-LLM-Labs/yahma_alpaca_cleaned_telugu_filtered_and_romanized
- >-
  Telugu-LLM-Labs/teknium_GPTeacher_general_instruct_telugu_filtered_and_romanized
language:
- te
---

# Model card for Llama2chat_telugu (romanized)

 meta-llama/Llama-2-7b-chat-hf is finetuned on tranliterated telugu sentences.

## usage

```
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'])


```