شعار Card Eval Updater

Card Eval Updater

مؤسسة
AI-ModCon
card-eval-updater

Distill evaluation-harness output into the evaluation sections of a Genesis/BPSW model card. Parses lm-evaluation-harness (results_*.json), nemo-evaluator-launcher / Eval Factory (artifacts/results.yml), and NeMo-Skills (ns eval / ns robust_eval metrics.json) into a canonical eval bundle, then writes Evaluation data, Evaluation Procedure, Uncertainty Quantification, and Evaluation results into the card plus benchmark entries in the metrics: frontmatter. Use when the user asks to update or create a model card from an evaluation run, record benchmark results in a card, or report harness output as documentation.

نظرة عامة

الناشرAI-ModCon
المستودعgenesis-skills
اسم المهارةcard-eval-updater
النجوم
37
التفريعات
16
الملفات المرفقة
26
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/AI-ModCon/genesis-skills/tree/main/skills/baseeval-skills/card-eval-updater
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AI-ModCon/genesis-skills.git /tmp/genesis-skills
mkdir -p .claude/skills
cp -r /tmp/genesis-skills/skills/baseeval-skills/card-eval-updater .claude/skills/card-eval-updater
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

يُحمّل النموذج مهارة Card Eval Updater تلقائيًا بمجرد ورود طلب ذي صلة بها.

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

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

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

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

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

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

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

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

Updating a model card from an evaluation run

Turn the output of an evaluation harness into the evaluation sections of a Genesis/BPSW model card, with every number traceable to a run artifact.

The one rule that governs this skill: benchmark numbers are extracted by script and never retyped, recomputed, or estimated by you. If a number is not in the bundle, it does not go in the card. Your job is the surrounding judgment — which run to use, which card, whether the run is even reportable — not the arithmetic.

Workflow

Copy this checklist and check off steps as you go.

Progress:
- [ ] 1. Locate the run and identify the harness
- [ ] 2. Parse to a bundle
- [ ] 3. Resolve model identity
- [ ] 4. Decide whether the run is reportable
- [ ] 5. Pick the target card
- [ ] 6. Preview the edit (--dry-run)
- [ ] 7. Write the card
- [ ] 8. Validate
- [ ] 9. Report what changed

1. Locate the run and identify the harness

Ask for the run directory if you weren't given one. Detection is automatic, but knowing which harness you have tells you what to expect:

HarnessSignatureNotes
lm-evaluation-harnessresults_*.json with lm_eval_versionRichest provenance; nearly everything the card needs is in this one file
nemo-evaluator-launcher<task>/artifacts/results.ymlWraps three sub-frameworks; framework_name is in run_config.yml
NeMo-Skillsmetrics.json from ns eval / ns robust_evalNo model identity anywhere; percentages not fractions

Point at one run. Detection searches the whole tree, so a parent directory holding two runs is refused rather than parsed as whichever harness matched first — a bundle records a single run, and the other one could only be dropped silently.

Runs produced by the lm-eval-harness-skills configuration skills need nothing special — they shell out to stock lm_eval --output_path ... --log_samples.

2. Parse to a bundle

bash
python3 scripts/parse_eval_results.py <run_dir> -o bundle.json

The bundle conforms to references/eval-bundle.schema.json and is validated on write. Read it. Do not proceed on a bundle you have not looked at.

3. Resolve model identity

If the parser refuses because no model identity was found — always the case for NeMo-Skills — ask the user which model was evaluated and re-run with --model-id. Do not guess it from the directory name. If the user genuinely does not know, --allow-unknown-model records the identity as unknown in the card; never invent one to get past the error.

A user-supplied id is recorded as id_provenance: "user" and the card discloses that it could not be verified against the run. That disclosure is not optional; do not strip it.

4. Decide whether the run is reportable

The parser refuses sample-limited runs by default. This refusal is usually correct — treat --allow-partial as a last resort, not a way past an error.

A 2-sample or 5-sample run scoring 1.0 is a smoke test, not a benchmark result, and putting it in a card creates a citable claim that the model does not support. lm-eval-harness-skills' tester defaults to --limit 5, so this comes up often.

When you hit the refusal:

  1. Tell the user the run was sample-limited and say by how much.
  2. Recommend re-running the eval without a limit.
  3. Only if they explicitly want the partial run recorded, use --allow-partial — it is labelled partial in every section that shows a number.

5. Pick the target card

Raw cards live in modcon-bpsw/cards/resources/. The ai-resource-hub/_models/ copies are generated by sync_and_classify_cards.py and will be overwritten — never target those (the tool warns if you try).

