شعار Ai Local Model Ops

Ai Local Model Ops

المجتمع
vasilyu1983
ai-local-model-ops

يشغّل سير عمل LLM محليًا ومستضافًا ذاتيًا باستخدام Ollama وLM Studio وMLX وOpen WebUI وllamafile والمحولات. استخدمه عند تشغيل حزم نماذج خاصة.

Add to TypingMind

نظرة عامة

الناشرvasilyu1983
المستودعAI-Agents-public
اسم المهارةai-local-model-ops
النجوم
87
التفريعات
19
الملفات المرفقة
12
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 12

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها vasilyu1983 على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Ai Local Model Ops في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/vasilyu1983/AI-Agents-public/tree/main/frameworks/shared-skills/skills/ai-local-model-ops
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vasilyu1983/AI-Agents-public.git /tmp/AI-Agents-public
mkdir -p .claude/skills
cp -r /tmp/AI-Agents-public/frameworks/shared-skills/skills/ai-local-model-ops .claude/skills/ai-local-model-ops
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Ai Local Model Ops في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Ai Local Model Ops تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Ai Local Model Ops بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Local Model Operations

Use this skill to choose and operate local or self-hosted LLM workflows when privacy, offline access, or low-friction experimentation matter more than large-cluster serving.

This skill covers:

  • local runtime choice for laptops, workstations, and small self-hosted setups
  • team-facing local or private chat surfaces
  • single-binary or minimal-dependency model packaging
  • lightweight adaptation paths before full training or cluster-scale serving
  • evaluation and escalation rules before a local stack becomes a product dependency

ASCII Flow

text
local/private model need
  |
  v
constraint
  privacy | offline | cost | hardware | demo portability | team chat
  |
  v
runtime selection
  Ollama | LM Studio | MLX | Microsoft Foundry Local | Open WebUI | llamafile | lightweight adapter workflow
  |
  v
local operating contract
  pinned model + quantization + eval set + storage/privacy boundary
  + optimization levers: KV-cache quant | speculative decoding | NPU tier
  |
  v
use or escalate
  local workflow OR hand off to inference/MLOps for production serving

Quick Reference

NeedDefault pathNotes
Run a local model quicklyOllamaLowest-friction day-0 local runtime for experiments and private workflows
Share a self-hosted chat UIOpen WebUIBest fit when a team needs a ChatGPT-like local or private interface
Ship a no-install demo or portable binaryllamafileUseful for single-file distribution and low-ops delivery
Apple Silicon on-device inference at framework levelMLX (mlx-lm)Primary path for Metal-native inference and LoRA fine-tune on Mac; verify at https://github.com/ml-explore/mlx-lm
GUI model browser and switcher (non-technical users)LM StudioSupports GGUF and MLX; good for rapid model comparisons
Windows / enterprise SDK-first local inferenceMicrosoft Foundry LocalCurated Microsoft catalog; SDK + REST; verify at https://learn.microsoft.com/en-us/ai/foundry-local
Fine-tune or adapt cheaplyUnsloth + ../ai-llm/SKILL.mdGood for lightweight adaptation, not a substitute for full training ops
Optimize throughput or production serving../ai-llm-inference/SKILL.mdUse this skill for local ops; use ai-llm-inference for deeper serving engineering

Runtime Selection

SituationBest fit
Solo developer or analyst on one machineOllama
Internal team chat with local or self-hosted modelsOpen WebUI
Portable model demo or offline executable distributionllamafile
Fast adapter and fine-tuning iteration on limited hardwareUnsloth
Apple Silicon, framework-level inference or LoRA fine-tuneMLX (mlx-lm)
Non-technical user, GUI model managementLM Studio
Windows-primary, SDK-first, Microsoft model catalogMicrosoft Foundry Local

See references/desktop-runtime-landscape.md for a detailed Ollama / LM Studio / Foundry Local comparison.

Local vs Hosted API: Judgment, Not Reflex

Do not default to "local" just because privacy or cost was mentioned once. Decide with a real eval set and a real cost model:

  • Local tends to win on data residency/offline requirements, steady high-volume traffic that amortizes hardware cost, sub-100ms latency needs, and narrow tasks where a well-evaluated 7–32B open model already matches frontier quality.
  • Hosted API tends to win on frontier-tier reasoning or long-context needs that no locally-runnable model size covers yet, spiky/low-volume traffic, or when local ops overhead (drivers, quant regressions, capacity planning) would cost more engineering time than the API bill.
  • Full frontier-scale open weights (DeepSeek-V3/R1-class, Mistral Large 3, Llama 4 Maverick) do not fit on a single consumer GPU or single H100 at usable quant — "open-weight" does not mean "runs on your laptop." Check the model-sizing matrix before promising local feasibility.
  • Local inference feasibility does not imply local training or fine-tuning feasibility. Training amplifies memory, bandwidth, and especially energy per sample well beyond inference, so the binding constraint often shifts from VRAM capacity to thermal/power budget. See references/model-sizing-matrix.md before promising on-device adaptation.

