Basaran is an open-source alternative to the OpenAI text completion API. It provides a compatible streaming API for your Hugging Face Transformers-based text generation models. The open source community will eventually witness the Stable Diffusion moment for large language models (LLMs), and Basaran allows you to replace OpenAI's service with the latest open-source model to power your application without modifying a single line of code. Stream generation using various decoding strategies. Support both decoder-only and encoder-decoder models. Detokenizer that handles surrogates and whitespace. Multi-GPU support with optional 8-bit quantization. Real-time partial progress using server-sent events. Compatible with OpenAI API and client libraries. Comes with a fancy web-based playground. Docker images are available on Docker Hub and GitHub Packages.

Features

  • Stream generation using various decoding strategies
  • Support both decoder-only and encoder-decoder models
  • Detokenizer that handles surrogates and whitespace
  • Multi-GPU support with optional 8-bit quantization
  • Real-time partial progress using server-sent events
  • Compatible with OpenAI API and client libraries
  • Comes with a fancy web-based playground

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Basaran

Basaran Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Basaran!

Additional Project Details

Programming Language

JavaScript, Python

Related Categories

Python AI Text Generators, Python Generative AI, JavaScript AI Text Generators, JavaScript Generative AI

Registered

2023-03-23