AGENT SKILL

openchat

Use OpenChat/ochat for prompt formatting, OpenAI-compatible serving, and benchmark evaluation of conversational LLMs.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
openchat
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Use OpenChat/ochat for prompt formatting, OpenAI-compatible serving, and benchmark evaluation of conversational LLMs.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

OpenChat repo skill

Use this skill when the task names OpenChat, ochat, openchat_3.6, openchat_3.5, C-RLFT prompt conditions, OpenChat's OpenAI-compatible server, or OpenChat benchmark/evaluation utilities.

Quick routing

User task Read next
Choose a model type, serving alias, context length, prompt condition, EOT token, or Hugging Face chat-template behavior prompting
Build Message/Conversation objects or diagnose ConversationTemplate.tokenize_conversations weights and inference EOT placement prompting
Start or secure the OpenAI-compatible vLLM/FastAPI server, call /v1/models or /v1/chat/completions, or debug server request errors serving
Run OpenChat benchmark evaluation, resume partial results, inspect answer matchers, or convert HumanEval outputs to EvalPlus JSONL evaluation
Fix package import, CUDA, vLLM/Ray, tokenizer-cache, or broad dependency problems before using any workflow installation and backends and troubleshooting

Training/data generation, DeepSpeed training loops, experimental notebooks, and model-embedding surgery scripts were intentionally excluded from this skill run. Do not route those tasks here unless this skill is refreshed or extended with that scope.

Install and smoke check

OpenChat imports as ochat. A practical setup usually needs Python, PyTorch, Transformers, vLLM/Ray for serving/evaluation, and CUDA-capable hardware for local model serving. Read installation and backends before changing dependencies or deciding whether a CPU-only environment is enough.

Minimal no-download import check:

python scripts/check_openchat_import.py

CUDA/backends check:

python scripts/check_openchat_import.py --check-cuda

These scripts only inspect imports and device availability. They do not download model weights, start a server, call external APIs, or run benchmark suites.

Core OpenChat concepts

  • Distribution/import: the package distribution is ochat, and public modules live under ochat.*.
  • Model type: canonical keys such as openchat_3.6 and openchat_v3.2_mistral select a conversation template and max context.
  • Serving alias: aliases such as openchat_3.5 are accepted by the server after loading the canonical model type; they are not always keys in MODEL_CONFIG_MAP.
  • Condition: strings such as GPT4 Correct and Math Correct are prompt-mode labels, not separate models.
  • Local runtime: server and local benchmark inference use vLLM/Ray and require suitable model weights plus enough GPU memory.

Evidence and freshness

Read repo provenance before deciding whether this skill matches a current OpenChat checkout. If the source commit, tag, package version, public model registry, server CLI, or evaluation harness changed, run refresh-repo-skill rather than patching stale guidance manually.

Useful bundled helpers

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351