Views
No views yet
| Quantization | File Name |
|---|---|
| Q2_K | c4ai-command-r7b-arabic-02-2025-Q2_K.gguf |
| Q3_K_M | c4ai-command-r7b-arabic-02-2025-Q3_K_M.gguf |
| Q4_0 | c4ai-command-r7b-arabic-02-2025-Q4_0.gguf |
| Q4_K_M | c4ai-command-r7b-arabic-02-2025-Q4_K_M.gguf |
| Q5_K_S | c4ai-command-r7b-arabic-02-2025-Q5_K_S.gguf |
| Q5_K_M | c4ai-command-r7b-arabic-02-2025-Q5_K_M.gguf |
| Q6_K | c4ai-command-r7b-arabic-02-2025-Q6_K.gguf |
| Q8_0 | c4ai-command-r7b-arabic-02-2025-Q8_0.gguf |
| F16 | c4ai-command-r7b-arabic-02-2025-F16.gguf |
llama-cpp-python (Python Library)pip install llama-cpp-pythonllama.cpp (C++ Library)llama.cpp C++ implementation.huggingface_hub library:1from huggingface_hub import hf_hub_download
2
3hf_hub_download(
4 repo_id="eltay89/c4ai-command-r7b-arabic-02-2025-gguf",
5 filename="c4ai-command-r7b-arabic-02-2025-Q4_K_M.gguf",
6 local_dir="."
7)llama-cpp-python in Python1from llama_cpp import Llama
2
3# Load the model (replace with the path to your downloaded GGUF file)
4llm = Llama(model_path="path/to/c4ai-command-r7b-arabic-02-2025-Q4_K_M.gguf")
5
6# Generate text
7output = llm("مرحبا، كيف حالك؟", max_tokens=100, temperature=0.3)
8print(output['choices'][0]['text'])"path/to/c4ai-command-r7b-arabic-02-2025-Q4_K_M.gguf" with the actual path to your downloaded GGUF file."مرحبا، كيف حالك؟" translates to "Hello, how are you?" in Arabic.Before System: <|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|>
After System: <|END_OF_TURN_TOKEN|>
Before User: <|START_OF_TURN_TOKEN|><|USER_TOKEN|>
After User: <|END_OF_TURN_TOKEN|>
Before Assistant: <|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|><|START_RESPONSE|>
After Assistant: <|END_OF_TURN_TOKEN|>
Additional Stop Strings: <|END_RESPONSE|>, <|END_OF_TURN_TOKEN|>, <|START_THINKING|>, <|END_THINKING|>, <|START_ACTION|>, <|END_ACTION|>, <|START_TOOL_RESULT|>, <|END_TOOL_RESULT|>Modelfile with this content:1FROM ./c4ai-command-r7b-arabic-02-2025-Q4_K_M.gguf
2
3TEMPLATE """
4<|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|> {{ system }} <|END_OF_TURN_TOKEN|>
5<|START_OF_TURN_TOKEN|><|USER_TOKEN|> {{ prompt }} <|END_OF_TURN_TOKEN|>
6<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|><|START_RESPONSE|> {{ response }} <|END_OF_TURN_TOKEN|>
7"""
8
9PARAMETER stop "<|END_RESPONSE|>"
10PARAMETER stop "<|END_OF_TURN_TOKEN|>"
11PARAMETER stop "<|START_THINKING|>"
12PARAMETER stop "<|END_THINKING|>"
13PARAMETER stop "<|START_ACTION|>"
14PARAMETER stop "<|END_ACTION|>"
15PARAMETER stop "<|START_TOOL_RESULT|>"
16PARAMETER stop "<|END_TOOL_RESULT|>"1ollama create c4ai-command-r7b-arabic -f Modelfile
2ollama run c4ai-command-r7b-arabic