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
Fully Managed MySQL, PostgreSQL, and SQL Server Icon
Fully Managed MySQL, PostgreSQL, and SQL Server

Automatic backups, patching, replication, and failover. Focus on your app, not your database.

Cloud SQL handles your database ops end to end, so you can focus on your app.
Try 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