Qwen 3 32B

Apache 2.0

Alibaba · 32B · كثيف

نموذج Qwen 3 الكثيف الرائد. تعرّف على ما إذا كان كرت شاشتك أو جهاز الماك قادرًا على تشغيل Qwen 3 32B محليًا — 17.9 جيجابايت كحد أدنى، و29.8 جيجابايت موصى بها.

كيف تستخدم Qwen 3 32B في Transformers

حمّل Qwen 3 32B في بايثون عبر مكتبة Transformers من HuggingFace. هذه الأوزان الكاملة غير المكمَّمة، فتحتاج ذاكرة أكبر من ملفات GGUF.

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

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

pipe = pipeline("text-generation", model="Qwen/Qwen3-32B")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)

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

pip install -U transformers
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-32B")
model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-32B", device_map="auto")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.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(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))

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

كيف تستخدم Qwen 3 32B في llama.cpp

يحمّل llama.cpp ملف Qwen 3 32B من HuggingFace مباشرة ويشغّله، إمّا خادمًا متوافقًا مع OpenAI بواجهة ويب أو في الطرفية. اختر مستوى الـ Quantization من القائمة، وتتحدّث الأوامر معه.

ملف GGUF من Qwen/Qwen3-32B-GGUF

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

curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf Qwen/Qwen3-32B-GGUF:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf Qwen/Qwen3-32B-GGUF:Q4_K_M

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

winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf Qwen/Qwen3-32B-GGUF:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf Qwen/Qwen3-32B-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 Qwen/Qwen3-32B-GGUF:Q4_K_M
# Run inference directly in the terminal:
./llama-cli -hf Qwen/Qwen3-32B-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 Qwen/Qwen3-32B-GGUF:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama-cli -hf Qwen/Qwen3-32B-GGUF:Q4_K_M

عبر Docker

docker model run hf.co/Qwen/Qwen3-32B-GGUF:Q4_K_M

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

كيف تستخدم Qwen 3 32B في Ollama

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

ملف GGUF من Qwen/Qwen3-32B-GGUF

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

ollama run qwen3:32b

من ملف GGUF على HuggingFace

ollama run hf.co/Qwen/Qwen3-32B-GGUF:Q4_K_M

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

كيف تستخدم Qwen 3 32B في Pi

Pi وكيل برمجة يعمل في الطرفية. شغّل Qwen 3 32B على خادم llama.cpp محلي ثم وجّه Pi إليه. اختر مستوى الـ Quantization من القائمة، وتتحدّث الأوامر معه.

ملف GGUF من Qwen/Qwen3-32B-GGUF

شغّل خادم llama.cpp

# Install llama.cpp:
brew install llama.cpp
# Start a local OpenAI-compatible server:
llama serve -hf Qwen/Qwen3-32B-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": "Qwen/Qwen3-32B-GGUF:Q4_K_M"
        }
      ]
    }
  }
}

شغّل Pi

# Start Pi in your project directory:
pi

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

كيف تستخدم Qwen 3 32B في node-llama-cpp

شغّل Qwen 3 32B من Node.js بلا تثبيت مسبق. اختر مستوى الـ Quantization من القائمة، وتتحدّث الأوامر معه.

ملف GGUF من Qwen/Qwen3-32B-GGUF

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

npx -y node-llama-cpp chat hf:Qwen/Qwen3-32B-GGUF:Q4_K_M

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

npx -y node-llama-cpp inspect estimate hf:Qwen/Qwen3-32B-GGUF:Q4_K_M

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

كيف تستخدم Qwen 3 32B في Docker Model Runner

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

ملف GGUF من Qwen/Qwen3-32B-GGUF

شغّل النموذج

docker model run hf.co/Qwen/Qwen3-32B-GGUF:Q4_K_M

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

كيف تستخدم Qwen 3 32B في LocalAI

LocalAI خادم محلي متوافق مع OpenAI. استبدل {{GGUF_FILE}} باسم ملف GGUF الذي تريده من المستودع Qwen/Qwen3-32B-GGUF.

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

curl https://localai.io/install.sh | sh
# Load and run the model:
local-ai run huggingface://Qwen/Qwen3-32B-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://Qwen/Qwen3-32B-GGUF/{{GGUF_FILE}}

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

كيف تستخدم Qwen 3 32B في Lemonade

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

ملف GGUF من Qwen/Qwen3-32B-GGUF

نزّل النموذج

# Download Lemonade from https://lemonade-server.ai/
lemonade pull Qwen/Qwen3-32B-GGUF:Q4_K_M

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

lemonade run user.Qwen3-32B-GGUF-Q4_K_M

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

lemonade list

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

كيف تستخدم Qwen 3 32B في Hermes Agent

