Downloads · 30 days
12
7% of all-time downloads
Youme21/Manhwa-NLLB-1.3B-EnAr-v2
Manhwa-NLLB-1.3B-EnAr-v2 is a machine learning model from Youme21. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as cc-by-nc-4.0.
English to Arabic Manhwa/Webtoon Translation Model
Downloads · 30 days
12
7% of all-time downloads
All-time downloads
167
Public
Repo size
132 MB
Likes
2
Public
Click a slice to open those files.
.safetensors189 MB · 84%
From the Hugging Face model README
English to Arabic Manhwa/Webtoon Translation Model
| (EN) | V1 | V2 |
|---|---|---|
| I will make you kowtow three times and cripple your cultivation. | سأجعلك تنحني ثلاث مرات وتشوه تدريبك | سأجعلك تنحني ثلاث مرات وأشل تدريبك |
| If you want to survive, you must open all your meridians. | إذا كنت تريد البقاء على قيد الحياة، يجب عليك فتح جميع خطوط الطول الخاصة بك. | إذا كنت تريد البقاء على قيد الحياة ، يجب أن تفتح جميع خطوط الطول الخاصة بك. |
| This old man is at the Nascent Soul stage. You cannot defeat him. | هذا الرجل العجوز في مرحلة الروح المبتدئة. لا يمكنك هزيمته. | هذا الرجل العجوز في مرحلة الروح الناشئة، لا يمكنك هزيمته. |
| I need to refine this Spirit Stone to stabilize my foundation. | أحتاج إلى صقل هذا الحجر الروحي لتحقيق الاستقرار في أساسي. | أحتاج إلى صقل حجر الروح هذا لتحقيق الاستقرار في أساسي. |
| Feature | V1 | V2 | Improvement |
|---|---|---|---|
| Base Model | NLLB-600M | NLLB-1.3B | 2.17x parameters |
| Training Data | ~80K pairs | 122,683 pairs | 1.55x more data |
| Training Quality | Standard dataset | Ultra-clean curated | Higher quality |
| LoRA Parameters | 12M | 23.6M | 1.97x trainable params |
| Training Method | Full fine-tune | LoRA (QLoRA 4-bit) | More efficient |
| English | V1 Translation | V2 Translation | Quality |
|---|---|---|---|
| Core Formation realm | عالم التشكيل الأساسي | عالم تشكيل الجوهر | More accurate |
| Nascent Soul stage | مرحلة الروح المبتدئة | مرحلة الروح الناشئة | Proper terminology |
| cripple your cultivation | تشوه تدريبك | أشل تدريبك | Stronger verb choice |
| English | V1 Translation | V2 Translation | Quality |
|---|---|---|---|
| courting death | تغازل الموت | تتودد للموت | Better idiom |
| immensity of the heavens | هائلة السماء | ضخامة السماء | Grammatically correct |
| rushed his breakthrough | هرع في اختراقه | سارع في اختراقه | More natural |
| English | V1 Translation | V2 Translation | Quality |
|---|---|---|---|
| Disciple greets the Sect Leader | يتقبل التلميذ زعيم الطائفة | التلميذ يحيي زعيم الطائفة | More appropriate verb |
This model excels at translating:
pip install torch transformers peft bitsandbytes accelerate
import torch
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, BitsAndBytesConfig
from peft import PeftModel
# Configure 4-bit quantization for efficiency
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_compute_dtype=torch.bfloat16,
bnb_4bit_quant_type="nf4",
)
# Load base model
base_model_id = "facebook/nllb-200-distilled-1.3B"
tokenizer = AutoTokenizer.from_pretrained(base_model_id)
base_model = AutoModelForSeq2SeqLM.from_pretrained(
base_model_id,
quantization_config=bnb_config,
device_map="auto"
)
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "Youme21/Manhwa-NLLB-EnAr-v2")
model.eval()
# Translate
def translate(text):
tokenizer.src_lang = "eng_Latn"
inputs = tokenizer(text, return_tensors="pt").to(model.device)
generated_tokens = model.generate(
**inputs,
forced_bos_token_id=tokenizer.convert_tokens_to_ids("arb_Arab"),
max_length=128,
num_beams=5,
early_stopping=True
)
return tokenizer.batch_decode(generated_tokens, skip_special_tokens=True)[0]
# Example
result = translate("You are courting death!")
print(result) # أنت تتودد للموت!
facebook/nllb-200-distilled-1.3Bexamples = [
"You have eyes but failed to recognize Mount Tai.",
"This seat will personally teach you a lesson.",
"I feel the Qi gathering in my Dantian.",
"System Alert: Proficiency of 'Alchemy' has reached Master level."
]
Outputs:
| Metric | Score |
|---|---|
| Validation BLEU | 43.10 |
| Training Loss (final) | 0.7693 |
| Validation Loss | 0.6870 |
If you use this model, please cite:
@misc{manhwa-nllb-enar-v2,
author = {Youme21},
title = {Manhwa-NLLB-EnAr-v2: English to Arabic Manhwa Translation},
year = {2025},
publisher = {HuggingFace},
url = {https://huggingface.co/Youme21/Manhwa-NLLB-EnAr-v2}
}
This model is released under the Creative Commons Attribution-NonCommercial 4.0 International License (CC-BY-NC-4.0).
You are free to:
Under the following terms:
For commercial use, please contact the author.
Full license: https://creativecommons.org/licenses/by-nc/4.0/
Built with ❤️ for the Arabic manhwa community