A minimal implementation of diffusion models of text: learns a diffusion model of a given text corpus, allowing to generate text samples from the learned model. The main idea was to retain just enough code to allow training a simple diffusion model and generating samples, remove image-related terms, and make it easier to use. To train a model, run scripts/train.sh. By default, this will train a model on the simple corpus. However, you can change this to any text file using the --train_data argument. Note that you may have to increase the sequence length (--seq_len) if your corpus is longer than the simple corpus. The other default arguments are set to match the best setting I found for the simple corpus.

Features

  • Training from scratch on the greetings dataset
  • Experiments with using pre-trained models and embeddings
  • Controllable Generation
  • A minimal implementation of diffusion models of text
  • Generate text samples from the learned model
  • Opportunities for further minimization

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Minimal text diffusion

Minimal text diffusion Web Site

Other Useful Business Software
User-friendly software for hybrid working and hot desking in your organisation. Icon
User-friendly software for hybrid working and hot desking in your organisation.

Desk sharing tool for efficient hybrid working

Efficient workspace management FlexWhere, a Dutchview application, is a convenient software application for organizations that work flexibly. These organizations employees do not have a fixed workspace. Using FlexWhere, they find out quickly and easily which flex places and meeting rooms are free and where their colleagues are located. The information can be viewed on a display, desktop or laptop. By using the mobile app, FlexWhere can even be consulted outside the office on a tablet or phone. More and more organizations are working with flexible workplaces. That is opening up all kinds of possibilities, but is also raising questions such as: ‘How do I know where there is a free workplace?’, ‘Where can I find the colleague I need?’, ‘Is there a conference space available on this floor?’. FlexWhere answers those questions, so it is ideal for supporting (the transition to) flexible work.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Minimal text diffusion!

Additional Project Details

Programming Language

Python

Related Categories

Python AI Text Generators, Python Generative AI

Registered

2023-03-23