Downloads · 30 days
0
michealnaye/AmharicCLIP
AmharicCLIP is a text-to-image model from michealnaye. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as creativeml-openrail-m.
Stable Diffusion v1.5 extended to support Amharic (Ethiopic script) prompts.
Downloads · 30 days
0
Access
Public
Updated Jun 14, 2026
Repo size
2.9 GB
Likes
0
Public
Click a slice to open those files.
.safetensors2.9 GB · 100%
From the Hugging Face model README
Stable Diffusion v1.5 extended to support Amharic (Ethiopic script) prompts.
This repository contains three components — each with its own documentation:
| Component | Folder | Description |
|---|---|---|
| 🔤 Text Encoder | text_encoder/ | Fine-tuned CLIPTextModel with Amharic support |
| 📝 Tokenizer | tokenizer/ | Patched tokenizer with 512 Ethiopic atomic tokens |
| 🖼️ Full Pipeline | pipeline/ | Complete SD v1.5 with Amharic text encoder |
from diffusers import StableDiffusionPipeline
from huggingface_hub import snapshot_download
import torch
# Download pipeline from HuggingFace
path = snapshot_download(
repo_id="michealnaye/AmharicCLIP",
allow_patterns="pipeline/*",
)
# Load pipeline
pipe = StableDiffusionPipeline.from_pretrained(
f"{path}/pipeline",
torch_dtype=torch.float16,
safety_checker=None,
)
pipe = pipe.to("cuda")
# Generate from Amharic prompt
image = pipe("የድመት ፎቶ").images[0] # photo of a cat
image.save("cat.png")
| Amharic Prompt | English | Generated |
|---|---|---|
| የድመት ፎቶ | photo of a cat | ✓ |
| የውሻ ፎቶ | photo of a dog | ✓ |
| የዝሆን ፎቶ | photo of an elephant | ✓ |
| የፈረስ ፎቶ | photo of a horse | ✓ |
| የቢራቢሮ ፎቶ | photo of a butterfly | ✓ |
OpenAI's CLIP tokenizer has no Amharic vocabulary. Each Ethiopic character fragments into 9 byte-level tokens, causing:
Our fix reduces token count by 66% and achieves 100% round-trip fidelity.
@misc{amharicclip2024,
title={AmharicCLIP: Extending CLIP to Amharic via Atomic Tokenization and Knowledge Distillation},
author={Micheal Naye},
year={2024},
publisher={HuggingFace},
url={https://huggingface.co/michealnaye/AmharicCLIP}
}