Logo Tune Hyperparameters

Tune Hyperparameters

Cộng đồng
Scripter36
tune-hyperparameters

Derive and run bounded, training-only Pareto HPO for an InstantMimic environment, especially after migration. Use when selecting a safe parameter whitelist and blacklist, calibrating active-training-time and evaluation budgets, comparing learning quality against speed, or running the search locally or through SSH and Slurm.

Tổng quan

Nhà phát hànhScripter36
Kho mãInstantMimic
Tên kỹ năngtune-hyperparameters
Sao
20
Bản fork
1
Tệp đi kèm
5
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 5 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được Scripter36 công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Tune Hyperparameters trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/Scripter36/InstantMimic/tree/main/plugins/instantmimic-workflows/skills/tune-hyperparameters
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Scripter36/InstantMimic.git /tmp/InstantMimic
mkdir -p .claude/skills
cp -r /tmp/InstantMimic/plugins/instantmimic-workflows/skills/tune-hyperparameters .claude/skills/tune-hyperparameters
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Tune Hyperparameters trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Tune Hyperparameters ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Tune Hyperparameters không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Tune Hyperparameters

Run this as one approved autonomous state machine. Treat the environment and evaluator as the benchmark; tune only the learning system.

Vocabulary

These terms have exact meanings here. Do not substitute a colloquial reading.

TermMeaning
candidateOne complete proposed configuration. It yields exactly one Pareto point, not one point per evaluation.
semantic axisOne idea being varied. The default axis is one scalar or list path; a coupled bundle is one axis with 2–4 complete labeled variants.
coupled bundleA multi-path axis used only when changing one member alone produces an invalid, uncalibrated, or misleading candidate. Every member path must already be in parameter_space.
active timeTraining seconds excluding benchmark, checkpoint, queue, bootstrap, and compile time. Budgets and AUC are measured in active time only.
final qualityThe frozen quality statistic of the checkpoint that would actually be deployed or played, aggregated over the frozen seed set.
anytime qualityNormalized AUC of the quality curve over the active-time budget.
frontierThe epsilon-Pareto archive over (final quality, anytime quality). It is the authoritative result.
anchorThe frontier point currently being extended. A temporary view, never a result.
frontier roleWhich anchor is selected next: balanced, final_quality, or anytime_quality.
execution fingerprintSource snapshot + dependency lock + Python/runtime + simulator/CUDA stack + GPU model + GPU sharing (one evaluator per GPU) + evaluator contract. Bootstrap happens once per fingerprint.
transport / executorIndependent fields. transport: local | ssh is how the agent reaches the host running the outer loop; executor: direct | hq | slurm is who allocates the GPU. They map to runtime.evaluator.launcher (local, hq, slurm), which both scalar and Pareto tasks accept through one shared launcher layer.
invalid candidateAny candidate whose seed crashed, diverged, timed out, changed evaluated work, or produced incomplete evidence. It never enters the frontier, regardless of its numbers.

Invariants

Assert these at every phase boundary. Later phases reference them by id.

  • A1 Orientation. For new or unfamiliar work, read README.md, applicable repository instructions and task documentation before the composed config and runtime consumer. For a known task, read its canonical run state and any owning workspace README first. Obey applicable nested instructions and preserve unrelated changes.
  • A2 Benchmark is frozen. Environment dynamics, assets, observations, actions, reward and reward scale, termination, reset and cross-episode state, evaluator settings, seeds, graph and compile modes, logger/checkpoint cadence, and search-budget controls are never search axes. Each evaluator runs alone on its GPU: co-locating evaluators (for example several clients under NVIDIA MPS) makes active training time depend on the co-tenants, so it invalidates the speed objective and active-time budgets.
  • A3 Correctness precedes search. Require fresh target-environment correctness and stable-learning evidence first. HPO must not tune around a semantic defect. Exact source-simulator learning parity is not required unless a frozen migration contract made it a hard gate.
  • A4 Allowlist is exact. parameter_space is a list of exact dotted Hydra paths, verified against the composed config before GPU work. The runtime treats it as the exact proposal allowlist and implements no discovery or review of its own.
  • A5 Authority. Reuse the user's existing authorization. Ask once only for missing material scope or authority (remote setup, spending, model subprocesses, publication). Within authorized scope, execute and record routine decisions without another confirmation gate.
  • A6 Requested budgets. Preserve the user's cycle count and per-trial active time. If cycles are unspecified, choose and state a finite count. Do not infer an overall wall-clock, GPU-hour or no-improvement cutoff from a per-trial budget; apply those overall limits only when explicitly requested. Freeze retry rules and preserve exact resume semantics.
  • A7 Quiet execution. One contract summary, batched phase updates, occasional long-run heartbeats, one terminal report.

