---
title: ramanujan-machine-cuda
canonical_url: "https://www.modelscope.cn/models/cahlen/ramanujan-machine-cuda"
md_url: "https://www.modelscope.cn/models/cahlen/ramanujan-machine-cuda.md"
repository: cahlen/ramanujan-machine-cuda
last_updated: 2026-04-15
license: mit
library_name:
  - pytorch
frameworks:
  - pytorch
downloads: 3
stars: 0
tags:
  - kernels
  - cuda
  - ramanujan-machine
  - continued-fractions
  - mathematical-constants
  - number-theory
---

# ramanujan-machine-cuda

> ramanujan-machine-cuda - cahlen 在 ModelScope 开源的模型。Ramanujan Machine v2 (Asymmetric-Degree CF Search)

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

- **Repository**: cahlen/ramanujan-machine-cuda
- **License**: mit
- **Tags**: kernels, cuda, ramanujan-machine, continued-fractions, mathematical-constants, number-theory
- **Downloads**: 3
- **Stars**: 0
- **Last updated**: 2026-04-15

Source: https://www.modelscope.cn/models/cahlen/ramanujan-machine-cuda

---

# Ramanujan Machine v2 (Asymmetric-Degree CF Search)

Searches for polynomial continued fraction formulas with asymmetric degrees. Evaluates CF candidates and matches against known mathematical constants.

## Usage

```python
import torch
from kernels import get_kernel

kernel = get_kernel("cahlen/ramanujan-machine-cuda")
result = ramanujan.search(deg_a=1, deg_b=2, range_a=10, range_b=10)
```

## Compile (standalone)

```bash
nvcc -O3 -arch=sm_90 -o ramanujan_machine ramanujan/ramanujan_v2.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.*
