Downloads · 30 days
70
2% of all-time downloads
nazimali/mistral-7b-v0.3-instruct-arabic
mistral-7b-v0.3-instruct-arabic is a text generation model from nazimali. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Experimenting with pre-training Arabic language + finetuning on instructions using the quantized model mistralai/Mistral-7B-v0.3 from unsloth. First time trying pre-training, expect issues and low quality outputs. The…
Downloads · 30 days
70
2% of all-time downloads
All-time downloads
4K
Public
Parameters
7.5B
22.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.gguf18 GB · 81%
How the weights are stored.
U87.2B · 96%
From the Hugging Face model README
Experimenting with pre-training Arabic language + finetuning on instructions using the quantized model mistralai/Mistral-7B-v0.3 from unsloth. First time trying pre-training, expect issues and low quality outputs. The repo contains the merged, quantized model and a GGUF format.
See spaces demo example.
from llama_cpp import Llama
inference_prompt = """فيما يلي تعليمات تصف مهمة. اكتب استجابة تكمل الطلب بشكل مناسب.
### تعليمات:
{}
### إجابة:
"""
llm = Llama.from_pretrained(
repo_id="nazimali/mistral-7b-v0.3-instruct-arabic",
filename="Q4_K_M.gguf",
)
llm.create_chat_completion(
messages = [
{
"role": "user",
"content": inference_prompt.format("السلام عليكم كيف حالك؟")
}
]
)
./llama-cli \
--hf-repo "nazimali/mistral-7b-v0.3-instruct-arabic" \
--hf-file Q4_K_M.gguf \
-p "السلام عليكم كيف حالك؟" \
--conversation
wikimedia/wikipedia20231101.arFreedomIntelligence/alpaca-gpt4-arabicfinetune_prompt = """فيما يلي تعليمات تصف مهمة. اكتب استجابة تكمل الطلب بشكل مناسب.
### تعليمات:
{}
### إجابة:
"""