See references/model-sizing-matrix.md for the full tradeoff and current family-by-family sizing (Llama, Qwen, DeepSeek, Mistral, Gemma, GPT-OSS).

Default Workflow

  1. Define the real constraint first: privacy, offline use, cost ceiling, hardware ceiling, or demo portability.
  2. Pick the runtime or UI layer that matches that constraint.
  3. Pin model IDs, quantization choice, and prompt/eval set before broader rollout.
  4. Decide whether the stack is only for local use or will become part of a product or team workflow.
  5. If it needs stronger serving, routing, or monitoring, hand off to the adjacent skills instead of stretching a local-first setup too far.

Operational Rules

  • Keep model IDs and quantization choices explicit and versioned.
  • Treat local and self-hosted endpoints as sensitive services, not casual defaults for internet exposure.
  • Measure quality on a small real eval set before swapping local models into a user-facing workflow.
  • Separate runtime selection from product integration. Running a model locally is not the same thing as shipping a good AI feature.

Known Traps

  • Treating a laptop prototype as proof that a workflow is production-ready. Latency, uptime, auth, and observability requirements change immediately once real users appear.
  • Leaving model IDs, quant levels, and system prompts implicit. Local stacks drift quickly when operators rely on tags like latest.
  • Exposing Ollama, Open WebUI, or ad hoc reverse proxies without an explicit threat model and access controls.
  • Assuming a polished chat UI solves governance. UI convenience does not replace logging, retention policy, or approval paths.
  • Using lightweight local adaptation as a substitute for evaluation discipline. Faster iteration is useful only if the eval loop is real.
  • Using vLLM V0 features — V0 is fully deprecated as of 2026. Use the V1 engine (see https://docs.vllm.ai/en/stable/usage/v1_guide/).
  • Citing vendor speedup figures (e.g., Microsoft Foundry Local vs cloud) as neutral benchmarks — always measure on your own workload.
  • Assuming speculative decoding helps at high concurrency — the benefit is concentrated at batch size 1.
  • Running NPU inference without confirming the accelerator is being used — fallback to CPU/GPU is silent in some runtimes.

Common Anti-Patterns

  • Installing several local runtimes at once before deciding which constraint actually matters: privacy, portability, cost ceiling, or offline access.
  • Treating local models as drop-in replacements for hosted models without rechecking tool use, structured outputs, and long-context behavior.
  • Shipping a team workflow on consumer hardware with no capacity envelope, backup path, or restart procedure.
  • Using "local" as the only justification for a stack choice when a small self-hosted or managed setup would be operationally safer.

Escalation Boundaries

Use adjacent skills when:

  • you need cluster-scale serving or throughput tuning -> ai-llm-inference
  • you need full fine-tuning strategy, dataset design, or evaluation -> ai-llm
  • you need product UX, streaming chat, or structured output in an app -> software-ai-integration
  • you need deployment, monitoring, or operational governance -> ai-mlops

When To Use This Skill

Use this skill when the user asks:

  • "Should I use Ollama or something else locally?"
  • "How do I run private models on my machine or a small server?"
  • "What should I use for a self-hosted ChatGPT-like interface?"
  • "How do I package a model into a low-friction local demo?"
  • "When should I stay local vs move to a real serving stack?"
  • "What's the best way to run models on Apple Silicon / Mac?"
  • "Should I use MLX or Ollama on my M-series Mac?"
  • "What small models can I run locally? Gemma / Phi / Qwen / DeepSeek / Mistral?"
  • "How do I speed up local inference with speculative decoding or KV-cache quantization?"
  • "What is LM Studio / Microsoft Foundry Local for?"
  • "Should I run this locally or just call a hosted API?"

Navigation

References

Templates

Related Skills

Fact-Checking

  • Known bugs, regressions, framework/compiler/runtime footguns, and version-specific crash or workaround guidance must be verified against current primary web sources before being treated as current fact.
  • Start from data/sources.json for local-model tooling references.
  • Verify current model support, install steps, and hardware caveats before giving time-sensitive recommendations.
  • If web access is unavailable, mark runtime-specific claims as unverified.

Learnings Loop

Before applying this skill on a non-trivial task, read learnings.consolidated.md in this directory (and learnings.md if present).

After applying it, if you encountered a pattern worth remembering, a mistake worth preventing, or a domain fact that surprised you, append one dated bullet to learnings.md via agents-skills-feedback-loop/scripts/append_learning.py. Do not modify SKILL.md itself.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Ai Local Model Ops؟

يشغّل سير عمل LLM محليًا ومستضافًا ذاتيًا باستخدام Ollama وLM Studio وMLX وOpen WebUI وllamafile والمحولات. استخدمه عند تشغيل حزم نماذج خاصة.

لماذا تستخدم Ai Local Model Ops على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Ai Local Model Ops عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Ai Local Model Ops في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/vasilyu1983/AI-Agents-public/tree/main/frameworks/shared-skills/skills/ai-local-model-ops. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Ai Local Model Ops؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Ai Local Model Ops؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Ai Local Model Ops معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Ai Local Model Ops مجانية؟

نعم. نشرها vasilyu1983 على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