If no card exists yet, start from the template:

bash
python3 scripts/update_card.py --template <modcon-bpsw>/cards/templates/model-card.md \
    bundle.json -o new-card.md

6. Preview

bash
python3 scripts/update_card.py card.md bundle.json -o card.out.md --dry-run

Read the diff. Confirm it only adds ### Automated benchmark results blocks and metrics: entries, and does not disturb prose.

7. Write

bash
python3 scripts/update_card.py card.md bundle.json -o card.out.md

Writes to a path you choose; never edits a repository checkout on its own.

8. Validate

bash
python3 scripts/validate_card_eval.py card.out.md bundle.json

This re-renders from the bundle and diffs against the card, so any number that drifted from its artifact shows up as UNTRACED. Resolve every error before reporting done. Codes: MISSING_SECTION, UNTRACED, METRICS_MISMATCH, PARTIAL_UNLABELLED, PLACEHOLDER. Use --json for machine-readable output.

9. Report

Tell the user: which run, which harness, how many results, what sections changed, what frontmatter entries were added, and any caveat the card now carries (partial, LLM-judged, unverified model identity).

Gotchas

  1. Never hand-edit a generated block. It is regenerated on the next run and the validator reports it as UNTRACED. To change what it says, change the renderer.

  2. The anchor is a visible heading, not an HTML comment. sync_and_classify_cards.py strips HTML and YAML comments, so a <!-- eval:start --> marker would vanish downstream and every re-run would append a second copy. ### Automated benchmark results is the anchor.

  3. metrics: frontmatter accumulates and is never pruned. Re-running with a different benchmark adds entries but does not remove superseded ones — the tool cannot distinguish an entry it added from one a human added, and deleting someone's metric silently is worse than carrying a stale one. Prune by hand if it matters.

  4. NeMo-Skills reports percentages. They are divided by 100 on ingest, with the original kept in value_raw. The card discloses the rescale. If you ever see a "score" above 1.0 in a card, that conversion was skipped.

  5. NeMo-Skills robust_eval drops the metric name from its top-level aggregation. The parser recovers it from the per-variant eval-results/*/metrics.json; if those are absent the metric is labelled score. Prefer keeping the full run directory, not just metrics.json.

  6. An Eval Factory task can have run_config.yml but no results.yml when scoring failed. Those tasks are skipped with a warning rather than silently dropped — surface that warning to the user, it means a benchmark did not run.

  7. A custom lm-eval model gets a random name. lm-eval derives model_name from pretrained/model/path/engine in model_args; a custom model class with none of those falls back to an 8-character nonce. The parser detects this and refuses rather than writing the nonce into a card — supply --model-id, or --allow-unknown-model to record it as unknown.

  8. Eval Factory wraps ~23 harnesses; three are verified. The adapter targets Eval Factory's normalized results.yml, so it should generalize, and non-rate metrics (perplexity, BLEU, token counts) are marked raw rather than shown as fractions. Still, spot-check the first bundle from a harness you have not run before.

  9. Agent cards are out of scope. The BPSW agent template has no evaluation-results section, and there is no agentic-eval harness output to draw from. Do not improvise one.

Design note: one parse layer, many renderers

render_card_sections.py is the model-card renderer. It is deliberately separable from the parser: a model card wants benchmark values with provenance and stderr, whereas SIM wants drift-relevant series across runs, and SAFE wants the failure and refusal tail. Those are different reductions of the same run and belong in sibling renderers reading the same references/eval-bundle.schema.json contract — not in this file, and not by re-parsing raw harness output.

References

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

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

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

ماذا تفعل مهارة الذكاء الاصطناعي Card Eval Updater؟

Distill evaluation-harness output into the evaluation sections of a Genesis/BPSW model card. Parses lm-evaluation-harness (results_*.json), nemo-evaluator-launcher / Eval Factory (artifacts/results.yml), and NeMo-Skills (ns eval / ns robust_eval metrics.json) into a canonical eval bundle, then writes Evaluation data, Evaluation Procedure, Uncertainty Quantification, and Evaluation results into the card plus benchmark entries in the metrics: frontmatter. Use when the user asks to update or create a model card from an evaluation run, record benchmark results in a card, or report harness outpu...

لماذا تستخدم Card Eval Updater على TypingMind؟

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

كيف أثبّت Card Eval Updater في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/AI-ModCon/genesis-skills/tree/main/skills/baseeval-skills/card-eval-updater. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Card Eval Updater؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Card Eval Updater؟

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

هل مهارة الذكاء الاصطناعي Card Eval Updater مجانية؟

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

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

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

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

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

عرض الكل

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

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