rasyosef's picture
Update README.md
5ae3c8d verified
|
raw
history blame
806 Bytes
metadata
library_name: transformers
language:
  - am
base_model:
  - rasyosef/Llama-3.2-180M-Amharic

This model is an Instruction Tuned version of Llama 3.2 180M 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:

from transformers import pipeline

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

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

Output:

[{'generated_text': '1. įŒį‰„į… 2. įŠ¢į‰µį‹®įŒµį‹« 3. įŠ¬įŠ•į‹«'}]