Llama 4 Maverick 17B-128E

Llama 4 Community

Meta · 400B (17B active) · MoE

مزيج خبراء متعدّد الوسائط بـ ١٢٨ خبيرًا — ١٧ مليار معامل نشط وسياق مليون رمز. تعرّف على ما إذا كان كرت شاشتك أو جهاز الماك قادرًا على تشغيل Llama 4 Maverick 17B-128E محليًا — 223.5 جيجابايت كحد أدنى، و372.5 جيجابايت موصى بها.

كيف تستخدم Llama 4 Maverick 17B-128E في Transformers

حمّل Llama 4 Maverick 17B-128E في بايثون عبر مكتبة Transformers من HuggingFace. هذه الأوزان الكاملة غير المكمَّمة، فتحتاج ذاكرة أكبر من ملفات GGUF.

عبر pipeline — الطريقة الأسهل

pip install -U transformers
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("image-text-to-text", model="meta-llama/Llama-4-Maverick-17B-128E-Instruct")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
            {"type": "text", "text": "What animal is on the candy?"}
        ]
    },
]
pipe(text=messages)

تحميل النموذج مباشرة

pip install -U transformers
# Load model directly
from transformers import AutoProcessor, AutoModelForMultimodalLM

processor = AutoProcessor.from_pretrained("meta-llama/Llama-4-Maverick-17B-128E-Instruct")
model = AutoModelForMultimodalLM.from_pretrained("meta-llama/Llama-4-Maverick-17B-128E-Instruct", device_map="auto")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
            {"type": "text", "text": "What animal is on the candy?"}
        ]
    },
]
inputs = processor.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))

التوثيق الرسمي: Transformers

كيف تستخدم Llama 4 Maverick 17B-128E في llama.cpp

يحمّل llama.cpp ملف Llama 4 Maverick 17B-128E من HuggingFace مباشرة ويشغّله، إمّا خادمًا متوافقًا مع OpenAI بواجهة ويب أو في الطرفية. اختر مستوى الـ Quantization من القائمة، وتتحدّث الأوامر معه.

ملف GGUF من unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF

التثبيت على macOS وLinux

curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF:Q4_K_M

التثبيت عبر WinGet على Windows

winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF:Q4_K_M

نسخة جاهزة من صفحة الإصدارات

# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF:Q4_K_M
# Run inference directly in the terminal:
./llama-cli -hf unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF:Q4_K_M

البناء من الكود المصدري

git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama-cli -hf unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF:Q4_K_M

عبر Docker

docker model run hf.co/unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF:Q4_K_M

التوثيق الرسمي: llama.cpp

كيف تستخدم Llama 4 Maverick 17B-128E في Ollama

ينزّل Ollama النموذج ويفتح محادثة محلية بأمر واحد. اختر مستوى الـ Quantization من القائمة، وتتحدّث الأوامر معه.

ملف GGUF من unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF

من مكتبة Ollama الرسمية

ollama run llama4:maverick

من ملف GGUF على HuggingFace

ollama run hf.co/unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF:Q4_K_M

التوثيق الرسمي: Ollama

كيف تستخدم Llama 4 Maverick 17B-128E في Pi

Pi وكيل برمجة يعمل في الطرفية. شغّل Llama 4 Maverick 17B-128E على خادم llama.cpp محلي ثم وجّه Pi إليه. اختر مستوى الـ Quantization من القائمة، وتتحدّث الأوامر معه.

ملف GGUF من unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF

شغّل خادم llama.cpp

# Install llama.cpp:
brew install llama.cpp
# Start a local OpenAI-compatible server:
llama serve -hf unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF:Q4_K_M

أضف النموذج إلى Pi

# Install Pi:
npm install -g @earendil-works/pi-coding-agent
# Add to ~/.pi/agent/models.json:
{
  "providers": {
    "llama-cpp": {
      "baseUrl": "http://localhost:8080/v1",
      "api": "openai-completions",
      "apiKey": "none",
      "models": [
        {
          "id": "unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF:Q4_K_M"
        }
      ]
    }
  }
}

شغّل Pi

# Start Pi in your project directory:
pi

التوثيق الرسمي: Pi

كيف تستخدم Llama 4 Maverick 17B-128E في node-llama-cpp

شغّل Llama 4 Maverick 17B-128E من Node.js بلا تثبيت مسبق. اختر مستوى الـ Quantization من القائمة، وتتحدّث الأوامر معه.

ملف GGUF من unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF

محادثة مع النموذج

npx -y node-llama-cpp chat hf:unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF:Q4_K_M

قدّر توافق النموذج مع جهازك

npx -y node-llama-cpp inspect estimate hf:unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF:Q4_K_M

التوثيق الرسمي: node-llama-cpp

كيف تستخدم Llama 4 Maverick 17B-128E في Docker Model Runner

يشغّل Docker Desktop النموذج محليًا ويتيحه عبر واجهة متوافقة مع OpenAI. اختر مستوى الـ Quantization من القائمة، وتتحدّث الأوامر معه.

ملف GGUF من unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF

شغّل النموذج

docker model run hf.co/unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF:Q4_K_M

التوثيق الرسمي: Docker Model Runner

كيف تستخدم Llama 4 Maverick 17B-128E في LocalAI

LocalAI خادم محلي متوافق مع OpenAI. استبدل {{GGUF_FILE}} باسم ملف GGUF الذي تريده من المستودع unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF.

التثبيت من ملف تنفيذي

curl https://localai.io/install.sh | sh
# Load and run the model:
local-ai run huggingface://unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF/{{GGUF_FILE}}

عبر صور Docker

# Pull the image:
docker pull localai/localai:latest-cpu
# Load and run the model:
docker run -p 8080:8080 --name localai -v $PWD/models:/build/models localai/localai:latest-cpu huggingface://unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF/{{GGUF_FILE}}

التوثيق الرسمي: LocalAI

كيف تستخدم Llama 4 Maverick 17B-128E في Lemonade

Lemonade خادم محلي من AMD يعمل على المعالجات وكروت الشاشة. اختر مستوى الـ Quantization من القائمة، وتتحدّث الأوامر معه.

ملف GGUF من unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF

نزّل النموذج

# Download Lemonade from https://lemonade-server.ai/
lemonade pull unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF:Q4_K_M

شغّل النموذج وحاوره

lemonade run user.Llama-4-Maverick-17B-128E-Instruct-GGUF-Q4_K_M

اعرض كل النماذج المتاحة

lemonade list

التوثيق الرسمي: Lemonade

كيف تستخدم Llama 4 Maverick 17B-128E في Hermes Agent

وكيل Hermes من Nous Research. شغّل Llama 4 Maverick 17B-128E على خادم llama.cpp محلي ثم وجّه Hermes إليه. اختر مستوى الـ Quantization من القائمة، وتتحدّث الأوامر معه.

ملف GGUF من unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF

شغّل خادم llama.cpp

# Install llama.cpp:
brew install llama.cpp
# Start a local OpenAI-compatible server:
llama serve -hf unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF:Q4_K_M

اضبط Hermes

# Install Hermes:
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
hermes setup
# Point Hermes at the local server:
hermes config set model.provider custom
hermes config set model.base_url http://127.0.0.1:8080/v1
hermes config set model.default unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF:Q4_K_M

شغّل Hermes

hermes

التوثيق الرسمي: Hermes Agent

كيف تستخدم Llama 4 Maverick 17B-128E في OpenClaw

OpenClaw وكيل مفتوح المصدر يعمل على جهازك. شغّل Llama 4 Maverick 17B-128E على خادم llama.cpp محلي ثم سجّله في OpenClaw. اختر مستوى الـ Quantization من القائمة، وتتحدّث الأوامر معه.

ملف GGUF من unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF

شغّل خادم llama.cpp

# Install llama.cpp:
brew install llama.cpp
# Start a local OpenAI-compatible server:
llama serve -hf unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF:Q4_K_M

اضبط OpenClaw

# Install OpenClaw:
npm install -g openclaw@latest
# Register the local server and set it as the default model:
openclaw onboard --non-interactive --mode local \
  --auth-choice custom-api-key \
  --custom-base-url http://127.0.0.1:8080/v1 \
  --custom-model-id "unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF:Q4_K_M" \
  --custom-provider-id llama-cpp \
  --custom-compatibility openai \
  --custom-text-input \
  --accept-risk \
  --skip-health

شغّل OpenClaw

openclaw agent --local --agent main --message "Hello from Hugging Face"

التوثيق الرسمي: OpenClaw

أوامر التشغيلHuggingFaceOllama
2025-04سياق 1024K

MoE

إجمالي الخبراء: 128
الخبراء النشطون: 1
المعاملات النشطة: 17.0B

مستويات الـ Quantization

Quantizationالبتاتالذاكرةالجودةالحالة
Q2_K2128.6GBمنخفضة—
Q3_K_M3179.8GBمتوسطة—
Q4_K_M4205.4GBجيدة—
Q5_K_M5256.6GBجيدة—
Q6_K6307.8GBممتازة—
Q8_08410.3GBممتازة—
F1616820.1GBبلا فقد—

الأرقام تشمل الأوزان وذاكرة KV عند طول سياق 2K توكن. غيّر طول السياق من لوحة جهازك لترى أثره على الذاكرة والسرعة.

التطبيقات

شغّل Llama 4 Maverick 17B-128E داخل أدوات البرمجة التي تعمل بالذكاء الاصطناعي — يشغّل الأمر خادم Ollama على جهازك، يحمّل النموذج، ثم يفتح الأداة موصولة به.

  • Claude Code

    وكيل البرمجة من Anthropic، يعمل في الطرفية وداخل المحرّر

    ollama launch claude --model llama4:maverick
  • OpenCode

    وكيل برمجة مفتوح المصدر يعمل في الطرفية داخل مستودعك

    ollama launch opencode --model llama4:maverick
  • Codex

    وكيل البرمجة من OpenAI في سطر الأوامر

    ollama launch codex --model llama4:maverick
  • Droid

    وكيل البرمجة من Factory، للمهام الطويلة عبر عدّة ملفات

    ollama launch droid --model llama4:maverick
  • Hermes Agent

    وكيل برمجة مفتوح من Nous Research، بذاكرة تمتد عبر الجلسات

    ollama launch hermes --model llama4:maverick
  • OpenClaw

    وكيل مفتوح المصدر يشغّل المهام على جهازك بلا خدمة سحابية

    ollama launch openclaw --model llama4:maverick

