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
Application Monitoring That Won't Slow Your App Down Icon
Application Monitoring That Won't Slow Your App Down

AppSignal's Rust-based agent is lightweight and stable. Already running in thousands of production apps.

Full APM with errors, performance, logs, and uptime monitoring. 99.999% uptime SLA on the platform itself.
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