Use when the user is doing AI/ML work in a scientific domain such as biology, chemistry, physics, astronomy, climate, genomics, materials, medicine, ecology, energy, engineering, math, drug discovery, protein design, weather modeling, theorem proving, single-cell, or PDE solving. Hugging Science is a curated catalog of scientific datasets, models, blog posts, and interactive Spaces. This skill helps discover and use resources via `datasets`, `transformers`, the HF Inference API, `gradio_client`, and methodology citations.
huggingscience.co — a static, parseable index of resources across 17 scientific domains. It exposes llms.txt (compact), llms-full.txt (full content), and topics/<slug>.md (per-domain). These are markdown files designed to be fetched and read.hugging-science Hugging Face organization — huggingface.co/hugging-science — community-submitted datasets, a few models, and ~27 interactive Spaces (notably BoltzGen for protein/binder design, Dataset Quest for submissions, and Science Release Heatmap for ecosystem visualization).arcinstitute/opengenome2 is a regular HF dataset that you load with the datasets library; an entry like facebook/esm2_t33_650M_UR50D is a regular HF model you load with transformers. The catalog's job is curation and discovery; usage goes through standard Hugging Face APIs.astronomy · benchmark · biology · biotechnology · chemistry · climate · conservation · earth-science · ecology · energy · engineering · genomics · materials-science · mathematics · medicine · physics · scientific-reasoningchemistry + biology + medicine). Fetch each relevant topic.python scripts/fetch_catalog.py topic biology
python scripts/fetch_catalog.py topic materials-science --filter models
python scripts/fetch_catalog.py search "protein language model"
python scripts/fetch_catalog.py all # full llms-full.txt
materials-science.md, earth-science.md, scientific-reasoning.md)Type, Tags, HuggingFace URL (or Link for blogs), and a one-line description. See references/topics-and-slugs.md for the entry schema and slug list.references/flagship-resources.md.references/using-datasets.md — loading via datasets, streaming for huge corpora, common columns, splitsreferences/using-models.md — local transformers, Hugging Face Inference API, Inference Providers for very large models, GPU sizingreferences/using-spaces.md — gradio_client pattern with a worked BoltzGen exampletrust_remote_code requirements, scientific-data dtype gotchas).Type: blog or in the Blog Posts section of a topic file), include its URL when you explain your approach to the user. Methodology blogs are written by the dataset/model authors and answer "why this design" questions that model cards usually skip. Treat them like citations — a one-line "see for the methodology behind X" is plenty.HF_TOKEN environment variable.HF_TOKEN from a .env file when available — that's where the user keeps secrets. Use python-dotenv at the top of any script that hits the HF API:from dotenv import load_dotenv
load_dotenv() # picks up HF_TOKEN from .env in cwd or any parent dir
.env doesn't exist or doesn't define HF_TOKEN, fall back gracefully — many resources are public and work without it. Don't hard-code tokens, don't echo them, and don't suggest huggingface-cli login as the primary path; the user prefers .env..env file should contain a line like:HF_TOKEN=hf_...
.env to .gitignore if it isn't already there.trust_remote_code=True. Custom architectures (Evo-2, many genomics/materials models) ship custom modeling code. This is normal in this ecosystem. Pass the flag and inform the user.streaming=True on load_dataset) by default for anything claimed to be over a few GB, and inspect schema before assuming columns.gradio_client is faster and cheaper than spinning up the model locally. Check references/using-spaces.md first — huggingface.co/hugging-science has ~27 of these.llms.txt to get the current state — don't paper over the failure.scripts/fetch_catalog.py — fetch and filter catalog content. Run with --help for full usage. Use this in preference to ad-hoc WebFetch calls when you need structured access.references/topics-and-slugs.md — exact topic slugs, what each covers, and the entry schema.references/using-datasets.md — patterns and gotchas for loading scientific datasets.references/using-models.md — running scientific models locally, via Inference API, or via Inference Providers.references/using-spaces.md — calling HF Spaces (notably BoltzGen) programmatically with gradio_client.references/flagship-resources.md — go-to dataset/model picks per domain when the user wants a sensible default.