Skip to main content

paperkiln-fetch

Drop an arXiv id. Get the paper's architecture back — with receipts.

pip install paperkiln-fetch

paperfetch 1706.03762
# arXiv:1706.03762  Attention Is All You Need
#   d_model         = 512       [d_model = 512]
#   n_layers        = 6         [N = 6 identical layers]
#   n_heads         = 8         [h = 8 parallel attention layers]
#   ...

paperfetch 2302.13971 --emit-hf llama_config.json
# a config.json that transformers.AutoConfig.from_pretrained opens
# directly — with every extracted value's evidence snippet and every
# declared default riding inside it under the "_paperkiln" key

Why this exists

Most transformer papers are deltas over a known skeleton — dims, depth, heads, norm flavor, activation, position encoding. That makes extraction tractable. What nobody else ships is provenance:

  • every extracted value carries the evidence snippet it was read from (the sentence, the table row);
  • a paper mentions many architectures but uses one — the contribution-vs-mention scorer separates them, and close calls are reported as contested instead of auto-applied;
  • fields the sweep cannot resolve are declared unresolved, never silently guessed — and when --emit-hf must fill a default, the default is named in the output;
  • explicit rejections ("we choose not to adopt X") veto a candidate outright.

On a 40-paper ground-truth benchmark the scorer runs at grouped AUROC 0.905, abstention-first, with three documented wrong assertions in 92 verdicts (registered and diagnosed in the benchmark, not hidden — two where a paper states its real choice only indirectly, one where a compound flavor name was shadowed by its own substring). The benchmark, its confidence intervals, and its growth protocol ship in the paperkiln repo, where the extracted architectures also train — as real models, on a readable C++ stack, with the paper's actual hyperparameters.

The full loop lives upstream

This package is the extractor, standalone, zero build step. The mother repo adds: constructor-real training of the extracted architecture (--emit-cpp, mtsweep specs), GGUF export, in-browser chat with the model you just trained, and the Architecture Atlas — a pre-registered findings registry for architecture claims.

MIT. Source of truth: papers/fetch.py in the paperkiln repo; this package vendors it verbatim (checked by tools/sync_fetch_pkg.py).

Metadata

Release files for paperkiln-fetch 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for paperkiln-fetch 0.1.0
File Size Uploaded
paperkiln_fetch-0.1.0.tar.gz 22.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for paperkiln-fetch 0.1.0
File Interpreter ABI Platform
paperkiln_fetch-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 45.8 kB

Release files / paperkiln_fetch-0.1.0.tar.gz

Download URL paperkiln_fetch-0.1.0.tar.gz
Size 22.6 kB
Tags Source
SHA-256 checksum
How to use checksums
965c0c37859044672d934f468b5346eac61d297d8fffedaed2f4d2f09c367026
BLAKE2b-256 checksum
How to use checksums
6c9f4a911ca3e00009b072894939847ff067a809e40ecb79cda8bb8d1303aac6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / paperkiln_fetch-0.1.0-py3-none-any.whl

Download URL paperkiln_fetch-0.1.0-py3-none-any.whl
Size 23.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1eb24e6f4b8fd5bbe513d9ded095c2458b356619f9258adc5731b40510f9cf0e
BLAKE2b-256 checksum
How to use checksums
21e84545e6541215599191e5c1357d9ec65c7efbdae3a0882f70476c26bdca26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page