[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78TA5VJRSY2FRVNTEG0V8XN":3,"skill-same:01M78TA5VJRSY2FRVNTEG0V8XN":60},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":45},"01M78TA5VJRSY2FRVNTEG0V8XN","tfhub-conversion",null,"Converts legacy DeepMind TFHub BigGAN generator modules at 128, 256, or 512 resolution into BigGAN-PyTorch state dictionaries and optionally generates CUDA sample images through the repository's reference converter.","VectorSpaceLab\u002FAREX-Skill","VectorSpaceLab","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F180637102?v=4","01M7538C5WPSJGWF7KHR4EFZ9F","01M7538C6R2GFP53NPXTCZNBRT",351,"MIT","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fbiggan-pytorch\u002Fsub-skills\u002Ftfhub-conversion\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: tfhub-conversion\ndescription: \"Converts legacy DeepMind TFHub BigGAN generator modules at 128,\n  256, or 512 resolution into BigGAN-PyTorch state dictionaries and optionally\n  generates CUDA sample images through the repository's reference converter.\"\ndisable-model-invocation: true\nmetadata:\n  disco-role: operating\nlicense: MIT\n---\n\n# TFHub conversion\n\nUse this route only for the repository's legacy `TFHub\u002Fconverter.py` workflow:\nporting a DeepMind BigGAN generator downloaded from TensorFlow Hub into a\nPyTorch `.pth` state dictionary. The supported resolutions are **128, 256, and\n512**. This is not a general TensorFlow-to-PyTorch conversion tool and it does\nnot convert a discriminator or a complete training checkpoint.\n\n> **Reference-only status.** This workflow is reference-only unless an isolated\n> environment with legacy TensorFlow 1.x-compatible APIs, TensorFlow Hub, the\n> required Python packages, network access (or a suitable existing HDF5\n> intermediate), and a compatible CUDA GPU for sampling is deliberately\n> available. It was **not runtime verified**. In particular, do not report a\n> successful conversion merely because the Python files parse or because\n> `load_state_dict(..., strict=False)` returns.\n\n## Read before acting\n\n- Read `references\u002Fworkflows.md` for the end-to-end command sequence, working\n  directory requirement, download\u002Fcache behavior, outputs, and sample checks.\n- Read `references\u002Fapi-reference.md` for the converter functions, resolution\n  table, TensorFlow-to-PyTorch mappings, and every command-line flag.\n- Read `references\u002Ftroubleshooting.md` before changing environments or\n  interpreting a failure.\n\n## Prerequisites and hard constraints\n\nThe converter imports all of the following: PyTorch, torchvision, h5py,\nTensorFlow, `tensorflow_hub`, and `parse`. The adjacent\n`TFHub\u002Fbiggan_v1.py` also imports NumPy and SciPy. The repository's normal\nPyTorch dependencies therefore are not sufficient by themselves. Keep the\nlegacy TensorFlow\u002FTFHub dependencies isolated from the normal training\nenvironment.\n\nThe source uses TensorFlow 1.x graph\u002Fsession APIs, including\n`tf.reset_default_graph()`, `tf.global_variables_initializer()`, and\n`tf.Session()`, plus the TF1-style `hub.Module(...)` API. **TensorFlow 2.x is\nnot a drop-in replacement.** Do not “fix” this route by silently substituting\nTF2 or by claiming compatibility through `tf.compat.v1` without separately\nreviewing the TFHub module and the complete conversion behavior.\n\nThe converter has two important layout assumptions:\n\n1. Launch it from the `TFHub` directory, for example\n   `cd \u002Fpath\u002Fto\u002FBigGAN-PyTorch\u002FTFHub`. It imports the sibling\n   `biggan_v1.py` and appends `..` to find the repository-level `BigGAN.py`.\n   Running from another directory can produce relative-import or module-path\n   failures.\n2. `DEVICE` is hard-coded to `cuda`. Conversion itself reads weights and builds\n   a PyTorch generator, but the optional sample path moves the generator and\n   tensors to CUDA. There is no supported CPU sampling fallback in this\n   script.\n\n## Operational outline\n\n1. Choose one resolution first. The `--resolution\u002F-r` flag accepts exactly\n   `128`, `256`, or `512`. Omitting it converts all three in sequence.\n2. Ensure the TFHub URL can be reached, or place the matching intermediate\n   `biggan-\u003Cresolution>.h5` in the selected weights directory. If the HDF5\n   exists and `--redownload` is absent, the converter reuses it without\n   contacting TFHub.\n3. Run `converter.py` from `TFHub`. It loads the module with\n   `tensorflow_hub`, initializes the TF graph, writes every TF global variable\n   to HDF5, maps the HDF5 variables through the legacy `biggan_v1.py` model and\n   `convert_from_v1`, then instantiates the current `BigGAN.Generator`.\n4. It saves the converted generator **state dictionary** as\n   `biggan-\u003Cresolution>.pth` under `--weights_dir`. This is not a complete\n   checkpoint containing optimizer, discriminator, or EMA training objects.\n5. If `--generate_samples` is supplied, it samples random latent vectors and\n   random ImageNet class ids on CUDA and writes\n   `biggan\u003Cresolution>_samples.jpg` under `--samples_dir`. Use `--parallel` only\n   when the visible GPUs and the legacy `nn.parallel.data_parallel` path are\n   appropriate.\n6. Treat output existence as only a file-level check. A meaningful acceptance\n   check requires loading the intended state dictionary into the matching\n   current generator and visually or numerically checking generated images;\n   neither conversion nor `strict=False` loading proves semantic equivalence.\n\n## Truncation limitation\n\nThe TFHub README explicitly says that this port is currently set up to run\nwithout truncation. The converter's `generate_sample` does **not** call\n`biggan_v1.truncated_z_sample`; it uses `torch.randn` and does not establish\nstanding statistics for truncation levels. The missing per-truncation standing\nstatistics mean that truncation curves or quality claims at non-default\ntruncation values are not reproduced by this route. Accumulate and validate\nstanding statistics separately before attempting truncation experiments, and\nrecord that extra procedure with the result.\n\n## Scope and non-goals\n\nThis route covers only the checked-in TFHub conversion script and its adjacent\nlegacy reference model. It does not modernize the code, download weights on the\nuser's behalf, guarantee TF2 operation, provide a CPU implementation, create\nstanding statistics, or certify image quality. Do not import this sub-skill into\nan automatic runtime router without preserving its explicit reference-only and\nnot-runtime-verified warnings.\n","# TFHub conversion\n\nUse this route only for the repository's legacy `TFHub\u002Fconverter.py` workflow:\nporting a DeepMind BigGAN generator downloaded from TensorFlow Hub into a\nPyTorch `.pth` state dictionary. The supported resolutions are **128, 256, and\n512**. This is not a general TensorFlow-to-PyTorch conversion tool and it does\nnot convert a discriminator or a complete training checkpoint.\n\n> **Reference-only status.** This workflow is reference-only unless an isolated\n> environment with legacy TensorFlow 1.x-compatible APIs, TensorFlow Hub, the\n> required Python packages, network access (or a suitable existing HDF5\n> intermediate), and a compatible CUDA GPU for sampling is deliberately\n> available. It was **not runtime verified**. In particular, do not report a\n> successful conversion merely because the Python files parse or because\n> `load_state_dict(..., strict=False)` returns.\n\n## Read before acting\n\n- Read `references\u002Fworkflows.md` for the end-to-end command sequence, working\n  directory requirement, download\u002Fcache behavior, outputs, and sample checks.\n- Read `references\u002Fapi-reference.md` for the converter functions, resolution\n  table, TensorFlow-to-PyTorch mappings, and every command-line flag.\n- Read `references\u002Ftroubleshooting.md` before changing environments or\n  interpreting a failure.\n\n## Prerequisites and hard constraints\n\nThe converter imports all of the following: PyTorch, torchvision, h5py,\nTensorFlow, `tensorflow_hub`, and `parse`. The adjacent\n`TFHub\u002Fbiggan_v1.py` also imports NumPy and SciPy. The repository's normal\nPyTorch dependencies therefore are not sufficient by themselves. Keep the\nlegacy TensorFlow\u002FTFHub dependencies isolated from the normal training\nenvironment.\n\nThe source uses TensorFlow 1.x graph\u002Fsession APIs, including\n`tf.reset_default_graph()`, `tf.global_variables_initializer()`, and\n`tf.Session()`, plus the TF1-style `hub.Module(...)` API. **TensorFlow 2.x is\nnot a drop-in replacement.** Do not “fix” this route by silently substituting\nTF2 or by claiming compatibility through `tf.compat.v1` without separately\nreviewing the TFHub module and the complete conversion behavior.\n\nThe converter has two important layout assumptions:\n\n1. Launch it from the `TFHub` directory, for example\n   `cd \u002Fpath\u002Fto\u002FBigGAN-PyTorch\u002FTFHub`. It imports the sibling\n   `biggan_v1.py` and appends `..` to find the repository-level `BigGAN.py`.\n   Running from another directory can produce relative-import or module-path\n   failures.\n2. `DEVICE` is hard-coded to `cuda`. Conversion itself reads weights and builds\n   a PyTorch generator, but the optional sample path moves the generator and\n   tensors to CUDA. There is no supported CPU sampling fallback in this\n   script.\n\n## Operational outline\n\n1. Choose one resolution first. The `--resolution\u002F-r` flag accepts exactly\n   `128`, `256`, or `512`. Omitting it converts all three in sequence.\n2. Ensure the TFHub URL can be reached, or place the matching intermediate\n   `biggan-\u003Cresolution>.h5` in the selected weights directory. If the HDF5\n   exists and `--redownload` is absent, the converter reuses it without\n   contacting TFHub.\n3. Run `converter.py` from `TFHub`. It loads the module with\n   `tensorflow_hub`, initializes the TF graph, writes every TF global variable\n   to HDF5, maps the HDF5 variables through the legacy `biggan_v1.py` model and\n   `convert_from_v1`, then instantiates the current `BigGAN.Generator`.\n4. It saves the converted generator **state dictionary** as\n   `biggan-\u003Cresolution>.pth` under `--weights_dir`. This is not a complete\n   checkpoint containing optimizer, discriminator, or EMA training objects.\n5. If `--generate_samples` is supplied, it samples random latent vectors and\n   random ImageNet class ids on CUDA and writes\n   `biggan\u003Cresolution>_samples.jpg` under `--samples_dir`. Use `--parallel` only\n   when the visible GPUs and the legacy `nn.parallel.data_parallel` path are\n   appropriate.\n6. Treat output existence as only a file-level check. A meaningful acceptance\n   check requires loading the intended state dictionary into the matching\n   current generator and visually or numerically checking generated images;\n   neither conversion nor `strict=False` loading proves semantic equivalence.\n\n## Truncation limitation\n\nThe TFHub README explicitly says that this port is currently set up to run\nwithout truncation. The converter's `generate_sample` does **not** call\n`biggan_v1.truncated_z_sample`; it uses `torch.randn` and does not establish\nstanding statistics for truncation levels. The missing per-truncation standing\nstatistics mean that truncation curves or quality claims at non-default\ntruncation values are not reproduced by this route. Accumulate and validate\nstanding statistics separately before attempting truncation experiments, and\nrecord that extra procedure with the result.\n\n## Scope and non-goals\n\nThis route covers only the checked-in TFHub conversion script and its adjacent\nlegacy reference model. It does not modernize the code, download weights on the\nuser's behalf, guarantee TF2 operation, provide a CPU implementation, create\nstanding statistics, or certify image quality. Do not import this sub-skill into\nan automatic runtime router without preserving its explicit reference-only and\nnot-runtime-verified warnings.\n",{"name":5,"license":14,"metadata":23,"description":7,"disable-model-invocation":25},{"disco-role":24},"operating",true,"main","ac3fe1afa80fb9a09775ecfb2b6cc3ba850a2db6","skills\u002Frepositories\u002Frepo-skills\u002Fbiggan-pytorch\u002Fsub-skills\u002Ftfhub-conversion",27,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab","2026-09-03 10:25:21",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":25},[35,38,41],{"tool":36,"command":37},"npx","npx skills add VectorSpaceLab\u002FAREX-Skill --skill tfhub-conversion",{"tool":39,"command":40},"bunx","bunx skills add VectorSpaceLab\u002FAREX-Skill --skill tfhub-conversion",{"tool":42,"command":43},"pnpm","pnpm dlx skills add VectorSpaceLab\u002FAREX-Skill --skill tfhub-conversion","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fbiggan-pytorch\u002Fsub-skills\u002Ftfhub-conversion\u002FSKILL.md",[46,52,56],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fapi-reference.md","REFERENCE","参考文档",9620,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fbiggan-pytorch\u002Fsub-skills\u002Ftfhub-conversion\u002Freferences\u002Fapi-reference.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Ftroubleshooting.md",8932,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fbiggan-pytorch\u002Fsub-skills\u002Ftfhub-conversion\u002Freferences\u002Ftroubleshooting.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fworkflows.md",9208,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fbiggan-pytorch\u002Fsub-skills\u002Ftfhub-conversion\u002Freferences\u002Fworkflows.md",[61,69,76,83,90,97],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":65,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":18},"01M799NYSH1R3RVAHSM2D88Y84","passnet-triton-opt","Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block\u002Fgrid\u002Fwarp 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.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-triton-opt\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":65,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M799NS5APEC0N1FZ7XZVW6BN","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.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-solve\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":65,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M799NNY9BKSM21V5R7QVTBJX","passnet-skill","PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under .\u002Fpass_dir\u002F, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-skill\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":65,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":18},"01M799NHH6NP7Z1RK77KGXAN6S","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()\u002Freplacement_args()\u002Freplacement_func() files, when a pass \"failed to match\", or when deciding how to fuse multiple kernels\u002Fops.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-pattern-fusion\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":65,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":18},"01M799ND2J4WNC2PGAZ0A06NDF","passnet-orchestrate","Round\u002Fbatch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep\u002Frevert 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.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-orchestrate\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":65,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":18},"01M799N8SBTMY02ZDG2AZF5ZWE","passnet-feedback","Fast, deterministic feedback for PassNet work: pre-flight pattern\u002Fmatch 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).","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-feedback\u002FSKILL.md",[],[]]