Run this model with HF Jobs
Run ahmedtamseer3/alif-islamic-v4-base on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/ahmedtamseer3/alif-islamic-v4-base. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/ahmedtamseer3/alif-islamic-v4-base on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/ahmedtamseer3/alif-islamic-v4-base. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/ahmedtamseer3/alif-islamic-v4-base. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use ahmedtamseer3/alif-islamic-v4-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MediaPipe
How to use ahmedtamseer3/alif-islamic-v4-base with MediaPipe:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- LiteRT
How to use ahmedtamseer3/alif-islamic-v4-base with LiteRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Alif Islamic β v4 Base (MediaPipe .task)
On-device LLM for the Alif Islamic app. This is a Qwen2.5-1.5B-Instruct
model packaged as a MediaPipe / LiteRT .task bundle for fully offline inference on mobile devices via
flutter_gemma.
Files
| File | Size | Description |
|---|---|---|
alif-islamic-v4-base.task |
~903 MB | MediaPipe LLM Inference task bundle (weights + tokenizer + metadata) |
Intended use
Answering Islamic questions (Quran, Hadith, fiqh) inside the Alif app. The model is scoped to only respond to Islamic topics and to refuse unrelated questions. It runs on-device for the offline path; an online path uses a larger hosted model for higher-quality answers.
β οΈ This model can be wrong on fiqh rulings. Answers are not a substitute for a qualified scholar.
Usage with flutter_gemma
import 'package:flutter_gemma/flutter_gemma.dart';
final modelManager = FlutterGemmaPlugin.instance.modelManager;
// Download the .task bundle (public repo β no token required)
await modelManager.downloadModelFromNetwork(
'https://huggingface.co/ahmedtamseer3/alif-islamic-v4-base/resolve/main/alif-islamic-v4-base.task',
);
final model = await FlutterGemmaPlugin.instance.createModel(
modelType: ModelType.gemmaIt, // generic IT chat template
maxTokens: 1024,
);
final chat = await model.createChat();
await chat.addQueryChunk(Message.text(text: 'What is the meaning of Surah Al-Fatihah?', isUser: true));
final response = await chat.generateChatResponse();
Direct download
https://huggingface.co/ahmedtamseer3/alif-islamic-v4-base/resolve/main/alif-islamic-v4-base.task
Base model & license
- Base model:
Qwen/Qwen2.5-1.5B-Instruct - License: Apache-2.0 (inherited from the base model)
- Format: MediaPipe LLM Inference
.task(LiteRT)
Limitations
- Small (1.5B) on-device model β limited reasoning vs. larger hosted models.
- May produce inaccurate fiqh rulings; use scholar-reviewed sources for authoritative answers.
- English/Arabic focused. Other Indian-language support is handled by a separate translation pipeline, not this model.
- Downloads last month
- 5