hugging-science
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseHugging Science
Hugging Science
Hugging Science is a curated, LLM-friendly index of scientific datasets, models, blog posts, and interactive demos for ML researchers. Use it when a scientific ML question lands in front of you — it's much higher signal than generic search and the entries are pre-filtered for quality and openness.
There are two related surfaces, and you should use both:
- The catalog at — a static, parseable index of resources across 17 scientific domains. It exposes
huggingscience.co(compact),llms.txt(full content), andllms-full.txt(per-domain). These are markdown files designed to be fetched and read.topics/<slug>.md - The Hugging Face organization —
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).huggingface.co/hugging-science
The catalog points to resources hosted on the broader Hugging Face Hub. So an entry like is a regular HF dataset that you load with the library; an entry like is a regular HF model you load with . The catalog's job is curation and discovery; usage goes through standard Hugging Face APIs.
arcinstitute/opengenome2datasetsfacebook/esm2_t33_650M_UR50DtransformersHugging Science是为ML研究人员打造的、经过精心筛选且适配LLM的科学数据集、模型、博客文章和交互式演示索引。当你遇到科学ML相关问题时,可使用它——相比通用搜索,它的信息质量更高,且所有条目均经过预筛选,确保优质与开放。
有两个相关平台,你应该结合使用:
- 上的目录——一个静态的、可解析的跨17个科学领域的资源索引。它提供了
huggingscience.co(精简版)、llms.txt(完整版)和llms-full.txt(按领域划分)。这些都是可获取并读取的Markdown文件。topics/<slug>.md - Hugging Face上的组织——
hugging-science——包含社区提交的数据集、部分模型以及约27个交互式Spaces(值得注意的是用于蛋白质/结合体设计的BoltzGen、用于提交的Dataset Quest和用于生态系统可视化的Science Release Heatmap)。huggingface.co/hugging-science
该目录指向托管在更广泛的Hugging Face Hub上的资源。例如,是一个常规的HF数据集,你可以使用库加载它;是一个常规的HF模型,你可以使用加载它。目录的作用是筛选和发现资源;资源的使用则通过标准的Hugging Face API完成。
arcinstitute/opengenome2datasetsfacebook/esm2_t33_650M_UR50DtransformersWhen to use this skill
何时使用该技能
Engage this skill when the user's task involves AI/ML applied to science. Common signals:
- Names a scientific domain (protein, genome, molecule, crystal, weather, climate, galaxy, EEG, microbiome, pathology, plasma, …)
- Asks "is there a dataset/model for X" where X is scientific
- Wants to fine-tune on scientific data, evaluate on scientific benchmarks, or reproduce a scientific ML paper
- Asks about specific known scientific models (Evo-2, ESM2, BoltzGen, Nucleotide Transformer, AlphaFold-derived, etc.)
- Needs an interactive demo for a scientific task (binder design, theorem proving, etc.)
If the task is generic ML (recommendation systems, chatbot RAG, vision on cats and dogs), this skill is not the right tool — defer to general HF Hub knowledge instead.
当用户的任务涉及将AI/ML应用于科学领域时,启用该技能。常见触发信号:
- 提及某个科学领域(蛋白质、基因组、分子、晶体、天气、气候、星系、脑电图、微生物组、病理学、等离子体等)
- 询问“是否有适用于X的数据集/模型”,其中X为科学主题
- 想要基于科学数据进行微调、在科学基准上评估或复现科学ML论文
- 询问特定已知的科学模型(Evo-2、ESM2、BoltzGen、Nucleotide Transformer、基于AlphaFold的模型等)
- 需要用于科学任务的交互式演示(结合体设计、定理证明等)
如果任务是通用ML(推荐系统、聊天机器人RAG、猫狗图像识别等),则该技能不适用——应转而使用通用的HF Hub知识。
Core workflow
核心工作流程
Most invocations follow this five-step loop. Don't skip discovery — the value of Hugging Science is that it has already filtered hundreds of resources down to high-signal picks per domain.
大多数调用遵循以下五步循环。不要跳过发现环节——Hugging Science的价值在于它已将数百个资源筛选为每个领域的高价值精选资源。
1. Identify the domain(s)
1. 确定领域
Map the user's task to one or more of the 17 topic slugs:
astronomybenchmarkbiologybiotechnologychemistryclimateconservationearth-scienceecologyenergyengineeringgenomicsmaterials-sciencemathematicsmedicinephysicsscientific-reasoningSome tasks span multiple topics (e.g., drug discovery → + + ). Fetch each relevant topic.
chemistrybiologymedicine将用户的任务映射到17个主题别名中的一个或多个:
astronomybenchmarkbiologybiotechnologychemistryclimateconservationearth-scienceecologyenergyengineeringgenomicsmaterials-sciencemathematicsmedicinephysicsscientific-reasoning有些任务涉及多个主题(例如,药物发现→ + + )。获取每个相关主题的内容。
chemistrybiologymedicine2. Fetch the relevant catalog content
2. 获取相关目录内容
Use the bundled script for clean, structured access:
bash
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.txtYou can also fetch the raw markdown directly:
- — compact index
https://huggingscience.co/llms.txt - — every entry, every domain
https://huggingscience.co/llms-full.txt - — one domain (slug is hyphenated, e.g.
https://huggingscience.co/topics/<slug>.md,materials-science.md,earth-science.md)scientific-reasoning.md
Each entry is a markdown block with , , URL (or for blogs), and a one-line description. See for the entry schema and slug list.
TypeTagsHuggingFaceLinkreferences/topics-and-slugs.md使用附带的脚本进行清晰、结构化的访问:
bash
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 # 完整的llms-full.txt你也可以直接获取原始Markdown文件:
- ——精简索引
https://huggingscience.co/llms.txt - ——所有条目、所有领域
https://huggingscience.co/llms-full.txt - ——单个领域(别名为连字符格式,例如
https://huggingscience.co/topics/<slug>.md、materials-science.md、earth-science.md)scientific-reasoning.md
每个条目都是一个Markdown块,包含、、HuggingFace URL(博客内容为)以及一行描述。有关条目架构和别名列表,请参阅。
TypeTagsLinkreferences/topics-and-slugs.md3. Pick the right resource(s)
3. 选择合适的资源
Read the descriptions and tags. Match to the user's task with judgment, not keyword overlap. Things to weigh:
- Scale fit — Evo-2 40B is overkill for a quick sequence classification on a laptop; ESM2 35M might be perfect.
- License and access — most are open, but check the underlying HF model card.
- Modality alignment — DNA vs. protein vs. SMILES vs. crystal structure; many "biology" models are not interchangeable.
- Recency / supersession — if both an older and newer entry cover the same task, prefer newer unless there's a reason not to.
If you're not sure which resource to pick, briefly present the top 2–3 candidates to the user with their tradeoffs, then proceed once they choose. Don't pick silently when the choice materially changes the work.
For domain-specific go-to picks (the "if in doubt, start here" entries), see .
references/flagship-resources.md阅读描述和标签。根据判断匹配用户的任务,而非仅依赖关键词重叠。需要考虑的因素:
- 规模适配——对于笔记本电脑上的快速序列分类任务,Evo-2 40B过于冗余;ESM2 35M可能是完美选择。
- 许可与访问权限——大多数资源是开放的,但请查看底层的HF模型卡片。
- 模态对齐——DNA、蛋白质、SMILES、晶体结构之间存在差异;许多“生物学”模型不可互换。
- 时效性/替代关系——如果新旧条目都涵盖同一任务,除非有特殊原因,否则优先选择较新的条目。
如果你不确定选择哪个资源,可以向用户简要展示排名前2-3的候选资源及其优缺点,待用户选择后再继续。当选择会对工作产生实质性影响时,不要自行决定。
有关特定领域的首选资源(即“不确定时的默认选择”条目),请参阅。
references/flagship-resources.md4. Use the resource
4. 使用资源
The mechanics depend on resource type. Read the matching reference file before writing code:
- Datasets → — loading via
references/using-datasets.md, streaming for huge corpora, common columns, splitsdatasets - Models → — local
references/using-models.md, Hugging Face Inference API, Inference Providers for very large models, GPU sizingtransformers - Spaces (interactive demos) → —
references/using-spaces.mdpattern with a worked BoltzGen examplegradio_client
The reference files are short and focused. If you're already fluent in the relevant API, skim; if not, read fully before writing code. The patterns are different from generic HF usage in a few important places (e.g., requirements, scientific-data dtype gotchas).
trust_remote_code操作方式取决于资源类型。编写代码前,请阅读对应的参考文件:
- 数据集→——通过
references/using-datasets.md加载、处理大型语料库的流式传输、常见列、拆分方式datasets - 模型→——本地
references/using-models.md、Hugging Face推理API、用于超大型模型的推理提供商、GPU选型transformers - Spaces(交互式演示)→——
references/using-spaces.md模式及BoltzGen的示例gradio_client
参考文件简短且重点突出。如果你已熟练掌握相关API,可以略读;否则,请在编写代码前完整阅读。在一些重要方面,这些模式与通用HF用法有所不同(例如要求、科学数据类型的陷阱)。
trust_remote_code5. Cite the methodology
5. 引用方法论
When the catalog has a blog post matching the task ( 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 <link> for the methodology behind X" is plenty.
Type: blog当目录中有与任务匹配的博客文章(或主题文件的Blog Posts部分)时,向用户解释方法时请包含其URL。方法论博客由数据集/模型作者撰写,解答了模型卡片通常不会涉及的“为何采用此设计”问题。将其视为引用——只需一行“请参阅<link>了解X背后的方法论”即可。
Type: blogAuthentication: HF_TOKEN
身份验证:HF_TOKEN
Many catalog resources are gated (clinical data, large foundation models, private Spaces). Authenticate via the environment variable.
HF_TOKENLoad from a file when available — that's where the user keeps secrets. Use at the top of any script that hits the HF API:
HF_TOKEN.envpython-dotenvpython
from dotenv import load_dotenv
load_dotenv() # picks up HF_TOKEN from .env in cwd or any parent dirIf doesn't exist or doesn't define , fall back gracefully — many resources are public and work without it. Don't hard-code tokens, don't echo them, and don't suggest as the primary path; the user prefers .
.envHF_TOKENhuggingface-cli login.envThe file should contain a line like:
.envHF_TOKEN=hf_...If you're creating a new project, also add to if it isn't already there.
.env.gitignore许多目录资源是受限制的(临床数据、大型基础模型、私有Spaces)。通过环境变量进行身份验证。
HF_TOKEN当存在文件时,从中加载——这是用户存储密钥的地方。在任何调用HF API的脚本顶部使用:
.envHF_TOKENpython-dotenvpython
from dotenv import load_dotenv
load_dotenv() # 从当前工作目录或任何父目录的.env文件中读取HF_TOKEN如果文件不存在或未定义,请优雅降级——许多资源是公开的,无需令牌即可使用。不要硬编码令牌,不要输出令牌,也不要将作为主要路径推荐;用户更倾向于使用。
.envHF_TOKENhuggingface-cli login.env.envHF_TOKEN=hf_...如果你正在创建新项目,请确保已添加到中(如果尚未添加)。
.env.gitignoreA few important things to remember
需要记住的几个重要事项
The catalog is curated, not exhaustive. If a user needs a specific resource and Hugging Science doesn't list it, that doesn't mean it doesn't exist on HF Hub. Search HF Hub directly as a fallback. But always start with the catalog when the domain matches — the curation is the value.
The entries are pointers. Don't try to "use Hugging Science" as if it were an API. There is no Hugging Science inference endpoint. Every actionable resource lives on HF Hub or as a HF Space, and you use it via the standard HF tooling.
Many scientific models require . 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.
trust_remote_code=TrueScientific datasets are often large and weirdly-shaped. Genomics corpora can be billions of tokens; cosmology images can be hundreds of GB; materials datasets contain non-standard objects (crystal structures, graphs). Use streaming ( on ) by default for anything claimed to be over a few GB, and inspect schema before assuming columns.
streaming=Trueload_datasetSpaces are great for one-off scientific generations. If the user wants to design a binder for a target protein or run inference on a hosted model demo, calling the Space via is faster and cheaper than spinning up the model locally. Check first — has ~27 of these.
gradio_clientreferences/using-spaces.mdhuggingface.co/hugging-scienceThe catalog itself may evolve. Entries get added regularly; occasionally entries change slugs. If a URL 404s, refetch the topic file or to get the current state — don't paper over the failure.
llms.txt目录经过筛选,但并非详尽无遗。如果用户需要某个特定资源而Hugging Science未列出,并不意味着该资源不存在于HF Hub上。可以直接搜索HF Hub作为备选方案。但当领域匹配时,始终从目录开始——筛选是其核心价值。
条目是指向资源的指针。不要将“Hugging Science”当作API来“使用”。不存在Hugging Science推理端点。所有可操作的资源都托管在HF Hub或作为HF Space存在,你需要通过标准HF工具来使用它们。
许多科学模型需要设置。自定义架构(Evo-2、许多基因组学/材料科学模型)附带自定义建模代码。这在该生态系统中是正常现象。请传递该标志并告知用户。
trust_remote_code=True科学数据集通常体积庞大且结构特殊。基因组语料库可能包含数十亿个令牌;宇宙学图像可能达数百GB;材料数据集包含非标准对象(晶体结构、图)。对于声称超过几GB的资源,默认使用流式传输(中设置),并在假设列结构前先检查 schema。
load_datasetstreaming=TrueSpaces非常适合一次性科学生成任务。如果用户想要为目标蛋白质设计结合体或在托管模型演示上运行推理,通过调用Space比在本地启动模型更快、更经济。请先查看——拥有约27个此类Spaces。
gradio_clientreferences/using-spaces.mdhuggingface.co/hugging-science目录本身可能会更新。条目会定期添加;偶尔条目会更改别名。如果URL返回404,请重新获取主题文件或以获取最新状态——不要掩盖失败。
llms.txtBundled resources
附带资源
- — fetch and filter catalog content. Run with
scripts/fetch_catalog.pyfor full usage. Use this in preference to ad-hoc WebFetch calls when you need structured access.--help - — exact topic slugs, what each covers, and the entry schema.
references/topics-and-slugs.md - — patterns and gotchas for loading scientific datasets.
references/using-datasets.md - — running scientific models locally, via Inference API, or via Inference Providers.
references/using-models.md - — calling HF Spaces (notably BoltzGen) programmatically with
references/using-spaces.md.gradio_client - — go-to dataset/model picks per domain when the user wants a sensible default.
references/flagship-resources.md
- ——获取并筛选目录内容。运行
scripts/fetch_catalog.py查看完整用法。当需要结构化访问时,优先使用此脚本而非临时WebFetch调用。--help - ——确切的主题别名、每个别名涵盖的内容以及条目架构。
references/topics-and-slugs.md - ——加载科学数据集的模式和注意事项。
references/using-datasets.md - ——在本地、通过推理API或推理提供商运行科学模型的方法。
references/using-models.md - ——使用
references/using-spaces.md以编程方式调用HF Spaces(特别是BoltzGen)的方法。gradio_client - ——每个领域的首选数据集/模型,适合用户需要合理默认选项时使用。
references/flagship-resources.md