وكيل Hermes من Nous Research. شغّل Qwen 3 32B على خادم llama.cpp محلي ثم وجّه Hermes إليه. اختر مستوى الـ Quantization من القائمة، وتتحدّث الأوامر معه.

ملف GGUF من Qwen/Qwen3-32B-GGUF

شغّل خادم llama.cpp

# Install llama.cpp:
brew install llama.cpp
# Start a local OpenAI-compatible server:
llama serve -hf Qwen/Qwen3-32B-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 Qwen/Qwen3-32B-GGUF:Q4_K_M

شغّل Hermes

hermes

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

كيف تستخدم Qwen 3 32B في OpenClaw

OpenClaw وكيل مفتوح المصدر يعمل على جهازك. شغّل Qwen 3 32B على خادم llama.cpp محلي ثم سجّله في OpenClaw. اختر مستوى الـ Quantization من القائمة، وتتحدّث الأوامر معه.

ملف GGUF من Qwen/Qwen3-32B-GGUF

شغّل خادم llama.cpp

# Install llama.cpp:
brew install llama.cpp
# Start a local OpenAI-compatible server:
llama serve -hf Qwen/Qwen3-32B-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 "Qwen/Qwen3-32B-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

أوامر التشغيلHuggingFaceOllamaLM Studio
2025-04سياق 128K

مستويات الـ Quantization

Quantizationالبتاتالذاكرةالجودةالحالة
Q2_K210.7GBمنخفضة—
Q3_K_M314.8GBمتوسطة—
Q4_K_M416.9GBجيدة—
Q5_K_M521GBجيدة—
Q6_K625.1GBممتازة—
Q8_0833.3GBممتازة—
F161666.1GBبلا فقد—

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

التطبيقات

شغّل Qwen 3 32B داخل أدوات البرمجة التي تعمل بالذكاء الاصطناعي — يشغّل الأمر خادم Ollama على جهازك، يحمّل النموذج، ثم يفتح الأداة موصولة به.

  • Claude Code

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

    ollama launch claude --model qwen3:32b
  • OpenCode

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

    ollama launch opencode --model qwen3:32b
  • Codex

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

    ollama launch codex --model qwen3:32b
  • Droid

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

    ollama launch droid --model qwen3:32b
  • Hermes Agent

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

    ollama launch hermes --model qwen3:32b
  • OpenClaw

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

    ollama launch openclaw --model qwen3:32b

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

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

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

Qwen 3 logo

Qwen 3 is the latest generation of large language models in Qwen series, with newly updated versions of the 30B and 235B models:

New 30B model

ollama run qwen3:30b

Qwen3-30B-A3B-Instruct-2507.jpg

New 235B model

ollama run qwen3:235b

0d7zztq4GB7G2ZYowO-dQ.jpg

Overview

The Qwen 3 family is a comprehensive suite of dense and mixture-of-experts (MoE) models. The flagship model, Qwen3-235B-A22B, achieves competitive results in benchmark evaluations of coding, math, general capabilities, etc., when compared to other top-tier models such as DeepSeek-R1, o1, o3-mini, Grok-3, and Gemini-2.5-Pro. Additionally, the small MoE model, Qwen3-30B-A3B, outcompetes QwQ-32B with 10 times of activated parameters, and even a tiny model like Qwen3-4B can rival the performance of Qwen2.5-72B-Instruct.

  • Significantly enhancement in its reasoning capabilities, surpassing previous QwQ (in thinking mode) and Qwen2.5 instruct models (in non-thinking mode) on mathematics, code generation, and commonsense logical reasoning.

  • Superior human preference alignment, excelling in creative writing, role-playing, multi-turn dialogues, and instruction following, to deliver a more natural, engaging, and immersive conversational experience.

  • Expertise in agent capabilities, enabling precise integration with external tools in both thinking and unthinking modes and achieving leading performance among open-source models in complex agent-based tasks.

  • Support of 100+ languages and dialects with strong capabilities for multilingual instruction following and translation.

Reference

أسئلة شائعة عن تشغيل Qwen 3 32B محليًا

هل أستطيع تشغيل Qwen 3 32B على جهازي؟
يحتاج Qwen 3 32B إلى 17.9 جيجابايت من الذاكرة كحد أدنى، والموصى به 29.8 جيجابايت. يكفي أن تفتح هذه الصفحة ليُقيَّم النموذج تلقائيًا أمام كرت شاشتك أو جهاز الماك، ثم تشغّله عبر Ollama أو LM Studio أو llama.cpp.
كم يحتاج Qwen 3 32B من الـ VRAM؟
بتكميم Q4_K_M يستهلك Qwen 3 32B نحو 16.9 جيجابايت من ذاكرة الكرت. أما المستويات الأعلى فتحتاج ذاكرة أكبر، والأدنى تناسب الكروت المحدودة مقابل تنازل في الجودة.