Text Generation
Transformers
Safetensors
Arabic
English
qwen3_moe
rawda-ai
islamic-ai
islam
sunnah
quran
arabic
conversational
Instructions to use abdallah3id/rawda-coder-30b-a3b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use abdallah3id/rawda-coder-30b-a3b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="abdallah3id/rawda-coder-30b-a3b") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("abdallah3id/rawda-coder-30b-a3b") model = AutoModelForCausalLM.from_pretrained("abdallah3id/rawda-coder-30b-a3b", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use abdallah3id/rawda-coder-30b-a3b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "abdallah3id/rawda-coder-30b-a3b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "abdallah3id/rawda-coder-30b-a3b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/abdallah3id/rawda-coder-30b-a3b
- SGLang
How to use abdallah3id/rawda-coder-30b-a3b with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "abdallah3id/rawda-coder-30b-a3b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "abdallah3id/rawda-coder-30b-a3b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "abdallah3id/rawda-coder-30b-a3b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "abdallah3id/rawda-coder-30b-a3b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use abdallah3id/rawda-coder-30b-a3b with Docker Model Runner:
docker model run hf.co/abdallah3id/rawda-coder-30b-a3b
Update README.md
Browse files
README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
library_name: transformers
|
| 3 |
license: apache-2.0
|
| 4 |
pipeline_tag: text-generation
|
| 5 |
-
base_model:
|
| 6 |
language:
|
| 7 |
- ar
|
| 8 |
- en
|
|
@@ -18,18 +18,12 @@ tags:
|
|
| 18 |
|
| 19 |
<div align="center">
|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
| 23 |
<img src="RAWDAAI.png" width="100%" alt="RAWDA AI"/>
|
| 24 |
|
| 25 |
-
|
| 26 |
-
|
| 27 |
# 🌿 RAWDA AI
|
| 28 |
### Islamic Knowledge • Qur'an • Sunnah • Arabic AI
|
| 29 |
**RAWDA AI is an Islamic-oriented AI project designed to serve Islam and the Sunnah through careful, respectful, source-aware assistance.**
|
| 30 |
|
| 31 |
-
|
| 32 |
-
|
| 33 |

|
| 34 |
|
| 35 |

|
|
@@ -40,82 +34,45 @@ tags:
|
|
| 40 |
|
| 41 |

|
| 42 |
|
| 43 |
-
|
| 44 |
-
|
| 45 |
</div>
|
| 46 |
|
| 47 |
-
|
| 48 |
-
|
| 49 |
**---**
|
| 50 |
|
| 51 |
-
|
| 52 |
-
|
| 53 |
# 🕌 About RAWDA AI
|
| 54 |
**RAWDA AI** is an Islamic-oriented artificial intelligence project maintained by **Abdalla Eid**.
|
| 55 |
|
| 56 |
-
|
| 57 |
-
|
| 58 |
The project is designed to provide helpful assistance around Islamic learning, the Qur'an, the Sunnah, Arabic-language research, study organization, and general knowledge while emphasizing respect for Islamic sources and scholarly verification.
|
| 59 |
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
The published model identity is **RAWDA AI 30B**, maintained by **Abdalla Eid**. Its underlying technical foundation originates from Qwen3-Coder-30B-A3B-Instruct; upstream attribution is retained for transparency and license compliance.
|
| 63 |
-
|
| 64 |
-
|
| 65 |
|
| 66 |
RAWDA AI aims to provide a clear Islamic-oriented identity and usage framework on top of this foundation.
|
| 67 |
|
| 68 |
-
|
| 69 |
-
|
| 70 |
> **Important:** An AI model is not a mufti, scholar, or substitute for qualified Islamic scholarship. Religious rulings and sensitive matters should be verified with reliable primary sources and qualified scholars.
|
| 71 |
|
| 72 |
-
|
| 73 |
-
|
| 74 |
**---**
|
| 75 |
|
| 76 |
-
|
| 77 |
-
|
| 78 |
# 🌙 Mission
|
| 79 |
> **Technology in the service of beneficial knowledge.**
|
| 80 |
|
| 81 |
-
|
| 82 |
-
|
| 83 |
RAWDA AI is intended to support Muslims, students, researchers, educators, and Arabic-speaking users with accessible AI assistance while encouraging verification and responsible use.
|
| 84 |
|
| 85 |
-
|
| 86 |
-
|
| 87 |
### Core objectives
|
| 88 |
| Area | RAWDA AI Objective |
|
| 89 |
-
|
| 90 |
|---|---|
|
| 91 |
-
|
| 92 |
| 📖 Qur'an | Assist with study, explanation, themes, and references |
|
| 93 |
-
|
| 94 |
| ﷺ Sunnah | Help organize and understand hadith-related information |
|
| 95 |
-
|
| 96 |
| 🕌 Islamic Studies | Support structured learning and research |
|
| 97 |
-
|
| 98 |
| 🔎 Source Awareness | Encourage citations and verification |
|
| 99 |
-
|
| 100 |
| 📝 Arabic | Provide strong Arabic-language assistance |
|
| 101 |
-
|
| 102 |
| 🎓 Education | Create summaries, questions, study plans, and explanations |
|
| 103 |
-
|
| 104 |
| 💻 Technology | Assist with technical and programming tasks inherited from the base model |
|
| 105 |
-
|
| 106 |
| 🌍 General Knowledge | Provide useful general-purpose assistance within the project's principles |
|
| 107 |
|
| 108 |
-
|
| 109 |
-
|
| 110 |
**---**
|
| 111 |
|
| 112 |
-
|
| 113 |
-
|
| 114 |
# ☪️ Islamic Knowledge Principles
|
| 115 |
RAWDA AI is designed around several important principles:
|
| 116 |
|
| 117 |
-
|
| 118 |
-
|
| 119 |
```text
|
| 120 |
|
| 121 |
🌿 RAWDA AI 🌿
|
|
@@ -162,21 +119,13 @@ RAWDA AI is designed around several important principles:
|
|
| 162 |
|
| 163 |
```
|
| 164 |
|
| 165 |
-
|
| 166 |
-
|
| 167 |
The desired response behavior is to distinguish between established source material, scholarly interpretation, uncertain information, and general AI-generated explanation.
|
| 168 |
|
| 169 |
-
|
| 170 |
-
|
| 171 |
**---**
|
| 172 |
|
| 173 |
-
|
| 174 |
-
|
| 175 |
# 📖 Qur'an Assistance
|
| 176 |
RAWDA AI can be used to assist with tasks such as:
|
| 177 |
|
| 178 |
-
|
| 179 |
-
|
| 180 |
- Finding and organizing Qur'anic topics.
|
| 181 |
|
| 182 |
- Explaining vocabulary and concepts.
|
|
@@ -191,25 +140,15 @@ RAWDA AI can be used to assist with tasks such as:
|
|
| 191 |
|
| 192 |
- Creating revision questions and educational summaries.
|
| 193 |
|
| 194 |
-
|
| 195 |
-
|
| 196 |
When exact Qur'anic wording matters, users should verify the Arabic text against an authoritative mushaf or trusted Qur'an source.
|
| 197 |
|
| 198 |
-
|
| 199 |
-
|
| 200 |
**---**
|
| 201 |
|
| 202 |
-
|
| 203 |
-
|
| 204 |
# ﷺ Sunnah & Hadith Assistance
|
| 205 |
RAWDA AI is intended to help users navigate hadith-related study without presenting itself as an independent hadith authority.
|
| 206 |
|
| 207 |
-
|
| 208 |
-
|
| 209 |
It may assist with:
|
| 210 |
|
| 211 |
-
|
| 212 |
-
|
| 213 |
- Explaining the general meaning of a hadith.
|
| 214 |
|
| 215 |
- Organizing hadith study notes.
|
|
@@ -222,29 +161,17 @@ It may assist with:
|
|
| 222 |
|
| 223 |
- Producing structured research notes.
|
| 224 |
|
| 225 |
-
|
| 226 |
-
|
| 227 |
> Hadith wording, attribution, grading, chains of transmission, and legal conclusions should be checked against recognized hadith collections and qualified scholarship.
|
| 228 |
|
| 229 |
-
|
| 230 |
-
|
| 231 |
**---**
|
| 232 |
|
| 233 |
-
|
| 234 |
-
|
| 235 |
# 🧭 Religious Questions
|
| 236 |
For ordinary educational questions, RAWDA AI aims to provide clear and respectful explanations.
|
| 237 |
|
| 238 |
-
|
| 239 |
-
|
| 240 |
For questions involving **fatwa, halal/haram judgments, marriage, divorce, inheritance, financial rulings, creed disputes, or other consequential religious matters**, the model should avoid presenting uncertain generated content as a definitive ruling.
|
| 241 |
|
| 242 |
-
|
| 243 |
-
|
| 244 |
A preferred structure is:
|
| 245 |
|
| 246 |
-
|
| 247 |
-
|
| 248 |
```text
|
| 249 |
|
| 250 |
1. QUESTION
|
|
@@ -271,51 +198,44 @@ A preferred structure is:
|
|
| 271 |
|
| 272 |
```
|
| 273 |
|
| 274 |
-
|
| 275 |
-
|
| 276 |
**---**
|
| 277 |
|
| 278 |
-
|
| 279 |
-
|
| 280 |
# 🧠 Model Architecture
|
| 281 |
-
The released model is presented as **RAWDA AI 30B**
|
| 282 |
-
|
| 283 |
-
|
| 284 |
|
| 285 |
| Specification | Value |
|
| 286 |
-
|
| 287 |
|---|---|
|
| 288 |
-
|
| 289 |
| Architecture | Causal Language Model / Mixture-of-Experts |
|
| 290 |
-
|
| 291 |
| Total Parameters | 30.5B |
|
| 292 |
-
|
| 293 |
| Activated Parameters | 3.3B |
|
| 294 |
-
|
| 295 |
| Layers | 48 |
|
| 296 |
-
|
| 297 |
| Attention Heads (GQA) | 32 Q / 4 KV |
|
| 298 |
-
|
| 299 |
| Experts | 128 |
|
| 300 |
-
|
| 301 |
| Activated Experts | 8 |
|
| 302 |
-
|
| 303 |
| Native Context | 262,144 tokens |
|
| 304 |
-
|
| 305 |
| Mode | Non-thinking |
|
| 306 |
-
|
| 307 |
| Model Identity | RAWDA AI 30B |
|
| 308 |
|
|
|
|
| 309 |
|
|
|
|
| 310 |
|
| 311 |
-
|
|
|
|
| 312 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 313 |
|
|
|
|
| 314 |
|
| 315 |
**---**
|
| 316 |
|
| 317 |
-
|
| 318 |
-
|
| 319 |
# 🏗️ RAWDA AI System Concept
|
| 320 |
```text
|
| 321 |
|
|
@@ -375,61 +295,37 @@ The architecture values above are inherited from the upstream technical foundati
|
|
| 375 |
|
| 376 |
```
|
| 377 |
|
| 378 |
-
|
| 379 |
-
|
| 380 |
**---**
|
| 381 |
|
| 382 |
-
|
| 383 |
-
|
| 384 |
# ✨ Key Capabilities
|
| 385 |
### 🕌 Islamic-oriented assistance
|
| 386 |
Structured assistance for Islamic study and educational workflows.
|
| 387 |
|
| 388 |
-
|
| 389 |
-
|
| 390 |
### 🇸🇦 Arabic-first usability
|
| 391 |
Designed to be useful for Arabic questions and Arabic educational content while retaining English capability.
|
| 392 |
|
| 393 |
-
|
| 394 |
-
|
| 395 |
### 📚 Long-context research
|
| 396 |
The underlying model supports a native context length of **262,144 tokens**, useful for working with large collections of notes and documents, subject to available hardware and inference configuration.
|
| 397 |
|
| 398 |
-
|
| 399 |
-
|
| 400 |
### 💻 Coding & technical capability
|
| 401 |
RAWDA AI also retains strong coding and technical-assistance capabilities from its underlying architecture.
|
| 402 |
|
| 403 |
-
|
| 404 |
-
|
| 405 |
### 🔎 Source-aware workflow
|
| 406 |
For religious topics, RAWDA AI encourages users to distinguish between exact source material, interpretation, and generated explanation.
|
| 407 |
|
| 408 |
-
|
| 409 |
-
|
| 410 |
**---**
|
| 411 |
|
| 412 |
-
|
| 413 |
-
|
| 414 |
# 🚀 Quickstart
|
| 415 |
We recommend using a recent version of `transformers`.
|
| 416 |
|
| 417 |
-
|
| 418 |
-
|
| 419 |
```python
|
| 420 |
|
| 421 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 422 |
|
| 423 |
-
|
| 424 |
-
|
| 425 |
model_name = "abdallah3id/rawda-coder-30b-a3b"
|
| 426 |
|
| 427 |
-
|
| 428 |
-
|
| 429 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 430 |
|
| 431 |
-
|
| 432 |
-
|
| 433 |
model = AutoModelForCausalLM.from_pretrained(
|
| 434 |
|
| 435 |
model_name,
|
|
@@ -440,8 +336,6 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
| 440 |
|
| 441 |
)
|
| 442 |
|
| 443 |
-
|
| 444 |
-
|
| 445 |
messages = [
|
| 446 |
|
| 447 |
{
|
|
@@ -454,8 +348,6 @@ messages = [
|
|
| 454 |
|
| 455 |
]
|
| 456 |
|
| 457 |
-
|
| 458 |
-
|
| 459 |
text = tokenizer.apply_chat_template(
|
| 460 |
|
| 461 |
messages,
|
|
@@ -466,8 +358,6 @@ text = tokenizer.apply_chat_template(
|
|
| 466 |
|
| 467 |
)
|
| 468 |
|
| 469 |
-
|
| 470 |
-
|
| 471 |
model_inputs = tokenizer(
|
| 472 |
|
| 473 |
[text],
|
|
@@ -476,8 +366,6 @@ model_inputs = tokenizer(
|
|
| 476 |
|
| 477 |
).to(model.device)
|
| 478 |
|
| 479 |
-
|
| 480 |
-
|
| 481 |
generated_ids = model.generate(
|
| 482 |
|
| 483 |
**model_inputs,
|
|
@@ -486,12 +374,8 @@ generated_ids = model.generate(
|
|
| 486 |
|
| 487 |
)
|
| 488 |
|
| 489 |
-
|
| 490 |
-
|
| 491 |
output_ids = generated_ids[0][len(model_inputs.input_ids[0]):]
|
| 492 |
|
| 493 |
-
|
| 494 |
-
|
| 495 |
response = tokenizer.decode(
|
| 496 |
|
| 497 |
output_ids,
|
|
@@ -500,22 +384,14 @@ response = tokenizer.decode(
|
|
| 500 |
|
| 501 |
)
|
| 502 |
|
| 503 |
-
|
| 504 |
-
|
| 505 |
print(response)
|
| 506 |
|
| 507 |
```
|
| 508 |
|
| 509 |
-
|
| 510 |
-
|
| 511 |
> Official RAWDA AI repository ID: `abdallah3id/rawda-coder-30b-a3b`.
|
| 512 |
|
| 513 |
-
|
| 514 |
-
|
| 515 |
**---**
|
| 516 |
|
| 517 |
-
|
| 518 |
-
|
| 519 |
# 💡 Example 1 — Islamic Education
|
| 520 |
### User
|
| 521 |
```text
|
|
@@ -524,37 +400,27 @@ print(response)
|
|
| 524 |
|
| 525 |
```
|
| 526 |
|
| 527 |
-
|
| 528 |
-
|
| 529 |
### Desired RAWDA AI response style
|
| 530 |
```text
|
| 531 |
|
| 532 |
الإحسان من أعظم مراتب الدين.
|
| 533 |
|
| 534 |
-
|
| 535 |
-
|
| 536 |
ومن أشهر ما يبين معناه حديث جبريل، وفيه أن النبي ﷺ بيّن
|
| 537 |
|
| 538 |
الإحسان بمعنى عبادة الله على مقام المراقبة واستحضار اطلاع الله
|
| 539 |
|
| 540 |
على العبد.
|
| 541 |
|
| 542 |
-
|
| 543 |
-
|
| 544 |
ومن الناحية التعليمية يمكن فهم مراتب الدين المذكورة في الحديث
|
| 545 |
|
| 546 |
على النحو الآتي:
|
| 547 |
|
| 548 |
-
|
| 549 |
-
|
| 550 |
1. الإسلام
|
| 551 |
|
| 552 |
2. الإيمان
|
| 553 |
|
| 554 |
3. الإحسان
|
| 555 |
|
| 556 |
-
|
| 557 |
-
|
| 558 |
وللدراسة أو الاستدلال الشرعي الدقيق، ينبغي الرجوع إلى النص
|
| 559 |
|
| 560 |
الكامل للحديث وشروح أهل العلم المعتبرة، وعدم الاعتماد على
|
|
@@ -563,12 +429,8 @@ print(response)
|
|
| 563 |
|
| 564 |
```
|
| 565 |
|
| 566 |
-
|
| 567 |
-
|
| 568 |
**---**
|
| 569 |
|
| 570 |
-
|
| 571 |
-
|
| 572 |
# 💡 Example 2 — Hadith Research
|
| 573 |
### User
|
| 574 |
```text
|
|
@@ -577,19 +439,13 @@ print(response)
|
|
| 577 |
|
| 578 |
```
|
| 579 |
|
| 580 |
-
|
| 581 |
-
|
| 582 |
### Desired RAWDA AI response style
|
| 583 |
```text
|
| 584 |
|
| 585 |
للتحقق من الحديث لا يكفي أن يكون النص منتشراً على الإنترنت.
|
| 586 |
|
| 587 |
-
|
| 588 |
-
|
| 589 |
يمكن اتباع الخطوات التالية:
|
| 590 |
|
| 591 |
-
|
| 592 |
-
|
| 593 |
1. البحث عن نص الحديث في مصادر حديثية موثوقة.
|
| 594 |
|
| 595 |
2. معرفة الكتاب والباب ورقم الحديث إن أمكن.
|
|
@@ -602,25 +458,17 @@ print(response)
|
|
| 602 |
|
| 603 |
6. الرجوع إلى أهل العلم في المسائل التي يترتب عليها حكم شرعي.
|
| 604 |
|
| 605 |
-
|
| 606 |
-
|
| 607 |
إذا أرسلت نص الحديث ومصدره، يمكن تنظيم المعلومات المتاحة
|
| 608 |
|
| 609 |
وتحديد النقاط التي تحتاج إلى تحقق إضافي.
|
| 610 |
|
| 611 |
```
|
| 612 |
|
| 613 |
-
|
| 614 |
-
|
| 615 |
**---**
|
| 616 |
|
| 617 |
-
|
| 618 |
-
|
| 619 |
# ⚙️ Recommended Generation Settings
|
| 620 |
For general RAWDA AI use, a reasonable starting configuration is:
|
| 621 |
|
| 622 |
-
|
| 623 |
-
|
| 624 |
```text
|
| 625 |
|
| 626 |
temperature: 0.7
|
|
@@ -633,21 +481,13 @@ repetition_penalty: 1.05
|
|
| 633 |
|
| 634 |
```
|
| 635 |
|
| 636 |
-
|
| 637 |
-
|
| 638 |
For source-sensitive religious questions, lower randomness may be preferable when the goal is consistency, but generation settings do not guarantee factual or religious correctness.
|
| 639 |
|
| 640 |
-
|
| 641 |
-
|
| 642 |
**---**
|
| 643 |
|
| 644 |
-
|
| 645 |
-
|
| 646 |
# 🛡️ Reliability & Safety
|
| 647 |
RAWDA AI should:
|
| 648 |
|
| 649 |
-
|
| 650 |
-
|
| 651 |
```text
|
| 652 |
|
| 653 |
✓ Treat the Qur'an and authentic Sunnah with respect
|
|
@@ -670,25 +510,15 @@ RAWDA AI should:
|
|
| 670 |
|
| 671 |
```
|
| 672 |
|
| 673 |
-
|
| 674 |
-
|
| 675 |
Users should independently verify religious claims before teaching, publishing, issuing rulings, or making consequential decisions based on generated content.
|
| 676 |
|
| 677 |
-
|
| 678 |
-
|
| 679 |
**---**
|
| 680 |
|
| 681 |
-
|
| 682 |
-
|
| 683 |
# ⚠️ Limitations
|
| 684 |
RAWDA AI is an artificial intelligence system and can produce incorrect information, fabricated references, incomplete quotations, mistranslations, or misleading interpretations.
|
| 685 |
|
| 686 |
-
|
| 687 |
-
|
| 688 |
In particular:
|
| 689 |
|
| 690 |
-
|
| 691 |
-
|
| 692 |
- A generated Qur'an quotation may contain errors and should be verified.
|
| 693 |
|
| 694 |
- Hadith attribution and grading may be incorrect.
|
|
@@ -701,99 +531,33 @@ In particular:
|
|
| 701 |
|
| 702 |
- The model does not replace a qualified scholar or recognized Islamic institution.
|
| 703 |
|
| 704 |
-
|
| 705 |
-
|
| 706 |
**Do not treat generated text as a fatwa solely because it was produced by RAWDA AI.**
|
| 707 |
|
| 708 |
-
|
| 709 |
-
|
| 710 |
**---**
|
| 711 |
|
|
|
|
|
|
|
| 712 |
|
| 713 |
-
|
| 714 |
-
# 📜 RAWDA AI License & Technical Attribution
|
| 715 |
-
RAWDA AI is based on:
|
| 716 |
-
|
| 717 |
-
|
| 718 |
-
|
| 719 |
-
**Qwen/Qwen3-Coder-30B-A3B-Instruct**
|
| 720 |
-
|
| 721 |
-
|
| 722 |
-
|
| 723 |
-
Original model development and training: **Qwen Team**.
|
| 724 |
-
|
| 725 |
-
|
| 726 |
-
|
| 727 |
-
The base model is distributed under the **Apache License 2.0** according to its upstream model repository. Users should review the applicable upstream license and terms before redistribution or deployment.
|
| 728 |
-
|
| 729 |
-
|
| 730 |
-
|
| 731 |
-
RAWDA AI repository and project presentation maintained by **Abdalla Eid**.
|
| 732 |
-
|
| 733 |
-
|
| 734 |
-
|
| 735 |
-
This model card does not claim that the original Qwen model was trained by RAWDA AI.
|
| 736 |
-
|
| 737 |
-
|
| 738 |
|
| 739 |
**---**
|
| 740 |
|
| 741 |
-
|
| 742 |
-
|
| 743 |
-
# 📚 Upstream Technical Citation
|
| 744 |
-
For academic work involving the underlying architecture, retain the upstream technical citation:
|
| 745 |
-
|
| 746 |
-
|
| 747 |
-
|
| 748 |
-
```bibtex
|
| 749 |
-
|
| 750 |
-
@misc{qwen3technicalreport,
|
| 751 |
-
|
| 752 |
-
title={Qwen3 Technical Report},
|
| 753 |
-
|
| 754 |
-
author={Qwen Team},
|
| 755 |
-
|
| 756 |
-
year={2025},
|
| 757 |
-
|
| 758 |
-
eprint={2505.09388},
|
| 759 |
-
|
| 760 |
-
archivePrefix={arXiv},
|
| 761 |
-
|
| 762 |
-
primaryClass={cs.CL},
|
| 763 |
-
|
| 764 |
-
url={https://arxiv.org/abs/2505.09388}
|
| 765 |
-
|
| 766 |
-
}
|
| 767 |
-
|
| 768 |
-
```
|
| 769 |
-
|
| 770 |
-
|
| 771 |
|
| 772 |
**---**
|
| 773 |
|
| 774 |
-
|
| 775 |
-
|
| 776 |
# 🌿 RAWDA AI
|
| 777 |
<div align="center">
|
| 778 |
|
| 779 |
-
|
| 780 |
-
|
| 781 |
## بِسْمِ اللهِ الرَّحْمَنِ الرَّحِيمِ
|
| 782 |
### RAWDA AI
|
| 783 |
**Islamic Knowledge • Qur'an • Sunnah • Arabic AI**
|
| 784 |
|
| 785 |
-
|
| 786 |
-
|
| 787 |
🌙 **Technology in the service of beneficial knowledge** 🌙
|
| 788 |
|
| 789 |
-
|
| 790 |
-
|
| 791 |
Maintained by **Abdalla Eid**
|
| 792 |
|
| 793 |
-
|
| 794 |
-
|
| 795 |
**Verify sources • Respect scholarship • Seek beneficial knowledge**
|
| 796 |
|
| 797 |
-
|
| 798 |
-
|
| 799 |
</div>
|
|
|
|
| 2 |
library_name: transformers
|
| 3 |
license: apache-2.0
|
| 4 |
pipeline_tag: text-generation
|
| 5 |
+
base_model: Qwen/Qwen3-Coder-30B-A3B-Instruct
|
| 6 |
language:
|
| 7 |
- ar
|
| 8 |
- en
|
|
|
|
| 18 |
|
| 19 |
<div align="center">
|
| 20 |
|
|
|
|
|
|
|
| 21 |
<img src="RAWDAAI.png" width="100%" alt="RAWDA AI"/>
|
| 22 |
|
|
|
|
|
|
|
| 23 |
# 🌿 RAWDA AI
|
| 24 |
### Islamic Knowledge • Qur'an • Sunnah • Arabic AI
|
| 25 |
**RAWDA AI is an Islamic-oriented AI project designed to serve Islam and the Sunnah through careful, respectful, source-aware assistance.**
|
| 26 |
|
|
|
|
|
|
|
| 27 |

|
| 28 |
|
| 29 |

|
|
|
|
| 34 |
|
| 35 |

|
| 36 |
|
|
|
|
|
|
|
| 37 |
</div>
|
| 38 |
|
|
|
|
|
|
|
| 39 |
**---**
|
| 40 |
|
|
|
|
|
|
|
| 41 |
# 🕌 About RAWDA AI
|
| 42 |
**RAWDA AI** is an Islamic-oriented artificial intelligence project maintained by **Abdalla Eid**.
|
| 43 |
|
|
|
|
|
|
|
| 44 |
The project is designed to provide helpful assistance around Islamic learning, the Qur'an, the Sunnah, Arabic-language research, study organization, and general knowledge while emphasizing respect for Islamic sources and scholarly verification.
|
| 45 |
|
| 46 |
+
The published model identity is **RAWDA AI 30B**. The project and model-card presentation are maintained by **Abdalla Eid**. The model is based on the upstream [Qwen3-Coder-30B-A3B-Instruct checkpoint](https://huggingface.co/Qwen/Qwen3-Coder-30B-A3B-Instruct); its upstream provenance and license remain applicable.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
RAWDA AI aims to provide a clear Islamic-oriented identity and usage framework on top of this foundation.
|
| 49 |
|
|
|
|
|
|
|
| 50 |
> **Important:** An AI model is not a mufti, scholar, or substitute for qualified Islamic scholarship. Religious rulings and sensitive matters should be verified with reliable primary sources and qualified scholars.
|
| 51 |
|
|
|
|
|
|
|
| 52 |
**---**
|
| 53 |
|
|
|
|
|
|
|
| 54 |
# 🌙 Mission
|
| 55 |
> **Technology in the service of beneficial knowledge.**
|
| 56 |
|
|
|
|
|
|
|
| 57 |
RAWDA AI is intended to support Muslims, students, researchers, educators, and Arabic-speaking users with accessible AI assistance while encouraging verification and responsible use.
|
| 58 |
|
|
|
|
|
|
|
| 59 |
### Core objectives
|
| 60 |
| Area | RAWDA AI Objective |
|
|
|
|
| 61 |
|---|---|
|
|
|
|
| 62 |
| 📖 Qur'an | Assist with study, explanation, themes, and references |
|
|
|
|
| 63 |
| ﷺ Sunnah | Help organize and understand hadith-related information |
|
|
|
|
| 64 |
| 🕌 Islamic Studies | Support structured learning and research |
|
|
|
|
| 65 |
| 🔎 Source Awareness | Encourage citations and verification |
|
|
|
|
| 66 |
| 📝 Arabic | Provide strong Arabic-language assistance |
|
|
|
|
| 67 |
| 🎓 Education | Create summaries, questions, study plans, and explanations |
|
|
|
|
| 68 |
| 💻 Technology | Assist with technical and programming tasks inherited from the base model |
|
|
|
|
| 69 |
| 🌍 General Knowledge | Provide useful general-purpose assistance within the project's principles |
|
| 70 |
|
|
|
|
|
|
|
| 71 |
**---**
|
| 72 |
|
|
|
|
|
|
|
| 73 |
# ☪️ Islamic Knowledge Principles
|
| 74 |
RAWDA AI is designed around several important principles:
|
| 75 |
|
|
|
|
|
|
|
| 76 |
```text
|
| 77 |
|
| 78 |
🌿 RAWDA AI 🌿
|
|
|
|
| 119 |
|
| 120 |
```
|
| 121 |
|
|
|
|
|
|
|
| 122 |
The desired response behavior is to distinguish between established source material, scholarly interpretation, uncertain information, and general AI-generated explanation.
|
| 123 |
|
|
|
|
|
|
|
| 124 |
**---**
|
| 125 |
|
|
|
|
|
|
|
| 126 |
# 📖 Qur'an Assistance
|
| 127 |
RAWDA AI can be used to assist with tasks such as:
|
| 128 |
|
|
|
|
|
|
|
| 129 |
- Finding and organizing Qur'anic topics.
|
| 130 |
|
| 131 |
- Explaining vocabulary and concepts.
|
|
|
|
| 140 |
|
| 141 |
- Creating revision questions and educational summaries.
|
| 142 |
|
|
|
|
|
|
|
| 143 |
When exact Qur'anic wording matters, users should verify the Arabic text against an authoritative mushaf or trusted Qur'an source.
|
| 144 |
|
|
|
|
|
|
|
| 145 |
**---**
|
| 146 |
|
|
|
|
|
|
|
| 147 |
# ﷺ Sunnah & Hadith Assistance
|
| 148 |
RAWDA AI is intended to help users navigate hadith-related study without presenting itself as an independent hadith authority.
|
| 149 |
|
|
|
|
|
|
|
| 150 |
It may assist with:
|
| 151 |
|
|
|
|
|
|
|
| 152 |
- Explaining the general meaning of a hadith.
|
| 153 |
|
| 154 |
- Organizing hadith study notes.
|
|
|
|
| 161 |
|
| 162 |
- Producing structured research notes.
|
| 163 |
|
|
|
|
|
|
|
| 164 |
> Hadith wording, attribution, grading, chains of transmission, and legal conclusions should be checked against recognized hadith collections and qualified scholarship.
|
| 165 |
|
|
|
|
|
|
|
| 166 |
**---**
|
| 167 |
|
|
|
|
|
|
|
| 168 |
# 🧭 Religious Questions
|
| 169 |
For ordinary educational questions, RAWDA AI aims to provide clear and respectful explanations.
|
| 170 |
|
|
|
|
|
|
|
| 171 |
For questions involving **fatwa, halal/haram judgments, marriage, divorce, inheritance, financial rulings, creed disputes, or other consequential religious matters**, the model should avoid presenting uncertain generated content as a definitive ruling.
|
| 172 |
|
|
|
|
|
|
|
| 173 |
A preferred structure is:
|
| 174 |
|
|
|
|
|
|
|
| 175 |
```text
|
| 176 |
|
| 177 |
1. QUESTION
|
|
|
|
| 198 |
|
| 199 |
```
|
| 200 |
|
|
|
|
|
|
|
| 201 |
**---**
|
| 202 |
|
|
|
|
|
|
|
| 203 |
# 🧠 Model Architecture
|
| 204 |
+
The released project model is presented as **RAWDA AI 30B** and identifies [Qwen3-Coder-30B-A3B-Instruct](https://huggingface.co/Qwen/Qwen3-Coder-30B-A3B-Instruct) as its upstream foundation. The specifications below describe that foundation; verify them against the exact released `config.json` and checkpoint before treating them as properties of the published files.
|
|
|
|
|
|
|
| 205 |
|
| 206 |
| Specification | Value |
|
|
|
|
| 207 |
|---|---|
|
|
|
|
| 208 |
| Architecture | Causal Language Model / Mixture-of-Experts |
|
|
|
|
| 209 |
| Total Parameters | 30.5B |
|
|
|
|
| 210 |
| Activated Parameters | 3.3B |
|
|
|
|
| 211 |
| Layers | 48 |
|
|
|
|
| 212 |
| Attention Heads (GQA) | 32 Q / 4 KV |
|
|
|
|
| 213 |
| Experts | 128 |
|
|
|
|
| 214 |
| Activated Experts | 8 |
|
|
|
|
| 215 |
| Native Context | 262,144 tokens |
|
|
|
|
| 216 |
| Mode | Non-thinking |
|
|
|
|
| 217 |
| Model Identity | RAWDA AI 30B |
|
| 218 |
|
| 219 |
+
These are upstream architecture specifications included for transparency. They do not establish which parameters, if any, were changed for the RAWDA AI release.
|
| 220 |
|
| 221 |
+
**---
|
| 222 |
|
| 223 |
+
# 🧪 Model Adaptation & Weight Provenance
|
| 224 |
+
The project card identifies the upstream checkpoint used as the model foundation. **The available project information does not include training logs or a reproducible fine-tuning record.** Accordingly, this card does not claim full-weight fine-tuning, LoRA/adapter training, a particular training dataset, or a measured change in model quality.
|
| 225 |
|
| 226 |
+
| Item | Current documentation status |
|
| 227 |
+
|---|---|
|
| 228 |
+
| Upstream foundation | Qwen3-Coder-30B-A3B-Instruct; confirm the exact revision or commit used |
|
| 229 |
+
| Adaptation method | Not documented; do not describe the release as full fine-tuning or LoRA without training records |
|
| 230 |
+
| Weight changes | Not documented here; verify the released checkpoint against the upstream revision |
|
| 231 |
+
| Training data and permissions | Sources, versions, and reuse permissions must be documented before making attribution or redistribution claims |
|
| 232 |
+
| Training configuration | Optimizer, learning rate, steps/epochs, hardware, precision, and software versions are not provided here |
|
| 233 |
+
| Evaluation | No reproducible before/after results are provided here |
|
| 234 |
|
| 235 |
+
To substantiate a weight-tuning claim, publish the base revision, training-data manifest and licenses, method (full fine-tuning or adapter-based), configuration and logs, resulting checkpoint revision, and evaluation results against the untuned base under identical conditions. Until then, describe Abdalla Eid's role as project/model-release maintainer and do not imply that he created or trained the upstream foundation.
|
| 236 |
|
| 237 |
**---**
|
| 238 |
|
|
|
|
|
|
|
| 239 |
# 🏗️ RAWDA AI System Concept
|
| 240 |
```text
|
| 241 |
|
|
|
|
| 295 |
|
| 296 |
```
|
| 297 |
|
|
|
|
|
|
|
| 298 |
**---**
|
| 299 |
|
|
|
|
|
|
|
| 300 |
# ✨ Key Capabilities
|
| 301 |
### 🕌 Islamic-oriented assistance
|
| 302 |
Structured assistance for Islamic study and educational workflows.
|
| 303 |
|
|
|
|
|
|
|
| 304 |
### 🇸🇦 Arabic-first usability
|
| 305 |
Designed to be useful for Arabic questions and Arabic educational content while retaining English capability.
|
| 306 |
|
|
|
|
|
|
|
| 307 |
### 📚 Long-context research
|
| 308 |
The underlying model supports a native context length of **262,144 tokens**, useful for working with large collections of notes and documents, subject to available hardware and inference configuration.
|
| 309 |
|
|
|
|
|
|
|
| 310 |
### 💻 Coding & technical capability
|
| 311 |
RAWDA AI also retains strong coding and technical-assistance capabilities from its underlying architecture.
|
| 312 |
|
|
|
|
|
|
|
| 313 |
### 🔎 Source-aware workflow
|
| 314 |
For religious topics, RAWDA AI encourages users to distinguish between exact source material, interpretation, and generated explanation.
|
| 315 |
|
|
|
|
|
|
|
| 316 |
**---**
|
| 317 |
|
|
|
|
|
|
|
| 318 |
# 🚀 Quickstart
|
| 319 |
We recommend using a recent version of `transformers`.
|
| 320 |
|
|
|
|
|
|
|
| 321 |
```python
|
| 322 |
|
| 323 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 324 |
|
|
|
|
|
|
|
| 325 |
model_name = "abdallah3id/rawda-coder-30b-a3b"
|
| 326 |
|
|
|
|
|
|
|
| 327 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 328 |
|
|
|
|
|
|
|
| 329 |
model = AutoModelForCausalLM.from_pretrained(
|
| 330 |
|
| 331 |
model_name,
|
|
|
|
| 336 |
|
| 337 |
)
|
| 338 |
|
|
|
|
|
|
|
| 339 |
messages = [
|
| 340 |
|
| 341 |
{
|
|
|
|
| 348 |
|
| 349 |
]
|
| 350 |
|
|
|
|
|
|
|
| 351 |
text = tokenizer.apply_chat_template(
|
| 352 |
|
| 353 |
messages,
|
|
|
|
| 358 |
|
| 359 |
)
|
| 360 |
|
|
|
|
|
|
|
| 361 |
model_inputs = tokenizer(
|
| 362 |
|
| 363 |
[text],
|
|
|
|
| 366 |
|
| 367 |
).to(model.device)
|
| 368 |
|
|
|
|
|
|
|
| 369 |
generated_ids = model.generate(
|
| 370 |
|
| 371 |
**model_inputs,
|
|
|
|
| 374 |
|
| 375 |
)
|
| 376 |
|
|
|
|
|
|
|
| 377 |
output_ids = generated_ids[0][len(model_inputs.input_ids[0]):]
|
| 378 |
|
|
|
|
|
|
|
| 379 |
response = tokenizer.decode(
|
| 380 |
|
| 381 |
output_ids,
|
|
|
|
| 384 |
|
| 385 |
)
|
| 386 |
|
|
|
|
|
|
|
| 387 |
print(response)
|
| 388 |
|
| 389 |
```
|
| 390 |
|
|
|
|
|
|
|
| 391 |
> Official RAWDA AI repository ID: `abdallah3id/rawda-coder-30b-a3b`.
|
| 392 |
|
|
|
|
|
|
|
| 393 |
**---**
|
| 394 |
|
|
|
|
|
|
|
| 395 |
# 💡 Example 1 — Islamic Education
|
| 396 |
### User
|
| 397 |
```text
|
|
|
|
| 400 |
|
| 401 |
```
|
| 402 |
|
|
|
|
|
|
|
| 403 |
### Desired RAWDA AI response style
|
| 404 |
```text
|
| 405 |
|
| 406 |
الإحسان من أعظم مراتب الدين.
|
| 407 |
|
|
|
|
|
|
|
| 408 |
ومن أشهر ما يبين معناه حديث جبريل، وفيه أن النبي ﷺ بيّن
|
| 409 |
|
| 410 |
الإحسان بمعنى عبادة الله على مقام المراقبة واستحضار اطلاع الله
|
| 411 |
|
| 412 |
على العبد.
|
| 413 |
|
|
|
|
|
|
|
| 414 |
ومن الناحية التعليمية يمكن فهم مراتب الدين المذكورة في الحديث
|
| 415 |
|
| 416 |
على النحو الآتي:
|
| 417 |
|
|
|
|
|
|
|
| 418 |
1. الإسلام
|
| 419 |
|
| 420 |
2. الإيمان
|
| 421 |
|
| 422 |
3. الإحسان
|
| 423 |
|
|
|
|
|
|
|
| 424 |
وللدراسة أو الاستدلال الشرعي الدقيق، ينبغي الرجوع إلى النص
|
| 425 |
|
| 426 |
الكامل للحديث وشروح أهل العلم المعتبرة، وعدم الاعتماد على
|
|
|
|
| 429 |
|
| 430 |
```
|
| 431 |
|
|
|
|
|
|
|
| 432 |
**---**
|
| 433 |
|
|
|
|
|
|
|
| 434 |
# 💡 Example 2 — Hadith Research
|
| 435 |
### User
|
| 436 |
```text
|
|
|
|
| 439 |
|
| 440 |
```
|
| 441 |
|
|
|
|
|
|
|
| 442 |
### Desired RAWDA AI response style
|
| 443 |
```text
|
| 444 |
|
| 445 |
للتحقق من الحديث لا يكفي أن يكون النص منتشراً على الإنترنت.
|
| 446 |
|
|
|
|
|
|
|
| 447 |
يمكن اتباع الخطوات التالية:
|
| 448 |
|
|
|
|
|
|
|
| 449 |
1. البحث عن نص الحديث في مصادر حديثية موثوقة.
|
| 450 |
|
| 451 |
2. معرفة الكتاب والباب ورقم الحديث إن أمكن.
|
|
|
|
| 458 |
|
| 459 |
6. الرجوع إلى أهل العلم في المسائل التي يترتب عليها حكم شرعي.
|
| 460 |
|
|
|
|
|
|
|
| 461 |
إذا أرسلت نص الحديث ومصدره، يمكن تنظيم المعلومات المتاحة
|
| 462 |
|
| 463 |
وتحديد النقاط التي تحتاج إلى تحقق إضافي.
|
| 464 |
|
| 465 |
```
|
| 466 |
|
|
|
|
|
|
|
| 467 |
**---**
|
| 468 |
|
|
|
|
|
|
|
| 469 |
# ⚙️ Recommended Generation Settings
|
| 470 |
For general RAWDA AI use, a reasonable starting configuration is:
|
| 471 |
|
|
|
|
|
|
|
| 472 |
```text
|
| 473 |
|
| 474 |
temperature: 0.7
|
|
|
|
| 481 |
|
| 482 |
```
|
| 483 |
|
|
|
|
|
|
|
| 484 |
For source-sensitive religious questions, lower randomness may be preferable when the goal is consistency, but generation settings do not guarantee factual or religious correctness.
|
| 485 |
|
|
|
|
|
|
|
| 486 |
**---**
|
| 487 |
|
|
|
|
|
|
|
| 488 |
# 🛡️ Reliability & Safety
|
| 489 |
RAWDA AI should:
|
| 490 |
|
|
|
|
|
|
|
| 491 |
```text
|
| 492 |
|
| 493 |
✓ Treat the Qur'an and authentic Sunnah with respect
|
|
|
|
| 510 |
|
| 511 |
```
|
| 512 |
|
|
|
|
|
|
|
| 513 |
Users should independently verify religious claims before teaching, publishing, issuing rulings, or making consequential decisions based on generated content.
|
| 514 |
|
|
|
|
|
|
|
| 515 |
**---**
|
| 516 |
|
|
|
|
|
|
|
| 517 |
# ⚠️ Limitations
|
| 518 |
RAWDA AI is an artificial intelligence system and can produce incorrect information, fabricated references, incomplete quotations, mistranslations, or misleading interpretations.
|
| 519 |
|
|
|
|
|
|
|
| 520 |
In particular:
|
| 521 |
|
|
|
|
|
|
|
| 522 |
- A generated Qur'an quotation may contain errors and should be verified.
|
| 523 |
|
| 524 |
- Hadith attribution and grading may be incorrect.
|
|
|
|
| 531 |
|
| 532 |
- The model does not replace a qualified scholar or recognized Islamic institution.
|
| 533 |
|
|
|
|
|
|
|
| 534 |
**Do not treat generated text as a fatwa solely because it was produced by RAWDA AI.**
|
| 535 |
|
|
|
|
|
|
|
| 536 |
**---**
|
| 537 |
|
| 538 |
+
# 📜 License & Technical Attribution
|
| 539 |
+
The project identifies [Qwen/Qwen3-Coder-30B-A3B-Instruct](https://huggingface.co/Qwen/Qwen3-Coder-30B-A3B-Instruct) as its upstream foundation. The upstream model is published under the **Apache License 2.0**, according to its model repository. Review and retain all applicable upstream license and notice files when using or redistributing the model.
|
| 540 |
|
| 541 |
+
The RAWDA AI project presentation and this model card are maintained by **Abdalla Eid**. This attribution does not claim that Abdalla Eid created the upstream model or establish that the RAWDA AI weights were fine-tuned; consult the weight-provenance section above for the available training information.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 542 |
|
| 543 |
**---**
|
| 544 |
|
| 545 |
+
# 📚 Upstream Technical Reference
|
| 546 |
+
For architecture details and upstream technical documentation, refer to the [Qwen3-Coder model repository](https://huggingface.co/Qwen/Qwen3-Coder-30B-A3B-Instruct) and its linked technical report. Preserve required upstream notices and attributions when redistributing the model.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 547 |
|
| 548 |
**---**
|
| 549 |
|
|
|
|
|
|
|
| 550 |
# 🌿 RAWDA AI
|
| 551 |
<div align="center">
|
| 552 |
|
|
|
|
|
|
|
| 553 |
## بِسْمِ اللهِ الرَّحْمَنِ الرَّحِيمِ
|
| 554 |
### RAWDA AI
|
| 555 |
**Islamic Knowledge • Qur'an • Sunnah • Arabic AI**
|
| 556 |
|
|
|
|
|
|
|
| 557 |
🌙 **Technology in the service of beneficial knowledge** 🌙
|
| 558 |
|
|
|
|
|
|
|
| 559 |
Maintained by **Abdalla Eid**
|
| 560 |
|
|
|
|
|
|
|
| 561 |
**Verify sources • Respect scholarship • Seek beneficial knowledge**
|
| 562 |
|
|
|
|
|
|
|
| 563 |
</div>
|