batch-and-cli
Use hailtop.batch DAGs and packaged hailctl commands for Hail Batch, cloud configuration, authentication, cluster helpers, and file description workflows.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- batch-and-cli
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Use hailtop.batch DAGs and packaged hailctl commands for Hail Batch, cloud configuration, authentication, cluster helpers, and file description workflows.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/batch-workflows.md9.3 KB
- 参考文档references/cloud-and-cli.md8.8 KB
- 参考文档references/troubleshooting.md9.9 KB
- 脚本scripts/batch_local_smoke.py4.0 KB
03 SKILL.md 正文
Batch and CLI
Use this sub-skill when the task mentions Hail Batch, hailtop.batch, Batch, LocalBackend, ServiceBackend, new_job, resource files, Docker/resource settings, hailctl batch, hailctl config, hailctl auth, hailctl dataproc, hailctl hdinsight, hailctl describe, billing projects, requester-pays, regions, or remote_tmpdir.
Route First
- Read
references/batch-workflows.mdfor Pythonhailtop.batchDAG construction, local/service backend choice, dependencies, input/output files, resource groups, Docker images, resource requests, and scatter/gather planning. - Read
references/cloud-and-cli.mdfor packagedhailctlcommand families, Batch service configuration, auth, Dataproc, HDInsight,describe, and cloud side-effect boundaries. - Read
references/troubleshooting.mdfor LocalBackend/Docker/tmp failures, ServiceBackend auth/billing/remote tmpdir errors, requester-pays access, command interpolation mistakes, and cloud skip conditions. - Run
scripts/batch_local_smoke.py --helpfirst; usescripts/batch_local_smoke.py --dry-runfor a no-execution template orscripts/batch_local_smoke.py --runfor a local-only smoke whenhailtop.batchis importable.
Boundaries
- For Hail query backend selection,
hl.init,hl.init_batch, Spark/local setup, package import failures, or generated runtime asset issues, route to../setup-and-backends/SKILL.mdunless the task is specifically abouthailtop.batchDAG execution. - For Table or MatrixTable analysis code, route to
../tables-and-expressions/SKILL.mdor../genomics-analysis/SKILL.md; use this sub-skill only to package those scripts as Batch jobs. - For sparse
VariantDatasetor GVCF combiner workflows, route data-processing logic to../variant-datasets/SKILL.md; keep this sub-skill focused on orchestration. - Do not recommend private development, service-maintenance, or deployment commands as public user workflows. Prefer packaged
hailctlcommands visible in installed help.
Verified Entry Points
- Python API:
hailtop.batch.Batch,LocalBackend,ServiceBackend,Batch.new_job,Batch.new_python_job,Batch.read_input,Batch.read_input_group,Batch.write_output,Job.depends_on,BashJob.command,BashJob.declare_resource_group,BashJob.image,Job.cpu,Job.memory,Job.storage, andJob.regions. - Installed signatures include
Batch(name=None, backend=None, attributes=None, requester_pays_project=None, default_image=None, default_memory=None, default_cpu=None, default_storage=None, default_regions=None, default_timeout=None, default_shell=None, default_python_image=None, default_spot=None, project=None, cancel_after_n_failures=None). - Installed signatures include
LocalBackend(tmp_dir='/tmp/', gsa_key_file=None, extra_docker_run_flags=None)andServiceBackend(*args, billing_project=None, bucket=None, remote_tmpdir=None, google_project=None, token=None, regions=None, gcs_requester_pays_configuration=None, gcs_bucket_allow_list=None). - Verified CLI help covers
hailctl --help,hailctl auth --help,hailctl batch --help,hailctl config --help,hailctl dataproc --help,hailctl describe --help,hailctl hdinsight --help, andpython -m hailtop.hailctl --help.
Safety Defaults
- Start with
LocalBackendfor examples, smoke tests, and DAG debugging; it avoids Batch Service credentials and cloud billing. - Treat
ServiceBackend,hailctl batch submit,hailctl batch init,hailctl dataproc start,hailctl dataproc stop,hailctl dataproc modify,hailctl hdinsight start, andhailctl hdinsight stopas cloud-mutating or billing-impacting. - Use placeholders for billing projects, buckets, tokens, and remote tmpdirs; do not store credentials in scripts, skills, prompts, or logs.
- Close explicit backend objects after use with
backend.close()or the async close pattern used by the surrounding application.
04 同仓库更多 Skills
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.
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.
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.
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.
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.
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).