Nanosaur2-670M
well9472 · Kit
Makes illustrations from text prompts with a small 670M-parameter diffusion model, run through ComfyUI. Built as a low-budget research model for people who wan…
Answers questions and follows instructions in Arabic and English. A 7B model trained from scratch by the National Center for Artificial Intelligence at SDAIA, for developers and researchers building Arabic language tools.
ALLaM-7B-Instruct-preview is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download humain-ai/ALLaM-7B-Instruct-preview
ALLaM-7B-Instruct-preview is a 7B instruction-tuned language model for Arabic and English, built by the National Center for Artificial Intelligence at SDAIA. It was trained from scratch, first on 4T English tokens and then on 1.2T mixed Arabic and English tokens, a plan the card says keeps its English skills intact. It aims to speed up research and product work in Arabic language technology.
Developers and researchers who build Arabic or bilingual assistants and want a base to test and extend. The weights carry the Apache 2.0 license.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Language technology | Researchers | Study and extend Arabic model capabilities | Testing question answering in Arabic |
| Customer service | Product teams | Build bilingual Arabic and English assistants | A support bot that answers in Arabic |
| Content | Content teams | Draft Arabic explanations and answers | Explaining a household task in Arabic |
Anyone who wants a finished, safety-checked product can skip it, because the card says the model is one part of a larger system and developers must add their own safety measures.
| Use case | Who | What they get back |
|---|---|---|
| Arabic Q and A | App builders | Answers written in Arabic |
| Bilingual chat | Product teams | Replies in Arabic or English |
| Research baseline | Researchers | A from-scratch Arabic and English model to test |
pip install -U huggingface_hub hf download humain-ai/ALLaM-7B-Instruct-preview
The card's snippet loads the model and tokenizer, wraps an Arabic question in the chat template and generates a reply on the GPU. It names the model with the id ALLaM-AI/ALLaM-7B-Instruct-preview, so swap in the repository you downloaded if the two differ.
from transformers import AutoModelForCausalLM, AutoTokenizer
allam_model = AutoModelForCausalLM.from_pretrained("ALLaM-AI/ALLaM-7B-Instruct-preview")
tokenizer = AutoTokenizer.from_pretrained("ALLaM-AI/ALLaM-7B-Instruct-preview")
messages=[
{"role": "user", "content": "كيف أجهز كوب شاهي؟"},
]
inputs = tokenizer.apply_chat_template(messages, tokenize=False)
inputs = tokenizer(inputs, return_tensors='pt', return_token_type_ids=False)
inputs = {k: v.to('cuda') for k,v in inputs.items()}
allam_model = allam_model.to('cuda')
response = allam_model.generate(**inputs, max_new_tokens=4096, do_sample=True, top_k=50, top_p=0.95, temperature=.6)
print(tokenizer.batch_decode(response, skip_special_tokens=True)[0])The model works best with no preset system prompt, though you can add your own, in English or Arabic. The card gives a short line that tells it to act as a bilingual English and Arabic assistant. The system prompt lives in the tokenizer config and is reached through the chat template.
You ask in Arabic how to prepare a cup of tea, as the card's snippet does. The model answers in Arabic, with up to 4,096 new tokens allowed.
This is a base for building Arabic tools, not a finished chat app. A good first step is to run the snippet above with the Arabic question and read the reply.
The card describes two training paths for the ALLaM series, pretraining from scratch and continued training from open-weight models, and this release follows the first. It was trained on 5.2 trillion tokens, with a codebase built on NVIDIA Megatron-LM, an average MFU of about 42 percent and bf16-mixed precision. Post-training used 7M instructions and 260K preference pairs, and the context length is 4096 tokens.
Answers questions and follows instructions in Arabic and English. A 7B model trained from scratch by the National Center for Artificial Intelligence at SDAIA, for developers and researchers building Arabic language tools.
Made by humain-ai on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: ALLaM-7B-Instruct-preview is a 7B instruction-tuned language model for Arabic and English, built by the National Center for Artificial Intelligence at SDAIA. It was trained from scratch, first on 4T English tokens and then on 1.2T mixed Arabic and English tokens, a plan the card says keeps its English skills intact. It aims to speed up research and product work in Arabic language technology.
Who it suits: Developers and researchers who build Arabic or bilingual assistants and want a base to test and extend. The weights carry the Apache 2.0 license.
Industry | Who uses it | How they use it | Example
Language technology | Researchers | Study and extend Arabic model capabilities | Testing question answering in Arabic
Customer service | Product teams | Build bilingual Arabic and English assistants | A support bot that answers in Arabic
Content | Content teams | Draft Arabic explanations and answers | Explaining a household task in Arabic
Anyone who wants a finished, safety-checked product can skip it, because the card says the model is one part of a larger system and developers must add their own safety measures.
Where to use it:
Use case | Who | What they get back
Arabic Q and A | App builders | Answers written in Arabic
Bilingual chat | Product teams | Replies in Arabic or English
Research baseline | Researchers | A from-scratch Arabic and English model to test
How to set it up:
pip install -U huggingface_hub
hf download humain-ai/ALLaM-7B-Instruct-preview
How to use it: The card's snippet loads the model and tokenizer, wraps an Arabic question in the chat template and generates a reply on the GPU. It names the model with the id ALLaM-AI/ALLaM-7B-Instruct-preview, so swap in the repository you downloaded if the two differ.
from transformers import AutoModelForCausalLM, AutoTokenizer
allam_model = AutoModelForCausalLM.from_pretrained("ALLaM-AI/ALLaM-7B-Instruct-preview")
tokenizer = AutoTokenizer.from_pretrained("ALLaM-AI/ALLaM-7B-Instruct-preview")
messages=[
{"role": "user", "content": "كيف أجهز كوب شاهي؟"},
]
inputs = tokenizer.apply_chat_template(messages, tokenize=False)
inputs = tokenizer(inputs, return_tensors='pt', return_token_type_ids=False)
inputs = {k: v.to('cuda') for k,v in inputs.items()}
allam_model = allam_model.to('cuda')
response = allam_model.generate(**inputs, max_new_tokens=4096, do_sample=True, top_k=50, top_p=0.95, temperature=.6)
print(tokenizer.batch_decode(response, skip_special_tokens=True)[0])
The model works best with no preset system prompt, though you can add your own, in English or Arabic. The card gives a short line that tells it to act as a bilingual English and Arabic assistant. The system prompt lives in the tokenizer config and is reached through the chat template.
Example: You ask in Arabic how to prepare a cup of tea, as the card's snippet does. The model answers in Arabic, with up to 4,096 new tokens allowed.
For newcomers and experts: This is a base for building Arabic tools, not a finished chat app. A good first step is to run the snippet above with the Arabic question and read the reply.
The card describes two training paths for the ALLaM series, pretraining from scratch and continued training from open-weight models, and this release follows the first. It was trained on 5.2 trillion tokens, with a codebase built on NVIDIA Megatron-LM, an average MFU of about 42 percent and bf16-mixed precision. Post-training used 7M instructions and 260K preference pairs, and the context length is 4096 tokens.
Pretrain on 4T English tokens
Pretrain on 1.2T Arabic and English tokens
Tune on 7M instructions
Tune on 260K preference pairs
Chat in Arabic or English
Good to know:
Title: Pretraining tokens by stage, in trillions
English stage: 4 T
Arabic and English stage: 1.2 T
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download humain-ai/ALLaM-7B-Instruct-preview
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 6 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| ALLaM-7B-Instruct-preview This page | 93,626 | 207 | 7B | apache-2.0 | |
| Kiyo-65MShares llama · pytorch · text-generation | 1,179 | 5 | 65M | apache-2.0 | |
| Meta-Llama-3.1-8B-Instruct-GGUFShares llama · pytorch · text-generation | 322,920 | 433 | 8B | llama3.1 | |
| MiniCPM5-2BShares llama · text-generation · conversational | 1,039,518 | 1,850 | 2.5B | apache-2.0 | |
| TinyLlama-1.1B-Chat-v1.0Shares llama · text-generation · conversational | 963,057 | 1,910 | 1.1B | apache-2.0 | |
| SmolLM2-135M-InstructShares llama · text-generation · conversational | 841,106 | 474 | 135M | apache-2.0 |
well9472 · Kit
Makes illustrations from text prompts with a small 670M-parameter diffusion model, run through ComfyUI. Built as a low-budget research model for people who wan…
Waqf-AI · Kit
Reads handwritten Arabic text from images and returns it as text. A fine-tuned PaddleOCR-VL model for people digitizing Arabic handwriting.
Wan-AI · Kit
Makes video clips from a text prompt or an image plus text, at up to 720P and 24 frames per second, in the Diffusers format for a single consumer GPU.
Wan-AI · Kit
Generates cinematic video of a character driven by an audio track, and can also lip-sync existing video. For video creators, animators and researchers with a l…
Wan-AI · Kit
Animates a character or swaps one into a video by copying a performer's movement and expressions, as one model from the Wan2.2 video family. Use only faces and…
vllm-sr · Kit
Answers choice, yes-or-no, score, box and tracking questions about text, images or video in one call, with a probability for each answer. For people building r…