73 5 months ago

5 months ago

dd366456e639 · 4.3GB

llama
·
7B
·
Q4_K_M
{{- $system := "" }}[INST] {{ range .Messages }} {{- if eq .Role "system" }} {{- if not $system }}{{
أنت علام المفكر، مساعد ذكاء اصطناعي مفيد يقدم ردودًا م
{ "stop": [ "[INST]", "[/INST]", "<<SYS>>", "<</SYS>>" ],

Readme

ALLaM-Thinking

ALLaM-Thinking is an Arabic language model optimized for step-by-step reasoning and mathematical problem-solving.

Overview

ALLaM-Thinking (almaghrabima/ALLaM-Thinking) is designed to handle complex reasoning tasks in Arabic, with particular strength in mathematical problem-solving. The model applies a structured thinking approach to break down problems systematically.

Installation

To use ALLaM-Thinking with Ollama, run:

ollama pull almaghrabima/ALLaM-Thinking

Usage

You can interact with the model via the command line:

ollama run almaghrabima/ALLaM-Thinking

Or integrate it into your applications using the Ollama API.

Example

Here’s a demonstration of ALLaM-Thinking’s reasoning capabilities:

Prompt:

في فريق مكون من 15 لاعباً، 40% منهم يسجلون الأهداف. إذا سجل كل لاعب من اللاعبين الذين يسجلون الأهداف في المتوسط 5 أهداف خلال الموسم، فكم عدد الأهداف الكلي التي سجلها اللاعبون الذين يسجلون الأهداف؟

Response:

لحساب عدد الأهداف الكلي التي سجلها اللاعبون الذين يسجلون الأهداف في الفريق المكون من 15 لاعباً، نبدأ بحساب عدد اللاعبين الذين يسجلون الأهداف.

عدد اللاعبين الذين يسجلون الأهداف = إجمالي عدد اللاعبين * نسبة اللاعبين الذين يسجلون الأهداف
= 15 * 0.40
= 6 لاعبين

ثم نضرب عدد اللاعبين الذين يسجلون الأهداف في متوسط عدد الأهداف التي يسجلها كل لاعب منهم خلال الموسم.

الأهداف الكلي المسجلة = عدد اللاعبين الذين يسجلون الأهداف * متوسط عدد الأهداف لكل لاعب
= 6 * 5
= 30 هدفاً

لذا، سجل اللاعبون الذين يسجلون الأهداف إجمالي 30 هدفاً خلال الموسم.

Key Features

  • Step-by-step reasoning in Arabic
  • Clear mathematical problem-solving
  • Structured thinking methodology
  • Detailed explanations of calculations

Use Cases

  • Educational assistance for Arabic-speaking students
  • Mathematical problem-solving
  • Logic puzzles and word problems
  • Step-by-step explanations for complex questions

Model Context

ALLaM-Thinking is based on ALLaM-AI/ALLaM-7B-Instruct-preview, specifically optimized for reasoning tasks in Arabic. It demonstrates strong capabilities in breaking down problems into logical steps.

License

license: apache-2.0

Contributors

  • almaghrabima

Community and Support

For issues, suggestions, or contributions, please visit the model repository or contact the maintainers through the Ollama community channels.