[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ECXBSZNDSZC7ZX03HV8FG5":3,"skill-same:01M7ECXBSZNDSZC7ZX03HV8FG5":85},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":6,"ownerDescription":42,"updatedAt":43,"install":44,"resources":56},"01M7ECXBSZNDSZC7ZX03HV8FG5","waypoint-bio",null,"Use when working with Outpost Bio's open microbiome foundation models - the Waypoint checkpoints (Waypoint-6m, Waypoint-45m, Waypoint-170m), the Atlas pretraining corpus, the Compass eight-task benchmark, or the `waypoint` CLI from the `waypoint-bio` package. Covers embedding microbiome samples, fine-tuning on taxonomic abundance data, benchmarking a checkpoint on Compass, pretraining a GPT-2 model on taxonomic abundance profiles, and converting MetaPhlAn, Kraken2, QIIME 2, or MGnify abundance tables into waypoint format.","sanjeevafk\u002Fagent-skills","sanjeevafk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F230678117?v=4","01M7C540EFY46ETG1NNWKS5X3Q","Sanjeev","01M7C540F366J5C1D587BMKH9Q",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fwaypoint-bio\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: waypoint-bio\ndescription: Use when working with Outpost Bio's open microbiome foundation models - the Waypoint checkpoints (Waypoint-6m, Waypoint-45m, Waypoint-170m), the Atlas pretraining corpus, the Compass eight-task benchmark, or the `waypoint` CLI from the `waypoint-bio` package. Covers embedding microbiome samples, fine-tuning on taxonomic abundance data, benchmarking a checkpoint on Compass, pretraining a GPT-2 model on taxonomic abundance profiles, and converting MetaPhlAn, Kraken2, QIIME 2, or MGnify abundance tables into waypoint format.\nlicense: MIT\ncompatibility: Requires Python 3.10+ with `waypoint-bio` (pulls torch, transformers, datasets, peft, scikit-learn). Needs network access and a Hugging Face token with access granted to the gated outpost-bio repos. A GPU is strongly recommended for pretraining and benchmarking.\nmetadata:\n  version: \"1.0\"\n  skill-author: K-Dense Inc.\n  upstream-version: \"waypoint-bio 1.0.2 (PyPI); GitHub main 1.0.4\"\n  last-reviewed: \"2026-08-17\"\n  openclaw:\n    primaryEnv: HF_TOKEN\n    envVars:\n      - name: HF_TOKEN\n        required: true\n        description: Hugging Face read token with access to the gated outpost-bio\u002FWaypoint-*, outpost-bio\u002FAtlas, and outpost-bio\u002FCompass repos.\n---\n\n# Waypoint: Outpost Bio's Open Microbiome Foundation Models\n\n## Overview\n\nOutpost Bio open-sourced three artefacts under Apache 2.0, described in\n[Treloar et al., bioRxiv 2026.05.02.722381](https:\u002F\u002Fwww.biorxiv.org\u002Fcontent\u002F10.64898\u002F2026.05.02.722381v2):\n\n| Artefact | What it is | Hugging Face |\n| --- | --- | --- |\n| **Waypoint** | GPT-2-style causal LMs over taxonomic tokens, 6M–170M params | `outpost-bio\u002FWaypoint-6m`, `-45m`, `-170m` |\n| **Atlas** | 539,308 microbiome samples scraped from MGnify (485,377 pretrain \u002F 53,931 benchmark) | `outpost-bio\u002FAtlas` |\n| **Compass** | Eight downstream tasks over four studies | `outpost-bio\u002FCompass` |\n\nThe unifying idea: a microbiome sample is a *sentence*. Each taxon is one token, tokens are ordered\nby descending abundance z-score, and the model is trained with next-token prediction. A pretrained\ncheckpoint then supplies sample-level embeddings or a fine-tuning backbone for prediction tasks.\n\nAll of it is driven by one CLI, `waypoint`, with five subcommands: `prepare-dataset`, `embed`,\n`finetune`, `benchmark`, `pretrain`.\n\n## When to use\n\n- Embedding 16S\u002Fshotgun taxonomic profiles into fixed-size vectors for clustering, visualisation, or\n  a downstream classifier.\n- Fine-tuning a Waypoint checkpoint to predict a phenotype, treatment, or continuous readout from\n  community composition.\n- Scoring your own microbiome model against Compass so the number is comparable to the paper.\n- Pretraining a taxonomic language model on Atlas or on your own corpus.\n- Converting profiler output (MetaPhlAn, Kraken2\u002FBracken, QIIME 2, MGnify TSVs) into the input format\n  these tools expect.\n\n**Do not reach for this** when you have fewer than ~1,000 labelled samples — see\n[Scientific caveats](#scientific-caveats). A random forest on relative abundances is the better tool\nthere, and the paper says so.\n\n## Setup\n\n```bash\npip install waypoint-bio       # installs the `waypoint` command\n```\n\nAtlas, Compass, and every Waypoint checkpoint are **gated**. Access is auto-approved, but you must\nclick through once per repo and then authenticate:\n\n1. Request access on each repo page you need: [Waypoint-6m](https:\u002F\u002Fhuggingface.co\u002Foutpost-bio\u002FWaypoint-6m),\n   [Waypoint-45m](https:\u002F\u002Fhuggingface.co\u002Foutpost-bio\u002FWaypoint-45m),\n   [Waypoint-170m](https:\u002F\u002Fhuggingface.co\u002Foutpost-bio\u002FWaypoint-170m),\n   [Atlas](https:\u002F\u002Fhuggingface.co\u002Fdatasets\u002Foutpost-bio\u002FAtlas),\n   [Compass](https:\u002F\u002Fhuggingface.co\u002Fdatasets\u002Foutpost-bio\u002FCompass).\n2. Authenticate locally:\n\n   ```bash\n   hf auth login          # or: export HF_TOKEN=hf_...\n   ```\n\nA 401\u002F403 from any subcommand almost always means access was never requested on that specific repo —\na token alone is not enough. Use a read-scoped token. The tokenizer loads via\n`trust_remote_code=True`, so pin a `revision` if you need the remote code fixed across runs.\n\n## The waypoint data format\n\nEverything except `prepare-dataset` consumes **waypoint format**: a `.parquet` \u002F `.csv` \u002F `.tsv`\nwhose rows are samples, with two aligned list-columns plus any label columns you need.\n\n| Column | Type | Notes |\n| --- | --- | --- |\n| `Taxa` | `list[str]` | Full lineage strings, `;`-separated: `k__Bacteria; p__Firmicutes; ...; g__Lactobacillus` |\n| `Relative Abundances` | `list[float]` | Same length as `Taxa`, same order |\n| *(any)* | scalar | Targets, covariates, or a `Split` column |\n\nPrefer parquet. CSV\u002FTSV stores the lists as `repr` strings and round-trips through `ast.literal_eval`.\n\n**Give full lineages, not bare names.** The tokenizer extracts the genus segment (`g__`) from each\nlineage and falls back to the most specific higher rank when genus is missing. Bare names disable\nthat fallback entirely.\n\n## Workflow\n\n### 1. Get your data into waypoint format\n\nIf you already have a sample × taxa (or taxa × sample) abundance matrix with lineage labels:\n\n```bash\nwaypoint prepare-dataset \\\n    --input abundance_matrix.tsv \\\n    --metadata sample_labels.csv \\\n    --output dataset.parquet\n```\n\nOrientation is auto-detected from the first column header (`taxonomy`, `lineage`, `taxon`, `otu`,\n`#otu id` ⇒ taxa-as-rows); override with `--orientation`. Rows are normalised to sum to 1 unless you\npass `--no_normalize`, and zeros are dropped unless you pass `--keep_zeros`.\n\n`prepare-dataset` cannot read profiler output directly — MetaPhlAn uses `|` separators, Kraken2\nreports encode the hierarchy as indentation, and QIIME 2\u002FSILVA prefixes the domain `d__` instead of\n`k__` (which the tokenizer silently ignores). Use the bundled converter for those:\n\n```bash\npython scripts\u002Fprofiler_to_waypoint.py \\\n    --input merged_metaphlan.tsv --format metaphlan \\\n    --output dataset.parquet\n\npython scripts\u002Fprofiler_to_waypoint.py \\\n    --input reports\u002F*.kreport --format kraken \\\n    --output dataset.parquet\n\npython scripts\u002Fprofiler_to_waypoint.py \\\n    --input feature-table.tsv --format qiime2 \\\n    --output dataset.parquet\n```\n\nSee `references\u002Fdata-preparation.md` for every input layout, rank handling, and the `d__`\u002F`|` gotchas.\n\n### 2. Check vocabulary coverage before anything else\n\nWaypoint's vocabulary is fixed at pretraining time from Atlas. Taxa absent from it become `\u003Cunk>` and\nare **silently dropped** by `waypoint embed`; the paper names this as the models' main limitation. A\nsample whose taxa are all out-of-vocabulary yields a degenerate `[BOS][EOS]` embedding.\n\n```bash\npython scripts\u002Fvocab_coverage.py --model outpost-bio\u002FWaypoint-6m --data dataset.parquet\n```\n\nIt reports per-sample and abundance-weighted coverage and flags samples below a threshold. Treat\nmedian abundance-weighted coverage under ~0.8 as a reason to re-examine your taxonomy labels before\ntrusting any downstream number.\n\n### 3. Embed samples\n\n```bash\nwaypoint embed \\\n    --model outpost-bio\u002FWaypoint-6m \\\n    --data dataset.parquet \\\n    --output embeddings.parquet\n```\n\nOutput is indexed by sample ID with columns `dim_0 … dim_{H-1}` (`H` = 256 for 6m, 512 for 45m,\n768 for 170m). Defaults: `--pooling last_token`, `--batch_size 32`, `--max_length 512`, device\nauto-detected (`cuda` → `mps` → `cpu`).\n\nKeep `--pooling last_token` unless you have a reason to change it: it matches how the checkpoints\nwere pretrained and how `benchmark` and `finetune` pool. `mean` is a reasonable alternative for\nunsupervised use; `first_token`\u002F`cls_token` return the BOS position and carry little signal in a\ncausal LM.\n\n### 4. Fine-tune on your labels\n\n```bash\n# classification\nwaypoint finetune \\\n    --model outpost-bio\u002FWaypoint-45m \\\n    --data dataset.parquet \\\n    --output_dir outputs\u002Fft_disease \\\n    --task_type classification \\\n    --target \"Disease Status\" \\\n    --config configs\u002Ffinetune_classification.yaml\n\n# regression, with a categorical covariate one-hot appended to the pooled embedding\nwaypoint finetune \\\n    --model outpost-bio\u002FWaypoint-45m \\\n    --data dataset.parquet \\\n    --output_dir outputs\u002Fft_degradation \\\n    --task_type regression \\\n    --target \"Degradation Rate\" \\\n    --covariate_column Drug \\\n    --config configs\u002Ffinetune_regression.yaml\n```\n\nConfig paths resolve against the bundled `waypoint_bio\u002Fconfigs\u002F` tree, so `configs\u002F...` works from\nany directory without cloning.\n\nDefaults worth overriding for small datasets: `warmup_steps: 1000` (drop to ~50 so warmup finishes\nbefore early stopping), `num_epochs: 1` in the shipped configs (raise it — early stopping on\nvalidation loss is what actually terminates training), and `use_lora: true` when VRAM is tight\n(~1% of parameters trained; adapters are merged back before saving, so the checkpoint stays a plain\n`AutoModel`).\n\nSplits default to a random 80\u002F10\u002F10. **Set `split_column` to a `Split` column whenever samples are\ncorrelated** — repeated measures, one donor sampled over time, technical replicates — or a random\nsplit leaks and the test score is meaningless.\n\nOutputs land in `--output_dir`: `best_model\u002F` (loadable by `embed`\u002F`benchmark`),\n`test_metrics.json`, `training_log.csv` + `.html`, and `finetune_results.json`.\n\n### 5. Benchmark on Compass\n\n```bash\nwaypoint benchmark --model outpost-bio\u002FWaypoint-6m --output_dir outputs\u002Fbenchmark\nwaypoint benchmark --model outputs\u002Fpretrain\u002Fbest_model --tasks 1 6 --output_dir outputs\u002Fsmoke\n```\n\nFine-tunes a fresh head per task and writes `benchmark_results.json`. Classification tasks score\nmacro-F1; the one regression task scores R² clamped to [0, 1]; `final_score` is the unweighted mean\nacross tasks. Full task table, metric keys, and result-file schema: `references\u002Fcompass-benchmark.md`.\n\n### 6. Pretrain\n\n```bash\nwaypoint pretrain \\\n    --model_config configs\u002Fmodels\u002Fgpt2-45m.yaml \\\n    --pretrain_config configs\u002Fpretraining.yaml \\\n    --output_dir outputs\u002Fpretrain_45m\n```\n\nDownloads Atlas, builds a taxonomic tokenizer from the corpus, computes per-token abundance\nmean\u002Fstd for z-score ordering, then trains with next-token prediction and early stopping. Add\n`--data my_corpus.parquet` to pretrain on your own waypoint-format corpus instead, and\n`--max_samples N` for a smoke test.\n\nNine architectures ship, from `gpt2-6m.yaml` (8 layers, 256 hidden) to `gpt2-170m.yaml` (24 layers,\n768 hidden); per-head dimension is fixed at 64 throughout. `references\u002Fcli-reference.md` has the\nfull table and every config key.\n\n## Scientific caveats\n\nThese are load-bearing. Ignoring them produces numbers that look fine and mean nothing.\n\n- **Below ~1,000 labelled examples, Waypoint underperforms a random forest on raw abundances.** The\n  paper's crossover against the RF baseline sits near **10,000** training examples. Fit the baseline\n  first; only adopt the transformer if it wins on your data.\n- **Out-of-vocabulary taxa are dropped, not flagged.** Every Compass dataset carries some. Run\n  `scripts\u002Fvocab_coverage.py` and report the coverage alongside your results.\n- **45M, not 170M, was the best benchmark model.** Pretraining loss keeps falling with scale, but\n  downstream Compass score does not — start at 6m or 45m and only scale up if it demonstrably helps.\n- **Genus-level tokenisation is the default**, so species-level distinctions are collapsed. Changing\n  `taxon_rank` requires re-pretraining, not just re-tokenising.\n- **Compositional data.** Relative abundances are constrained to sum to 1; differences in one taxon\n  induce apparent changes in others. This affects interpretation of any per-taxon attribution.\n- **Batch and study effects dominate microbiome data.** Atlas spans MGnify pipelines v1.0–v5.0 and\n  four sequencing modalities. Never let a study or run boundary coincide with your label boundary.\n- **Not a clinical or diagnostic tool.** The model cards state this explicitly.\n\n## References\n\n- `references\u002Fcli-reference.md` — every subcommand flag, every config key, the model-size table.\n- `references\u002Fcompass-benchmark.md` — the eight tasks, filters, metrics, `benchmark_results.json` schema.\n- `references\u002Fdata-preparation.md` — waypoint format, profiler conversions, taxonomy string rules.\n- `references\u002Fpython-api.md` — using the tokenizer, datasets, heads, and checkpoints from Python.\n\n## Scripts\n\n- `scripts\u002Fprofiler_to_waypoint.py` — MetaPhlAn \u002F Kraken2 \u002F QIIME 2 \u002F generic lineage tables → waypoint format.\n- `scripts\u002Fvocab_coverage.py` — tokenizer coverage report for a waypoint-format file.\n\n## Upstream\n\nCode [github.com\u002FOutpost-Bio\u002Fwaypoint](https:\u002F\u002Fgithub.com\u002FOutpost-Bio\u002Fwaypoint) ·\npackage `waypoint-bio` ·\npaper [bioRxiv 2026.05.02.722381](https:\u002F\u002Fwww.biorxiv.org\u002Fcontent\u002F10.64898\u002F2026.05.02.722381v2) ·\ncommunity [Waypoint Slack](https:\u002F\u002Fjoin.slack.com\u002Ft\u002Foutpostbio-waypoint\u002Fshared_invite\u002Fzt-3w6ivgtba-WJOCkdxiISxQpwVq9ZZxTA) ·\ncontact `waypoint@outpost.bio`.\n\nCite Treloar, N. J., Ur-Rehman, S., Yang, J., & Outpost Bio (2026). *Learning the Language of the\nMicrobiome with Transformers.* bioRxiv. Per-artefact DOIs are listed at\n[outpost.bio\u002Fcitations](https:\u002F\u002Fwww.outpost.bio\u002Fcitations).\n","# Waypoint: Outpost Bio's Open Microbiome Foundation Models\n\n## Overview\n\nOutpost Bio open-sourced three artefacts under Apache 2.0, described in\n[Treloar et al., bioRxiv 2026.05.02.722381](https:\u002F\u002Fwww.biorxiv.org\u002Fcontent\u002F10.64898\u002F2026.05.02.722381v2):\n\n| Artefact | What it is | Hugging Face |\n| --- | --- | --- |\n| **Waypoint** | GPT-2-style causal LMs over taxonomic tokens, 6M–170M params | `outpost-bio\u002FWaypoint-6m`, `-45m`, `-170m` |\n| **Atlas** | 539,308 microbiome samples scraped from MGnify (485,377 pretrain \u002F 53,931 benchmark) | `outpost-bio\u002FAtlas` |\n| **Compass** | Eight downstream tasks over four studies | `outpost-bio\u002FCompass` |\n\nThe unifying idea: a microbiome sample is a *sentence*. Each taxon is one token, tokens are ordered\nby descending abundance z-score, and the model is trained with next-token prediction. A pretrained\ncheckpoint then supplies sample-level embeddings or a fine-tuning backbone for prediction tasks.\n\nAll of it is driven by one CLI, `waypoint`, with five subcommands: `prepare-dataset`, `embed`,\n`finetune`, `benchmark`, `pretrain`.\n\n## When to use\n\n- Embedding 16S\u002Fshotgun taxonomic profiles into fixed-size vectors for clustering, visualisation, or\n  a downstream classifier.\n- Fine-tuning a Waypoint checkpoint to predict a phenotype, treatment, or continuous readout from\n  community composition.\n- Scoring your own microbiome model against Compass so the number is comparable to the paper.\n- Pretraining a taxonomic language model on Atlas or on your own corpus.\n- Converting profiler output (MetaPhlAn, Kraken2\u002FBracken, QIIME 2, MGnify TSVs) into the input format\n  these tools expect.\n\n**Do not reach for this** when you have fewer than ~1,000 labelled samples — see\n[Scientific caveats](#scientific-caveats). A random forest on relative abundances is the better tool\nthere, and the paper says so.\n\n## Setup\n\n```bash\npip install waypoint-bio       # installs the `waypoint` command\n```\n\nAtlas, Compass, and every Waypoint checkpoint are **gated**. Access is auto-approved, but you must\nclick through once per repo and then authenticate:\n\n1. Request access on each repo page you need: [Waypoint-6m](https:\u002F\u002Fhuggingface.co\u002Foutpost-bio\u002FWaypoint-6m),\n   [Waypoint-45m](https:\u002F\u002Fhuggingface.co\u002Foutpost-bio\u002FWaypoint-45m),\n   [Waypoint-170m](https:\u002F\u002Fhuggingface.co\u002Foutpost-bio\u002FWaypoint-170m),\n   [Atlas](https:\u002F\u002Fhuggingface.co\u002Fdatasets\u002Foutpost-bio\u002FAtlas),\n   [Compass](https:\u002F\u002Fhuggingface.co\u002Fdatasets\u002Foutpost-bio\u002FCompass).\n2. Authenticate locally:\n\n   ```bash\n   hf auth login          # or: export HF_TOKEN=hf_...\n   ```\n\nA 401\u002F403 from any subcommand almost always means access was never requested on that specific repo —\na token alone is not enough. Use a read-scoped token. The tokenizer loads via\n`trust_remote_code=True`, so pin a `revision` if you need the remote code fixed across runs.\n\n## The waypoint data format\n\nEverything except `prepare-dataset` consumes **waypoint format**: a `.parquet` \u002F `.csv` \u002F `.tsv`\nwhose rows are samples, with two aligned list-columns plus any label columns you need.\n\n| Column | Type | Notes |\n| --- | --- | --- |\n| `Taxa` | `list[str]` | Full lineage strings, `;`-separated: `k__Bacteria; p__Firmicutes; ...; g__Lactobacillus` |\n| `Relative Abundances` | `list[float]` | Same length as `Taxa`, same order |\n| *(any)* | scalar | Targets, covariates, or a `Split` column |\n\nPrefer parquet. CSV\u002FTSV stores the lists as `repr` strings and round-trips through `ast.literal_eval`.\n\n**Give full lineages, not bare names.** The tokenizer extracts the genus segment (`g__`) from each\nlineage and falls back to the most specific higher rank when genus is missing. Bare names disable\nthat fallback entirely.\n\n## Workflow\n\n### 1. Get your data into waypoint format\n\nIf you already have a sample × taxa (or taxa × sample) abundance matrix with lineage labels:\n\n```bash\nwaypoint prepare-dataset \\\n    --input abundance_matrix.tsv \\\n    --metadata sample_labels.csv \\\n    --output dataset.parquet\n```\n\nOrientation is auto-detected from the first column header (`taxonomy`, `lineage`, `taxon`, `otu`,\n`#otu id` ⇒ taxa-as-rows); override with `--orientation`. Rows are normalised to sum to 1 unless you\npass `--no_normalize`, and zeros are dropped unless you pass `--keep_zeros`.\n\n`prepare-dataset` cannot read profiler output directly — MetaPhlAn uses `|` separators, Kraken2\nreports encode the hierarchy as indentation, and QIIME 2\u002FSILVA prefixes the domain `d__` instead of\n`k__` (which the tokenizer silently ignores). Use the bundled converter for those:\n\n```bash\npython scripts\u002Fprofiler_to_waypoint.py \\\n    --input merged_metaphlan.tsv --format metaphlan \\\n    --output dataset.parquet\n\npython scripts\u002Fprofiler_to_waypoint.py \\\n    --input reports\u002F*.kreport --format kraken \\\n    --output dataset.parquet\n\npython scripts\u002Fprofiler_to_waypoint.py \\\n    --input feature-table.tsv --format qiime2 \\\n    --output dataset.parquet\n```\n\nSee `references\u002Fdata-preparation.md` for every input layout, rank handling, and the `d__`\u002F`|` gotchas.\n\n### 2. Check vocabulary coverage before anything else\n\nWaypoint's vocabulary is fixed at pretraining time from Atlas. Taxa absent from it become `\u003Cunk>` and\nare **silently dropped** by `waypoint embed`; the paper names this as the models' main limitation. A\nsample whose taxa are all out-of-vocabulary yields a degenerate `[BOS][EOS]` embedding.\n\n```bash\npython scripts\u002Fvocab_coverage.py --model outpost-bio\u002FWaypoint-6m --data dataset.parquet\n```\n\nIt reports per-sample and abundance-weighted coverage and flags samples below a threshold. Treat\nmedian abundance-weighted coverage under ~0.8 as a reason to re-examine your taxonomy labels before\ntrusting any downstream number.\n\n### 3. Embed samples\n\n```bash\nwaypoint embed \\\n    --model outpost-bio\u002FWaypoint-6m \\\n    --data dataset.parquet \\\n    --output embeddings.parquet\n```\n\nOutput is indexed by sample ID with columns `dim_0 … dim_{H-1}` (`H` = 256 for 6m, 512 for 45m,\n768 for 170m). Defaults: `--pooling last_token`, `--batch_size 32`, `--max_length 512`, device\nauto-detected (`cuda` → `mps` → `cpu`).\n\nKeep `--pooling last_token` unless you have a reason to change it: it matches how the checkpoints\nwere pretrained and how `benchmark` and `finetune` pool. `mean` is a reasonable alternative for\nunsupervised use; `first_token`\u002F`cls_token` return the BOS position and carry little signal in a\ncausal LM.\n\n### 4. Fine-tune on your labels\n\n```bash\n# classification\nwaypoint finetune \\\n    --model outpost-bio\u002FWaypoint-45m \\\n    --data dataset.parquet \\\n    --output_dir outputs\u002Fft_disease \\\n    --task_type classification \\\n    --target \"Disease Status\" \\\n    --config configs\u002Ffinetune_classification.yaml\n\n# regression, with a categorical covariate one-hot appended to the pooled embedding\nwaypoint finetune \\\n    --model outpost-bio\u002FWaypoint-45m \\\n    --data dataset.parquet \\\n    --output_dir outputs\u002Fft_degradation \\\n    --task_type regression \\\n    --target \"Degradation Rate\" \\\n    --covariate_column Drug \\\n    --config configs\u002Ffinetune_regression.yaml\n```\n\nConfig paths resolve against the bundled `waypoint_bio\u002Fconfigs\u002F` tree, so `configs\u002F...` works from\nany directory without cloning.\n\nDefaults worth overriding for small datasets: `warmup_steps: 1000` (drop to ~50 so warmup finishes\nbefore early stopping), `num_epochs: 1` in the shipped configs (raise it — early stopping on\nvalidation loss is what actually terminates training), and `use_lora: true` when VRAM is tight\n(~1% of parameters trained; adapters are merged back before saving, so the checkpoint stays a plain\n`AutoModel`).\n\nSplits default to a random 80\u002F10\u002F10. **Set `split_column` to a `Split` column whenever samples are\ncorrelated** — repeated measures, one donor sampled over time, technical replicates — or a random\nsplit leaks and the test score is meaningless.\n\nOutputs land in `--output_dir`: `best_model\u002F` (loadable by `embed`\u002F`benchmark`),\n`test_metrics.json`, `training_log.csv` + `.html`, and `finetune_results.json`.\n\n### 5. Benchmark on Compass\n\n```bash\nwaypoint benchmark --model outpost-bio\u002FWaypoint-6m --output_dir outputs\u002Fbenchmark\nwaypoint benchmark --model outputs\u002Fpretrain\u002Fbest_model --tasks 1 6 --output_dir outputs\u002Fsmoke\n```\n\nFine-tunes a fresh head per task and writes `benchmark_results.json`. Classification tasks score\nmacro-F1; the one regression task scores R² clamped to [0, 1]; `final_score` is the unweighted mean\nacross tasks. Full task table, metric keys, and result-file schema: `references\u002Fcompass-benchmark.md`.\n\n### 6. Pretrain\n\n```bash\nwaypoint pretrain \\\n    --model_config configs\u002Fmodels\u002Fgpt2-45m.yaml \\\n    --pretrain_config configs\u002Fpretraining.yaml \\\n    --output_dir outputs\u002Fpretrain_45m\n```\n\nDownloads Atlas, builds a taxonomic tokenizer from the corpus, computes per-token abundance\nmean\u002Fstd for z-score ordering, then trains with next-token prediction and early stopping. Add\n`--data my_corpus.parquet` to pretrain on your own waypoint-format corpus instead, and\n`--max_samples N` for a smoke test.\n\nNine architectures ship, from `gpt2-6m.yaml` (8 layers, 256 hidden) to `gpt2-170m.yaml` (24 layers,\n768 hidden); per-head dimension is fixed at 64 throughout. `references\u002Fcli-reference.md` has the\nfull table and every config key.\n\n## Scientific caveats\n\nThese are load-bearing. Ignoring them produces numbers that look fine and mean nothing.\n\n- **Below ~1,000 labelled examples, Waypoint underperforms a random forest on raw abundances.** The\n  paper's crossover against the RF baseline sits near **10,000** training examples. Fit the baseline\n  first; only adopt the transformer if it wins on your data.\n- **Out-of-vocabulary taxa are dropped, not flagged.** Every Compass dataset carries some. Run\n  `scripts\u002Fvocab_coverage.py` and report the coverage alongside your results.\n- **45M, not 170M, was the best benchmark model.** Pretraining loss keeps falling with scale, but\n  downstream Compass score does not — start at 6m or 45m and only scale up if it demonstrably helps.\n- **Genus-level tokenisation is the default**, so species-level distinctions are collapsed. Changing\n  `taxon_rank` requires re-pretraining, not just re-tokenising.\n- **Compositional data.** Relative abundances are constrained to sum to 1; differences in one taxon\n  induce apparent changes in others. This affects interpretation of any per-taxon attribution.\n- **Batch and study effects dominate microbiome data.** Atlas spans MGnify pipelines v1.0–v5.0 and\n  four sequencing modalities. Never let a study or run boundary coincide with your label boundary.\n- **Not a clinical or diagnostic tool.** The model cards state this explicitly.\n\n## References\n\n- `references\u002Fcli-reference.md` — every subcommand flag, every config key, the model-size table.\n- `references\u002Fcompass-benchmark.md` — the eight tasks, filters, metrics, `benchmark_results.json` schema.\n- `references\u002Fdata-preparation.md` — waypoint format, profiler conversions, taxonomy string rules.\n- `references\u002Fpython-api.md` — using the tokenizer, datasets, heads, and checkpoints from Python.\n\n## Scripts\n\n- `scripts\u002Fprofiler_to_waypoint.py` — MetaPhlAn \u002F Kraken2 \u002F QIIME 2 \u002F generic lineage tables → waypoint format.\n- `scripts\u002Fvocab_coverage.py` — tokenizer coverage report for a waypoint-format file.\n\n## Upstream\n\nCode [github.com\u002FOutpost-Bio\u002Fwaypoint](https:\u002F\u002Fgithub.com\u002FOutpost-Bio\u002Fwaypoint) ·\npackage `waypoint-bio` ·\npaper [bioRxiv 2026.05.02.722381](https:\u002F\u002Fwww.biorxiv.org\u002Fcontent\u002F10.64898\u002F2026.05.02.722381v2) ·\ncommunity [Waypoint Slack](https:\u002F\u002Fjoin.slack.com\u002Ft\u002Foutpostbio-waypoint\u002Fshared_invite\u002Fzt-3w6ivgtba-WJOCkdxiISxQpwVq9ZZxTA) ·\ncontact `waypoint@outpost.bio`.\n\nCite Treloar, N. J., Ur-Rehman, S., Yang, J., & Outpost Bio (2026). *Learning the Language of the\nMicrobiome with Transformers.* bioRxiv. Per-artefact DOIs are listed at\n[outpost.bio\u002Fcitations](https:\u002F\u002Fwww.outpost.bio\u002Fcitations).\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":35},{"version":25,"openclaw":26,"skill-author":32,"last-reviewed":33,"upstream-version":34},"1.0",{"envVars":27,"primaryEnv":29},[28],{"name":29,"required":30,"description":31},"HF_TOKEN",true,"Hugging Face read token with access to the gated outpost-bio\u002FWaypoint-*, outpost-bio\u002FAtlas, and outpost-bio\u002FCompass repos.","K-Dense Inc.","2026-08-17","waypoint-bio 1.0.2 (PyPI); GitHub main 1.0.4","Requires Python 3.10+ with `waypoint-bio` (pulls torch, transformers, datasets, peft, scikit-learn). Needs network access and a Hugging Face token with access granted to the gated outpost-bio repos. A GPU is strongly recommended for pretraining and benchmarking.","main","4e084e84eb42fc53e144c89c0f7f48b39c8a4b0f","collections\u002Fscientific-skills\u002Fwaypoint-bio",1,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills","https:\u002F\u002Fgithub.com\u002Fsanjeevafk","First make it work. Then make it right. Then make it fast.","2026-11-14 13:36:16",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":30},[46,49,52],{"tool":47,"command":48},"npx","npx skills add sanjeevafk\u002Fagent-skills --skill waypoint-bio",{"tool":50,"command":51},"bunx","bunx skills add sanjeevafk\u002Fagent-skills --skill waypoint-bio",{"tool":53,"command":54},"pnpm","pnpm dlx skills add sanjeevafk\u002Fagent-skills --skill waypoint-bio","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fwaypoint-bio\u002FSKILL.md",[57,63,67,71,75,81],{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fcli-reference.md","REFERENCE","参考文档",8988,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fwaypoint-bio\u002Freferences\u002Fcli-reference.md",{"path":64,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Fcompass-benchmark.md",6952,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fwaypoint-bio\u002Freferences\u002Fcompass-benchmark.md",{"path":68,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fdata-preparation.md",8397,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fwaypoint-bio\u002Freferences\u002Fdata-preparation.md",{"path":72,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fpython-api.md",8440,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fwaypoint-bio\u002Freferences\u002Fpython-api.md",{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"scripts\u002Fprofiler_to_waypoint.py","SCRIPT","脚本",16893,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fwaypoint-bio\u002Fscripts\u002Fprofiler_to_waypoint.py",{"path":82,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":83,"sourceHtmlUrl":84},"scripts\u002Fvocab_coverage.py",8318,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fwaypoint-bio\u002Fscripts\u002Fvocab_coverage.py",[86,93,101,110,118,125],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7EFHX67M3KKXT1BXVPA5ADT","zarr-python","Chunked N-D arrays for cloud storage (Zarr-Python 3). Compressed arrays, parallel I\u002FO, S3\u002FGCS via fsspec, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":97,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M7EFFQGM51TZBGRENXY50ZYM","whiteboard-diagrams","Create accurate, simple, hand-drawn whiteboard diagrams from a user's process, system, architecture, learning workflow, comparison, or causal explanation. Use when the user asks for a scribbly whiteboard visual, educational workflow graphic, hand-drawn explainer, or diagram like the bundled reference; ask one focused clarification question when the subject or relationships are missing, then generate and visually verify the final image.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":105,"licenseFileUrl":106,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M7EFF1CSQNTDMHFK4ZGY6NYK","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":105,"licenseFileUrl":114,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":19},"01M7EFE8106X6C28FT8PA74427","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":19},"01M7EFCSNZM9G7ZHS6F127Q71X","verification-loop","A comprehensive verification system for Claude Code sessions.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[],{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":129,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":19},"01M7EFCE7EZMKPRYDDNKBQ9EEH","vercel-deploy","Deploy applications and websites to Vercel. Use when the user requests deployment actions like \"deploy my app\", \"deploy and give me the link\", \"push this live\", or \"create a preview deployment\".","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FSKILL.md",[],[]]