Edge full-stack LLM platform. Written in Rust
⚠️ README outdated (undergoing large refactor) ⚠️
HAL-9100
Build AI Assistants that don't need internet. Using OpenAI SDK. For production.
100% Private, 75% Cheaper & 23x Faster Assistants.
️ Infra
✨ Feature?
❤️ Bug?
Help?First, our definition of Software 3.0, as it is a loaded term: Software 3.0 is the bridge connecting the cognitive capabilities of Large Language Models with the practical needs of human digital activity. It is a comprehensive approach that allows LLMs to:
HAL-9100 is in continuous development, with the aim of always offering better infrastructure for Edge Software 3.0. To achieve this, it is based on several principles that define its functionality and scope.
Less prompt is more
As few prompts as possible should be hard-coded into the infrastructure, just enough to bridge the gap between Software 1.0 and Software 3.0 and give the client as much control as possible on the prompts.
Edge-first
HAL-9100 does not require internet access by focusing on open source LLMs. Which means you own your data and your models. It runs on a Raspberry PI (LLM included).
OpenAI-compatible
OpenAI spent a large amount of the best brain power to design this API, which makes it an incredible experience for developers. Support for OpenAI LLMs are not a priority at all though.
Reliable and deterministic
HAL-9100 focus on reliability and being as deterministic as possible by default. That's why everything has to be tested and benchmarked.
Flexible
A minimal number of hard-coded prompts and behaviors, a wide range of models, infrastructure components and deployment options and it play well with the open-source ecosystem, while only integrating projects that have stood the test of time.
Get started in less than a minute through GitHub Codespaces: Or:
git clone https://github.com/llm-edge/hal-9100
cd hal-9100To get started quickly, let's use Anyscale API.
Get an API key from Anyscale. You can get it here. Replace in hal-9100.toml the model_api_key with your API key.
Usage w/ ollama
model_url = "http://localhost:11434/v1/chat/completions"gemma:2b in examples/quickstart.jsollama run gemma:2b & && docker compose --profile api -f docker/docker-compose.yml upInstall OpenAI SDK: npm i openai
Start the infra:
docker compose --profile api -f docker/docker-compose.yml upRun the quickstart:
node examples/quickstart.jsIs there a hosted version?
No. HAL-9100 is not a hosted service. It's a software that you can deploy on your infrastructure. We can help you deploy it on your infrastructure. Contact us.
Which LLM API can I use?
Examples of LLM APIs that does support OpenAI API-like, that you can use:
We recommend these models:
Other models have not been extensively tested and may not work as expected, but you can try them.
What's the difference with LangChain?
LangChain spans proprietary LLM and open source, among the thousands of things it spans. HAL-9100 laser focuses on Software 3.0 for the edge.
You can write AI products in 50 lines of code instead of 5000 and having to learn a whole new abstraction
Are you related to OpenAI? No.
I don't use Assistants API. Can I use this? We recommend switching to the Assistants API for a more streamlined experience, allowing you to focus more on your product than on infrastructure.
Does the Assistants API support audio and images? Images soon, working on it.
No open issues yet, or sync has not completed.