File size: 814 Bytes
c905e30
 
43b1757
 
354e540
 
c905e30
 
43b1757
c905e30
43b1757
 
 
 
 
c905e30
43b1757
c905e30
43b1757
 
c905e30
43b1757
 
 
 
 
c905e30
43b1757
 
 
c905e30
43b1757
 
 
 
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
---
library_name: transformers
language:
- am
base_model:
- rasyosef/Llama-3.2-1B-Amharic
---

This model is an Instruction Tuned version of Llama 3.2 1B Amharic.

### How to use
First, you need to install the latest version of transformers
```
pip install -Uq transformers
```

You can use this model directly with a pipeline for text generation:

```python
from transformers import pipeline

llama3_am = pipeline(
    "text-generation",
    model="rasyosef/Llama-3.2-1B-Amharic-Instruct",
    device_map="auto"
  )

messages = [{"role": "user", "content": "įˆ¶įˆµį‰µ į‹ØįŠ įįˆŖįŠ« įˆ€įŒˆįˆ«į‰µ įŒ„į‰€įˆµįˆįŠ"}]
llama3_am(messages, max_new_tokens=128, repetition_penalty=1.05, return_full_text=False)
```

Output:
```python
[{'generated_text': '1. įŒį‰„į… 2. į‹°į‰”į‰„ įŠ įįˆŖįŠ« 3. įŠ¢į‰µį‹®įŒµį‹«'}]
```