Documentation
Compute plans and streams
View .mdOpenAPI

Describe accepted sources and formats

GEThttps://weights.fyi/run/v1/compute/capabilitiesscope: read
text
GET https://weights.fyi/run/v1/compute/capabilities
Authorization: Bearer <token>                    scope: read
Available since
2026-10-28: included in this build; see What is live for deployment status.
Answer time
synchronous: the answer is fixed in the service's code and reads nothing that can wait.

Describes accepted source pointers, format metadata and executable worker support. The reader names are ecosystem examples; they do not mean that those libraries are installed in the bundled runtime. dataset_protocols has one entry per URI scheme: the forms it takes, how a URI must be pinned, the readers that open it, and whether a byte range of it can be read alone. data_formats has one entry per format: its file extensions, its media type, its kind and the readers that open it.

A ComputePlan names data in workload.mounts, each with source_uri, optional sha256, byte_range, format, mount_path, and hydration of jit (read when needed) or prestage (requires prior preparation). Its stream packs can name a source with byte_range: [start, end] and sha256. The end is exclusive; a seekable Zstandard pack is one range of a larger .zst file. Classification jobs take pages in the call; training jobs read a dataset.

Request

NameWhereRequiredMeaning
AuthorizationheaderyesBearer and your token, with the read scope.

Return value

200 OK with one object:

FieldMeaning
schemaThe answer's shape, weights.compute-capabilities/v1.
dataset_protocolsOne entry per scheme, below: uri_pattern (its main form), uri_patterns (every form), pinning, native_readers, supports_byte_range (false for OCI) and hydration_modes (jit, prestage; OCI is prestage only). Also runtime_transport: configured_custody_store for s3 and r2, public_https for https, hf, gs and az, prestage_only for oci.
data_formatsOne entry per format, below: extensions, media_type, kind, supports_byte_range (format-level metadata), native_readers, and for parquet supports_predicate_pushdown (true). Also bundled_record_decoder: true for jsonl and jsonl_zst only, the formats the bundled workers decode.
reader_examples, reader_scopeOn every protocol and format: the same names as native_readers, and the sentence that they are ecosystem examples, not installed runtime guarantees.
scavenger_submissionPlan and stream submission calls and their options, with the source_probe object described below.
scavenger_submission.endpointsAn object from a call's name to its method and path, such as submit_plan, register_pack, stream_backlog, pack_status, promote_plan, cancel_plan, consolidate_plans, seal_stream, upload_pack_content, list_outputs and pack_output.
scavenger_submission.wake_policies, qos_classes, workload_kindsThe values the plan rules accept for wake_policy, for qos_priority, qos_tier and qos, and for workload.kind.
scavenger_submission.continuous_streamsHow a continuous stream behaves: workload_field (continuous), requires (open_stream: true), reopens_on (register_pack, consolidate_plans) and ends_on (cancellation, or the window closing under incomplete: ok).
scavenger_submission.pack_statusThe fields of a pack read and what its receipt holds.
Runtime limitsCatalog entries describe formats and readers, not universal workload support. OCI requires prestaging. JIT mounts need a byte digest even with an HF revision; ranged reads require an explicit range digest. Record packs require JSON lines, optionally Zstandard-compressed, rather than columnar files.
Runtime contractSupport
runtime_support.workloadsOne entry per workload kind: executor (bundled, agent_seats or custom_command_required), formats (the record formats it reads; empty where a custom command is required) and requires. Classifier, embedding, chat batch and agent-seat workers read JSONL, optionally Zstandard, through source_uri or r2_input_uri and verified ranges.
runtime_support limitsscope; pack_input_fields (r2_input_uri, source_uri); byte_range (end exclusive; digest and byte count describe exactly that range); max_record_pack_bytes and max_decoded_record_pack_bytes (512 MiB), which a pack's compressed_bytes may not exceed on a stage whose executor is bundled or agent_seats: a larger one is refused when it is registered; max_streamed_decoded_pack_bytes (4 GiB, streamed Zstandard classifier packs).
runtime_support.raw_crawl_shardsbody_fields (html, bodyB64, text), skips_bodiless_rows and reports_rows_skipped: crawl rows without a body are skipped and counted in rows_skipped.
Custom decodingParquet, Arrow IPC, Lance and Safetensors require conversion or a custom decoder; registration alone does not make them runnable.
Custom executionProduct builds drain an llm_batch_drain pack of chat requests. Any other llm_batch_drain pack, and every cpu_scavenger pack, needs a product command installed separately: the bundled commands for those are research-only.
TransportS3/R2 uses configured custody storage. HTTPS, HF, GCS and Azure currently use public HTTPS. Private cloud credentials and OCI hydration require preparation.

scavenger_submission.source_probe advertises the verification option using these exact keys:

json
{"verify_param":"verify_source","modes":["live_range_probe","syntax_and_custody_only"],"checks":["reachability","http_206_range","content_range_bounds","magic_bytes"]}

verify_param names the request flag. modes lists possible receipt modes; checks lists check identifiers, not per-request results. Read the submission receipt's source_probe.probes for those results.

SchemeFormsPinningReaders
s3s3://<bucket>/<path>sha256 on a runnable pack; a path under tenants/ must be your ownarrow-rs object_store, pyarrow.fs.S3FileSystem, s3fs, duckdb
r2r2://tenants/<tenant_id>/<path>sha256 on a runnable pack; your own tenant onlythe same as s3
gsgs://<bucket>/<path> (Google Cloud Storage)mounts: sha256 or @sha256: suffix; runnable packs: sha256arrow-rs object_store, pyarrow.fs.GcsFileSystem, gcsfs
azaz://<container>/<path>, abfss://<container>@<account>.dfs.core.windows.net/<path> (Azure Blob Storage, ADLS Gen2)mounts: sha256 or @sha256: suffix; runnable packs: sha256arrow-rs object_store, adlfs, duckdb azure
httpshttps://<host>/<path>mounts: sha256 or @sha256: suffix; runnable packs: sha256arrow-rs object_store, pyarrow.dataset, polars, duckdb httpfs
hfhf://<org>/<dataset>@<revision>/<path>mounts: @<revision> or sha256; runnable packs: sha256hf-hub, pyarrow.dataset, polars.scan_parquet, duckdb, fsspec/HfFileSystem
ocioci://<registry>/<repository>@sha256:<64-hex>mounts: digest suffix or sha256; runnable packs: sha256oci-client, oras
FormatExtensionsMedia typeKindReaders
parquet.parquetapplication/vnd.apache.parquetcolumnar, with predicate pushdownpyarrow.dataset, polars.scan_parquet, duckdb, arrow-rs parquet
arrow_ipc.arrow, .ipc, .featherapplication/vnd.apache.arrow.filecolumnar_zero_copypyarrow.ipc, polars.scan_ipc, arrow-rs ipc
lance.lanceapplication/x-lancecolumnar_random_accesslance, pyarrow.dataset, duckdb
jsonl_zst.jsonl.zst, .ndjson.zst, .zstapplication/zstdseekable_record_packzstandard, zstd, duckdb, polars
jsonl.jsonl, .ndjsonapplication/x-ndjsonrecord_streampyarrow.json, polars.scan_ndjson, duckdb
safetensors.safetensorsapplication/x-safetensorstensor_bundlesafetensors

Submission accepts verify_source: true on a plan, a stage's workload or a pack, or ?verify_source=1. It checks sources before writing: declared ranges require 206; whole objects can also pass with 200 when small or their declared size matches. Known sizes and recognised file headers are checked; OCI uses a reachability-only HEAD. This does not verify a whole-file digest. Failures return the 400 and 503 codes of source verification. source_probe lists the checks; without reads its mode is syntax_and_custody_only.

Errors

StatusCodeWhen it happensWhat to do
401unauthorized, invalid_token, token_revoked, token_expiredNo token, or one that does not work.Use a valid token.
403scope_required, account_suspendedThe token lacks read, or the account is suspended.Use a token with read.

Examples

sh
curl -s https://weights.fyi/run/v1/compute/capabilities -H "Authorization: Bearer $WEIGHTS_API_KEY"

Two of its entries, from a test copy of the service:

json
{
  "schema": "weights.compute-capabilities/v1",
  "dataset_protocols": {
    "az": {"uri_pattern": "az://<container>/<path>",
           "uri_patterns": ["az://<container>/<path>", "abfss://<container>@<account>.dfs.core.windows.net/<path>"],
           "pinning": "required (sha256 field or @sha256:<64-hex> suffix)",
           "native_readers": ["arrow-rs object_store", "adlfs", "duckdb azure"],
           "supports_byte_range": true, "hydration_modes": ["jit", "prestage"]}
  },
  "data_formats": {
    "parquet": {"extensions": [".parquet"], "media_type": "application/vnd.apache.parquet", "kind": "columnar",
                "supports_byte_range": true, "supports_predicate_pushdown": true,
                "native_readers": ["pyarrow.dataset", "polars.scan_parquet", "duckdb", "arrow-rs parquet"]}
  }
}

History

  • 2026-10-28: added, with s3, r2, https, hf and oci.
  • 2026-10-28: gs, az (with abfss://), uri_patterns and data_formats added; the plan calls accept the new schemes.
  • 2026-10-28: verify_source and source_probe added to the plan calls.
  • 2026-10-28: linked plan and stream reference pages; clarified source-check and mount-pinning behaviour.
  • 2026-10-29: the answer carries gs, az and data_formats; qos_classes and workload_kinds list the accepted values; execution_targets removed.
  • 2026-11-16: listed the runtime, transport, decoder and continuous-stream fields.

See also