Skip to main content

This repository provides tools to generate a linear algebra dataset and code to train an open-source pre-trained model. Our goal is to explore the model's potential for emergent reasoning, inspired by the Deepseek-R1 paper.

Project description

linalg-zero

Release Build status codecov Commit activity License

This repository offers tools for generating a linear algebra problem dataset and training an open-source base model, aiming to explore its potential for emergent reasoning as inspired by the Deepseek-R1 paper.

Installation

PyTorch Configuration

This project is configured with PyTorch defaults that work for most users:

  • Linux: CUDA 12.8 builds (for GPU acceleration)
  • macOS/Windows: CPU builds

For Different CUDA Versions

If you need a different CUDA version, run the following commands:

# To automatically detect and install dependencies:
UV_TORCH_BACKEND=auto uv sync

# Alternatively, to install Pytorch with a specific CUDA version:
nvidia-smi                      # check your CUDA version
UV_TORCH_BACKEND=cu121 uv sync  # for CUDA 12.1
UV_TORCH_BACKEND=cu124 uv sync  # for CUDA 12.4
UV_TORCH_BACKEND=cpu uv sync    # for CPU-only

For the available CUDA versions see the official documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

linalg_zero-0.1.0.tar.gz (91.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

linalg_zero-0.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file linalg_zero-0.1.0.tar.gz.

File metadata

  • Download URL: linalg_zero-0.1.0.tar.gz
  • Upload date:
  • Size: 91.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for linalg_zero-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f8232b03074fe0df1986cc3ef8d1aea9a12d8de9d50cba8f1b7d360aad47b902
MD5 cc9d5f4ad0fc2349ec22185cf7dd67ca
BLAKE2b-256 934e2e744ecc26aa7bc2762097c10ddc0b9fef054974009413212a2fbf5d04a6

See more details on using hashes here.

File details

Details for the file linalg_zero-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for linalg_zero-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 73dd2b5efed8d9b59d5feb595e16107c1551899c96d906e4868ed0db53768b6d
MD5 ea9aa172a26283c612e93cb7a837fbbc
BLAKE2b-256 f9cb2ecb3e0ff06606ef0acb3678e717c1e962019399299b076f2b03b326bcd0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page