Skip to content

NVIDIA CUDA Support via Tinygrad - Working Fork Available #1039

Description

@Scottcjn

Summary

We have successfully restored and verified NVIDIA CUDA support for exo using the tinygrad inference engine. The tinygrad backend was removed in the v1 prep but we have a working fork with CUDA inference confirmed on Tesla V100 and M40 GPUs.

Working Fork

https://github.com/Scottcjn/exo-cuda

Verified Hardware

  • Dell PowerEdge C4130 with Tesla V100-SXM2-16GB
  • Dell PowerEdge C4130 with Tesla M40 24GB
  • Multi-node cluster over ethernet

How to Use

git clone https://github.com/Scottcjn/exo-cuda.git
cd exo-cuda
python3 -m venv .venv
source .venv/bin/activate
pip install -e .

# Requires nvidia-cuda-toolkit
apt install nvidia-cuda-toolkit

# Start with tinygrad CUDA backend
exo --inference-engine tinygrad --chatgpt-api-port 8001 --disable-tui

Test Results

Successful inference with Llama 3.2 1B on V100:

{"model": "llama-3.2-1b", "choices": [{"message": {"content": "Hello, its nice to meet you."}}]}

Request

Would the exo team consider:

  1. Re-adding tinygrad support to the main repo for NVIDIA GPU users?
  2. Or maintaining this as an official CUDA fork?

Many users have NVIDIA hardware and would benefit from distributed inference support.


Tested by Elyan Labs - scott@elyanlabs.ai

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions