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
Ship Agents Faster Icon
Ship Agents Faster

Transform your applications and workflows into powerful agentic systems at global scale.

Gemini Enterprise Agent Platform lets you rapidly build, scale, govern and optimize production-ready agents grounded in your organization's data. The platform enables developers to build custom or pre-built agents for virtually any use case. New customers get $300 in free credits.
Get Started 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