Downloads · 30 days
0
Jr23xd23/Math_Arabic_Llama-3.2-3B-Instruct
Math_Arabic_Llama-3.2-3B-Instruct is a text generation model from Jr23xd23. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
MathArabicLlama-3.2-3B-Instruct is a fine-tuned version of the Llama-3.2-3B-Instruct model, tailored for solving mathematical problems in Arabic. The model was trained using the Arabic LLaMA Math Dataset, which includ…
Downloads · 30 days
0
Access
Public
Updated Oct 11, 2024
Repo size
97.3 MB
Likes
2
Public
Click a slice to open those files.
.safetensors97.3 MB · 91%
From the Hugging Face model README
Math_Arabic_Llama-3.2-3B-Instruct is a fine-tuned version of the Llama-3.2-3B-Instruct model, tailored for solving mathematical problems in Arabic. The model was trained using the Arabic LLaMA Math Dataset, which includes a wide range of mathematical problems in natural language (Arabic). This model is ideal for educational applications, tutoring, and systems that require automatic math problem-solving in Arabic.
The model was fine-tuned on the Arabic LLaMA Math Dataset, which consists of 12,496 examples covering various mathematical topics, such as:
Each example in the dataset includes:
You can use the model in Python with the Hugging Face transformers library:
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("Jr23xd23/Math_Arabic_Llama-3.2-3B-Instruct")
model = AutoModelForCausalLM.from_pretrained("Jr23xd23/Math_Arabic_Llama-3.2-3B-Instruct")
# Example: Solving a math problem in Arabic
input_text = "ما هو مجموع الزوايا في مثلث؟" # What is the sum of angles in a triangle?
inputs = tokenizer(input_text, return_tensors="pt")
output = model.generate(**inputs, max_length=100)
print(tokenizer.decode(output[0], skip_special_tokens=True))
This model is licensed under the Apache 2.0 License.
If you use this model in your research or projects, please cite it as follows:
@model{Math_Arabic_Llama_3.2_3B_Instruct,
title={Math_Arabic_Llama-3.2-3B-Instruct},
author={Jr23xd23},
year={2024},
publisher={Hugging Face},
url={https://huggingface.co/Jr23xd23/Math_Arabic_Llama-3.2-3B-Instruct},
}
Special thanks to the creators of the Arabic LLaMA Math Dataset for providing a rich resource for fine-tuning the model.