char-rnn is a classic codebase for training multi-layer recurrent neural networks on raw text to build character-level language models that learn to predict the next character in a sequence. It supports common recurrent architectures including vanilla RNNs as well as LSTM and GRU variants, letting users compare behavior and output quality across model types. It is straightforward: you provide a single text file, train the model to minimize next-character prediction loss, then sample from the trained network to generate new text one character at a time in the style of the dataset. The project is designed for experimentation, offering tunable settings for depth, hidden size, dropout, sequence length, and sampling temperature to control creativity and coherence. It is frequently used as a learning project for understanding sequence modeling, recurrent training dynamics, and the practical details of text generation.

Features

  • Character-level language model training from a single text file
  • Multi-layer RNN, LSTM, and GRU architecture options
  • Text sampling and generation with controllable randomness
  • Configurable model depth, hidden size, and regularization
  • Training workflow designed for quick experimentation
  • Classic reference implementation for sequence modeling

Project Samples

Project Activity

See All Activity >

Follow char-rnn

char-rnn Web Site

Other Useful Business Software
Empower Your Contact Center with Human-Like AI Conversations Icon
Empower Your Contact Center with Human-Like AI Conversations

Deliver faster resolutions, lower costs, and better CX without hiring another agent.

Enterprise Bot, based in Switzerland, is a pioneer in Conversational AI, Process Automation, and Generative AI. With the trust of esteemed enterprise giants across industries like Generali, SIX, SBB, DHL, and SWICA, Enterprise Bot is revolutionizing both customer and employee experiences. Through its advanced integration with Large Language Models (LLM) such as ChatGPT and Llama 2, and its unique patent-pending DocBrain technology, the company delivers unparalleled personalization, active engagement, and omnichannel solutions across platforms like email, voice, and chat. Furthermore, Enterprise Bot integrates with existing core systems, such as SAP, CRMs, Confluence and more, and with its proprietary middleware, Blitzico, enables the AI to not only respond to queries but also take action to resolve them. This dedication to innovation in four main use case areas, Customer Support, Sales and Marketing, Knowledge Management and Digital Coworker, elevates both CX and employee productivity.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of char-rnn!

Additional Project Details

Programming Language

Lua

Related Categories

Lua Neural Network Libraries

Registered

2026-03-02