تحتاج Ollama والأداة نفسها مثبَّتين. إن لم تكن الأداة مثبّتة، يرشدك الأمر إلى طريقة تثبيتها. اكتب ollama launch وحده لاختيار الأداة من قائمة.

عن هذا النموذج

الوصف الرسمي كما نشرته الجهة المطوِّرة، بلغته الأصلية.

image.png

The Llama 4 collection of models are natively multimodal AI models that enable text and multimodal experiences. These two models leverage a mixture-of-experts (MoE) architecture and support native multimodality (image input).

Supported languages: Arabic, English, French, German, Hindi, Indonesian, Italian, Portuguese, Spanish, Tagalog, Thai, and Vietnamese.

Input: multilingual text, image

Output: multilingual text, code

Models

Llama 4 Scout

ollama run llama4:scout

109B parameter MoE model with 17B active parameters

Llama 4 Maverick

ollama run llama4:maverick

400B parameter MoE model with 17B active parameters

Intended Use

Intended Use Cases: Llama 4 is intended for commercial and research use in multiple languages. Instruction tuned models are intended for assistant-like chat and visual reasoning tasks, whereas pretrained models can be adapted for natural language generation. For vision, Llama 4 models are also optimized for visual recognition, image reasoning, captioning, and answering general questions about an image. The Llama 4 model collection also supports the ability to leverage the outputs of its models to improve other models including synthetic data generation and distillation. The Llama 4 Community License allows for these use cases.

Out-of-scope: Use in any manner that violates applicable laws or regulations (including trade compliance laws). Use in any other way that is prohibited by the Acceptable Use Policy and Llama 4 Community License. Use in languages or capabilities beyond those explicitly referenced as supported in this model card.

Note:

  1. Llama 4 has been trained on a broader collection of languages than the 12 supported languages (pre-training includes 200 total languages). Developers may fine-tune Llama 4 models for languages beyond the 12 supported languages provided they comply with the Llama 4 Community License and the Acceptable Use Policy. Developers are responsible for ensuring that their use of Llama 4 in additional languages is done in a safe and responsible manner.

  2. Llama 4 has been tested for image understanding up to 5 input images. If leveraging additional image understanding capabilities beyond this, Developers are responsible for ensuring that their deployments are mitigated for risks and should perform additional testing and tuning tailored to their specific applications.

Benchmarks

Category Benchmark # Shots Metric Llama 3.3 70B Llama 3.1 405B Llama 4 Scout Llama 4 Maverick
Image Reasoning MMMU 0 accuracy No multimodal support 69.4 73.4
MMMU Pro^ 0 accuracy 52.2 59.6
MathVista 0 accuracy 70.7 73.7
Image Understanding ChartQA 0 relaxed_accuracy 88.8 90.0
DocVQA (test) 0 anls 94.4 94.4
Code LiveCodeBench (10/01/2024-02/01/2025) 0 pass@1 33.3 27.7 32.8 43.4
Reasoning & Knowledge MMLU Pro 0 macro_avg/acc 68.9 73.4 74.3 80.5
GPQA Diamond 0 accuracy 50.5 49.0 57.2 69.8
Multilingual MGSM 0 average/em 91.1 91.6 90.6 92.3
Long Context MTOB (half book) eng->kgv/kgv->eng - chrF Context window is 128K 42.2 / 36.6 54.0 / 46.4
MTOB (full book) eng->kgv/kgv->eng - chrF 39.7 / 36.3 50.8 / 46.7
*reported numbers for MMMU Pro is the average of Standard and Vision tasks

Reference

أسئلة شائعة عن تشغيل Llama 4 Maverick 17B-128E محليًا

هل أستطيع تشغيل Llama 4 Maverick 17B-128E على جهازي؟
يحتاج Llama 4 Maverick 17B-128E إلى 223.5 جيجابايت من الذاكرة كحد أدنى، والموصى به 372.5 جيجابايت. يكفي أن تفتح هذه الصفحة ليُقيَّم النموذج تلقائيًا أمام كرت شاشتك أو جهاز الماك، ثم تشغّله عبر Ollama أو LM Studio أو llama.cpp.
كم يحتاج Llama 4 Maverick 17B-128E من الـ VRAM؟
بتكميم Q4_K_M يستهلك Llama 4 Maverick 17B-128E نحو 205.4 جيجابايت من ذاكرة الكرت. أما المستويات الأعلى فتحتاج ذاكرة أكبر، والأدنى تناسب الكروت المحدودة مقابل تنازل في الجودة.