← All projects
Project record1 mention
Originally shared on Hacker News

Red Candle

A Ruby gem that runs LLMs (Llama, Mistral, Gemma, Phi) directly in the Ruby process via Rust bindings based on Hugging Face's candle crate, using FFI with Metal/CUDA acceleration—no Python or separate servers—so Rails apps can add AI features without managing separate services.

Last shared For Anyone working with LLMs in Ruby, e.g. developers adding AI features to Rails apps.
01 / The problem

What it addresses

Running LLMs in Ruby typically requires the complexity of managing separate Python services or servers.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Red Candle

    A Ruby gem that runs LLMs (Llama, Mistral, Gemma, Phi) directly in the Ruby process via Rust bindings based on Hugging Face's candle crate, using FFI with Metal/CUDA acceleration—no Python or separate servers—so Rails apps can add AI features without managing separate services.

    Problem: Running LLMs in Ruby typically requires the complexity of managing separate Python services or servers.

    Audience: Anyone working with LLMs in Ruby, e.g. developers adding AI features to Rails apps.

    Posted by @cpetersen · Original source ↗

    Source text · @cpetersen · · Source ↗

    I've been working on Red Candle, a Ruby gem that runs LLMs (Llama, Mistral, Gemma, Phi) directly in your Ruby process through Rust bindings (based on the candle crate from Hugging Face). No Python, no servers - just FFI with Metal/CUDA acceleration.