본문으로 건너뛰기
cccskills
무료GitHub에 공개

dm-haiku

Use DeepMind dm-haiku as a JAX neural-network library for transforms, modules, state/RNG, layers, advanced JAX interop, and optional Flax interop.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(31)

  • SKILL.md5.1 KB
  • references/repo-provenance.md2.5 KB
  • references/repo-routing-metadata.json341 B
  • references/troubleshooting.md4.0 KB
  • scripts/check_haiku_env.py4.2 KB
  • sub-skills/core-transforms/references/api-reference.md7.5 KB
  • sub-skills/core-transforms/references/troubleshooting.md9.4 KB
  • sub-skills/core-transforms/references/workflows.md8.7 KB
  • sub-skills/core-transforms/scripts/haiku_transform_smoke.py7.4 KB
  • sub-skills/core-transforms/SKILL.md3.6 KB
  • sub-skills/flax-interop/references/api-reference.md5.8 KB
  • sub-skills/flax-interop/references/flax-interop.md6.3 KB
  • sub-skills/flax-interop/references/troubleshooting.md6.3 KB
  • sub-skills/flax-interop/scripts/haiku_flax_smoke.py4.1 KB
  • sub-skills/flax-interop/SKILL.md2.7 KB
  • sub-skills/jax-interop-and-advanced/references/jax-transform-wrappers.md11.8 KB
  • sub-skills/jax-interop-and-advanced/references/troubleshooting.md10.2 KB
  • sub-skills/jax-interop-and-advanced/references/utilities-reference.md10.0 KB
  • sub-skills/jax-interop-and-advanced/scripts/haiku_jax_transform_smoke.py4.1 KB
  • sub-skills/jax-interop-and-advanced/SKILL.md3.7 KB
  • sub-skills/modules-and-networks/references/api-reference.md15.0 KB
  • sub-skills/modules-and-networks/references/model-overview.md7.4 KB
  • sub-skills/modules-and-networks/references/troubleshooting.md9.6 KB
  • sub-skills/modules-and-networks/references/workflows.md9.3 KB
  • sub-skills/modules-and-networks/scripts/haiku_mlp_smoke.py3.2 KB
  • sub-skills/modules-and-networks/SKILL.md4.3 KB
  • sub-skills/params-state-rng/references/api-reference.md10.2 KB
  • sub-skills/params-state-rng/references/state-rng-workflows.md9.0 KB
  • sub-skills/params-state-rng/references/troubleshooting.md9.3 KB
  • sub-skills/params-state-rng/scripts/haiku_rng_state_smoke.py7.1 KB
  • sub-skills/params-state-rng/SKILL.md3.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

dm-haiku

Use this repo skill when a task involves the dm-haiku Python package, usually imported as import haiku as hk, or when a JAX neural-network workflow needs Haiku's object-oriented modules plus pure init/apply functions.

Haiku is in maintenance mode: it remains useful for existing Haiku code and research checkouts, but new greenfield projects may be better served by Flax. Do not present Haiku as a full training framework: it provides module, parameter, state, RNG, transform, and model-building utilities that compose with JAX, optimizers, datasets, checkpointing, and accelerators from other libraries.

Quick install and smoke check

  1. Install a JAX build that matches the target machine first. CPU JAX is enough for API work; GPU/TPU execution requires the appropriate JAX backend package for that machine.

  2. Install Haiku:

    python -m pip install -U dm-haiku
    
  3. For optional Flax interop, also install Flax:

    python -m pip install -U flax
    
  4. Run the bundled checker from this skill directory if import or backend state is uncertain:

    python scripts/check_haiku_env.py
    python scripts/check_haiku_env.py --require-flax
    

The checker imports haiku, jax, and optionally flax, runs a tiny hk.Linear transform, reports JAX backend/devices, and does not download data or train.

Route by task

Root references and helper

  • Read references/troubleshooting.md for install/import, JAX backend, optional dependency, version, example dependency, and maintenance-mode issues that cut across sub-skills.
  • Read references/repo-provenance.md before deciding whether this skill is current for a checkout or should be refreshed.
  • references/repo-routing-metadata.json contains structured router metadata for managed repo-skill import.
  • Run scripts/check_haiku_env.py as the shared environment/import checker before deeper sub-skill smoke scripts.

Operating pattern

For most Haiku tasks, work in this order:

  1. Pick the transform boundary first: stateless hk.transform, stateful hk.transform_with_state, or multi-transform. See core-transforms.
  2. Build module code inside the transformed function. Keep hk.Module construction, hk.get_parameter, hk.get_state, and hk.next_rng_key inside Haiku contexts. See params-state-rng.
  3. Choose modules/networks and validate with synthetic arrays before adding optimizers, datasets, large examples, or distributed JAX. See modules-and-networks.
  4. If raw JAX transforms appear inside a Haiku-transformed function, switch to Haiku wrappers or lift nested transforms deliberately. See jax-interop-and-advanced.
  5. Treat Flax interop as optional and explicit. Verify the flax dependency and variable collection mapping before mixing codebases. See flax-interop.

Common boundaries

  • Haiku does not own optimizers, checkpoint formats, dataset loaders, training launchers, or accelerator installation. Bring those from JAX/Optax/Orbax/TFDS or the user's own stack.
  • Full public examples often require external datasets, TensorFlow/TFDS, Optax, RL libraries, or long training. This skill distills their Haiku model patterns into bundled no-download scripts and references; do not require the original checkout for runtime use.
  • GPU warnings from JAX usually mean the installed JAX backend is CPU-only. That does not invalidate Haiku API work, but it does mean accelerator performance has not been verified.
  • If a task is about editing the dm-haiku repository source itself rather than using Haiku as a package, first decide whether a maintainer/repository-development skill is more appropriate; this skill is optimized for package usage.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3392026년 9월 3일 업데이트

3ddfa

무료

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3392026년 9월 3일 업데이트

3ddfa-v2

무료

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3392026년 9월 3일 업데이트

ab3dmot

무료

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3392026년 9월 3일 업데이트

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3392026년 9월 3일 업데이트

acme

무료

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3392026년 9월 3일 업데이트

VectorSpaceLab의 스킬 모두 보기

이 스킬의 문제 신고