Skip to content

[HANDS-ON BUG] First_agent_template copies fail with 'No @spaces.GPU function detected' when set to ZeroGPU — 39-59% of July/August 2026 copies #733

Description

@ashishsinha1602

Describe the bug

Copies of First_agent_template made since July 2026 are failing at startup at a sharply elevated rate, with an error unrelated to the smolagents problem in #520. The cause appears to be students selecting ZeroGPU hardware for a template that has no @spaces.GPU function.

Evidence

I have a census of all 1,458,692 public Spaces (August 2026) and can isolate every copy of this template. There are 28,689 of them, one per account.

Broken rate by the month the copy was made:

copy made n in an error state
2026-04 1,184 3.7%
2026-05 1,077 4.0%
2026-06 1,104 4.1%
2026-07 477 39.0%
2026-08 281 58.7%

That is a roughly tenfold jump against the preceding three months.

It is not transient. I re-queried 40 of the affected Spaces live in September, a month after the census: 40 of 40 were still in RUNTIME_ERROR.

The error is specific. Of 78 recently-broken copies re-queried, 76 returned an error message, and 67 of those (88.2%) were the same one:

No @spaces.GPU function detected during startup

Only 4 of 76 mentioned smolagents or CodeAgent, so this is not #520 resurfacing.

The mechanism. Comparing recent copies by hardware:

recent copies hardware
broken 33/35 on zero-a10g
not broken 21/35 on cpu-basic, 5 on zero-a10g

The upstream template README specifies no hardware, so a copy defaults to free CPU and works. app.py is CPU-only smolagents code with no @spaces.GPU decorated function. When a learner switches their Space to ZeroGPU, which is an understandable thing to do when building an "AI agent", startup fails with the error above.

Suggested fix

A line in the hands-on instructions saying the template runs on the free CPU tier and that ZeroGPU must not be selected would prevent it. Alternatively, the error is common enough now to be worth a troubleshooting entry.

Scale

351 copies created in July and August 2026 are currently broken. Across all cohorts, 3,975 accounts hold a broken copy of this template.

Method and reproducibility

Detection and analysis code: https://github.com/ashishsinha1602/dataset-integrity-audit

Copy-relationship data: https://huggingface.co/datasets/Ashsinha1/hf-spaces-clones

Caveats: stage is a snapshot and drifts; SLEEPING is not counted as broken; the live re-queries above are samples, with sizes stated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions