---
title: zaremba-cayley-cuda
canonical_url: "https://www.modelscope.cn/models/cahlen/zaremba-cayley-cuda"
md_url: "https://www.modelscope.cn/models/cahlen/zaremba-cayley-cuda.md"
repository: cahlen/zaremba-cayley-cuda
last_updated: 2026-04-15
license: mit
library_name:
  - pytorch
frameworks:
  - pytorch
downloads: 3
stars: 0
tags:
  - kernels
  - cuda
  - zaremba
  - cayley-graph
  - graph-diameter
  - number-theory
---

# zaremba-cayley-cuda

> zaremba-cayley-cuda - cahlen 在 ModelScope 开源的模型。Cayley Graph Diameters of SL(2, Z/pZ)

cahlen/zaremba-cayley-cuda 是 ModelScope 魔搭社区上的机器学习模型，采用 mit 许可。

- **Repository**: cahlen/zaremba-cayley-cuda
- **License**: mit
- **Tags**: kernels, cuda, zaremba, cayley-graph, graph-diameter, number-theory
- **Downloads**: 3
- **Stars**: 0
- **Last updated**: 2026-04-15

Source: https://www.modelscope.cn/models/cahlen/zaremba-cayley-cuda

---

# Cayley Graph Diameters of SL(2, Z/pZ)

Computes Cayley graph diameters for the Zaremba generators {1,...,5} acting on SL(2, Z/pZ) via GPU-parallel BFS.

## Usage

```python
import torch
from kernels import get_kernel

kernel = get_kernel("cahlen/zaremba-cayley-cuda")
result = cayley.diameter(primes)
```

## Compile (standalone)

```bash
nvcc -O3 -arch=sm_90 -o zaremba_cayley cayley_diameter/cayley_gpu.cu -lm
```

## Results

All computation results are open:
- **Website**: [bigcompute.science](https://bigcompute.science)
- **Datasets**: [huggingface.co/cahlen](https://huggingface.co/cahlen)
- **Source**: [github.com/cahlen/idontknow](https://github.com/cahlen/idontknow)

## Citation

```bibtex
@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.*
