openai / circuit-sparsity

huggingface.co
Total runs: 653
24-hour runs: 12
7-day runs: 34
30-day runs: 188
Model's Last Updated: December 12 2025
text-generation

Introduction of circuit-sparsity

Model Details of circuit-sparsity

Sparse Model from Gao et al. 2025

Weights for a sparse model from Gao et al. 2025, used for the qualitative results from the paper (related to bracket counting and variable binding). All weights for the other models used in the paper, as well as lightweight inference code, are present in https://github.com/openai/circuit_sparsity . In the context of that repo, this model is csp_yolo2.

This is a runnable standalone huggingface implementation for one of the models. It includes code to load the locally converted HF model + tokenizer and run a tiny generation.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

if __name__ == "__main__":
    PROMPT = "def square_sum(xs):\n    return sum(x * x for x in xs)\n\nsquare_sum([1, 2, 3])\n"
    tok = AutoTokenizer.from_pretrained("openai/circuit-sparsity", trust_remote_code=True)
    model = AutoModelForCausalLM.from_pretrained(
        "openai/circuit-sparsity",
        trust_remote_code=True,
        torch_dtype="auto",
    )
    model.to("cuda" if torch.cuda.is_available() else "cpu")
    inputs = tok(PROMPT, return_tensors="pt", add_special_tokens=False)["input_ids"].to(
        model.device
    )

    with torch.no_grad():
        out = model.generate(
            inputs,
            max_new_tokens=64,
            do_sample=True,
            temperature=0.8,
            top_p=0.95,
            return_dict_in_generate=False,
        )

    print("=== Prompt ===")
    print(PROMPT)
    print("\n=== Generation ===")
    print(tok.decode(out[0], skip_special_tokens=True))
License

This project is licensed under the Apache License 2.0 .

Runs of openai circuit-sparsity on huggingface.co

653
Total runs
12
24-hour runs
56
3-day runs
34
7-day runs
188
30-day runs

More Information About circuit-sparsity huggingface.co Model

More circuit-sparsity license Visit here:

https://choosealicense.com/licenses/apache-2.0

circuit-sparsity huggingface.co

circuit-sparsity huggingface.co is an AI model on huggingface.co that provides circuit-sparsity's model effect (), which can be used instantly with this openai circuit-sparsity model. huggingface.co supports a free trial of the circuit-sparsity model, and also provides paid use of the circuit-sparsity. Support call circuit-sparsity model through api, including Node.js, Python, http.

circuit-sparsity huggingface.co Url

https://huggingface.co/openai/circuit-sparsity

openai circuit-sparsity online free

circuit-sparsity huggingface.co is an online trial and call api platform, which integrates circuit-sparsity's modeling effects, including api services, and provides a free online trial of circuit-sparsity, you can try circuit-sparsity online for free by clicking the link below.

openai circuit-sparsity online free url in huggingface.co:

https://huggingface.co/openai/circuit-sparsity

circuit-sparsity install

circuit-sparsity is an open source model from GitHub that offers a free installation service, and any user can find circuit-sparsity on GitHub to install. At the same time, huggingface.co provides the effect of circuit-sparsity install, users can directly use circuit-sparsity installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

circuit-sparsity install url in huggingface.co:

https://huggingface.co/openai/circuit-sparsity

Url of circuit-sparsity

circuit-sparsity huggingface.co Url

Provider of circuit-sparsity huggingface.co

openai
ORGANIZATIONS

Other API from openai

huggingface.co

Total runs: 6.8M
Run Growth: 296.2K
Growth Rate: 4.39%
Updated:August 27 2025
huggingface.co

Total runs: 4.5M
Run Growth: -852.4K
Growth Rate: -19.09%
Updated:August 27 2025
huggingface.co

Total runs: 2.0M
Run Growth: -176.2K
Growth Rate: -8.96%
Updated:February 29 2024
huggingface.co

Total runs: 1.8M
Run Growth: 29.4K
Growth Rate: 1.60%
Updated:February 29 2024
huggingface.co

Total runs: 908.4K
Run Growth: 272.1K
Growth Rate: 29.96%
Updated:February 29 2024
huggingface.co

Total runs: 800.2K
Run Growth: 268.3K
Growth Rate: 33.53%
Updated:February 29 2024
huggingface.co

Total runs: 334.1K
Run Growth: -72.6K
Growth Rate: -22.79%
Updated:April 23 2026
huggingface.co

Total runs: 212.7K
Run Growth: 125.1K
Growth Rate: 58.80%
Updated:January 23 2024
huggingface.co

Total runs: 140.4K
Run Growth: 87.9K
Growth Rate: 62.58%
Updated:January 23 2024
huggingface.co

Total runs: 24.8K
Run Growth: -59.3K
Growth Rate: -239.29%
Updated:February 29 2024
huggingface.co

Total runs: 13.8K
Run Growth: -1.8K
Growth Rate: -12.98%
Updated:June 12 2023
huggingface.co

Total runs: 3.4K
Run Growth: -1.7K
Growth Rate: -53.76%
Updated:July 21 2023
huggingface.co

Total runs: 2.9K
Run Growth: -232
Growth Rate: -7.87%
Updated:December 12 2023