Run this model with HF Jobs

Run cahlen/zaremba-density-cuda on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/cahlen/zaremba-density-cuda. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/cahlen/zaremba-density-cuda on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Zaremba Density Enumeration

Enumerates all CF denominators <= N with partial quotients from digit set A using persistent-thread DFS + bitset marking.

Usage

import torch
from kernels import get_kernel

kernel = get_kernel("cahlen/zaremba-density-cuda")
result = zaremba.count_representable(max_d=1000000, digits=torch.tensor([1,2,3]))

Compile (standalone)

nvcc -O3 -arch=sm_90 -o zaremba_density zaremba_density/zaremba_density_gpu.cu -lm

Results

All computation results are open:

Citation

@misc{humphreys2026bigcompute,
  author = {Humphreys, Cahlen},
  title = {bigcompute.science: GPU-Accelerated Computational Mathematics},
  year = {2026},
  url = {https://bigcompute.science}
}

Human-AI collaborative. Not peer-reviewed. All code and data open.

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Dataset used to train cahlen/zaremba-density-cuda