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
Go From AI Idea to AI App Fast Icon
Go From AI Idea to AI App Fast

One platform to build, fine-tune, and deploy ML models. No MLOps team required.

Access Gemini 3 and 200+ models. Build chatbots, agents, or custom models with built-in monitoring and scaling.
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