Run State

The search is resumable because the runtime persists it. Read state from disk, never from conversation memory.

text
<run_dir>/state/
  status.yaml                    # schema_version 2; current cycle; resume pointer
  strategy.md                    # planner strategy and axis registry
  progress.md                    # per-cycle narrative
  results.tsv                    # one row per candidate, fixed header
  cycles/NNN/                    # per-cycle proposal and evidence
  objective/
    pareto_frontier.md           # AUTHORITATIVE result for a frontier task
    pareto_frontier.json         # machine-readable frontier
  best_result.md                 # the comparator's own rendering of the best

status.yaml records last_status (lifecycle: completed, failed:<phase>, or dry_run) and last_decision (the comparator's verdict) as separate fields. A scalar discard is an ordinary result, not a failure.

Resume refuses state from an incompatible schema version; start a fresh run instead of editing status.yaml.

Resume by pointing the runtime at that directory and raising the terminal cycle:

bash
uv run run_hpo --config-name hpo/<task> \
  runtime.resume=<run_dir> runtime.cycles=<final_cycle_index>

runtime.cycles is the final cycle index, not a delta: resuming a run at cycle 40 with runtime.cycles=60 executes cycles 41–60.

Resume Fast Path

When continuing a run, start from its run directory, state/status.yaml and exact resume command. Read an owning workspace README only when one exists; the controller's canonical state lives under logs/hpo/. Mechanically compare the persisted run contract, including task YAML, run directory, inline parameter space, objective, seeds, budget, evaluator, backend/runtime path, logger state, and source/config fingerprint. If they match, launch the requested additional cycles.

Do not redesign the parameter space, change seed count, create a new run, or modify runtime code before attempting the supported exact resume. If the task YAML no longer matches the persisted run, stop before GPU work and report the mismatch. For urgent unattended continuation, establish tmux or the requested supervisor and verify the active cycle before documentation or broader validation.

Phase Loading

Read only the reference for the active phase group, then persist its exit artifact before advancing.

StateLoadExit artifactAsserts
intake → approvedContractself-contained task YAML and frozen search contractA1, A2, A3, A4, A5
approved → readyBootstrapverified execution path and resumable full-search launchA4, A6
ready → searchedSearchvalidated Pareto archive under state/objective/A2, A6, A7
searched → reportedReviewrecommendation and resumable handoffA2, A6

Do not advance past an unresolved validity gate. Continue independent work, then record the gate as missing, invalid, or blocked without weakening it.

Resource Rule

Load only execution guidance needed by the already selected backend. Do not load remote-resource procedures for a local continuation, or local procedures for a frozen remote run. Model new execution choices as independent transport and executor; do not reopen that choice on an exact resume. Repository policy overrides this skill's generic defaults.

Terminal Rule

Before reporting completion, reinspect the final state and require fresh evidence for the frozen scope, resource fingerprint, evaluated work, per-seed validity, objective extraction, and Pareto calculation. Otherwise report the bounded work as incomplete; never promote a numerically attractive invalid candidate.

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Tune Hyperparameters làm được gì?

Derive and run bounded, training-only Pareto HPO for an InstantMimic environment, especially after migration. Use when selecting a safe parameter whitelist and blacklist, calibrating active-training-time and evaluation budgets, comparing learning quality against speed, or running the search locally or through SSH and Slurm.

Vì sao nên dùng Tune Hyperparameters trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Tune Hyperparameters là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Tune Hyperparameters trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/Scripter36/InstantMimic/tree/main/plugins/instantmimic-workflows/skills/tune-hyperparameters. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Tune Hyperparameters?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Tune Hyperparameters với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Tune Hyperparameters với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Tune Hyperparameters có miễn phí không?

Có. Kỹ năng này được Scripter36 phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