初始化项目,由ModelHub XC社区提供模型

Model: rasyosef/Llama-3.2-1B-Amharic-Instruct
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-07-05 20:58:18 +08:00
commit 3bd2bc37a3
8 changed files with 2214 additions and 0 deletions

35
README.md Normal file
View File

@@ -0,0 +1,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. ኢትዮጵያ'}]
```