Repository navigation
feat(ai): serve Laya through Ollaya on THEBATTLESHIP (CPU, localhost) - #89
Merged
Merged
Conversation
fleet.ai/ollaya wraps nixpkgs' services.ollaya: 127.0.0.1:11435 only, OLLAYA_DEVICE=cpu, 8 ONNX threads, the model kept loaded, and laya:en pulled by ollaya-model-loader. THEBATTLESHIP includes it for the Paperclip router (STA-631). STA-630. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A new aspect,
fleet.ai/ollaya(modules/ai/ollaya.nix), included on THEBATTLESHIP. It serves the open Laya decision model through Ollaya, using TypeSafe Jev's API:POST http://127.0.0.1:11435/v1/systemone. The Paperclip router (STA-631) will call it.services.ollayaandpkgs.ollaya0.17.0, which come from cache.nixos.org, so nothing is built from source.127.0.0.1only and opens no firewall port.OLLAYA_DEVICE=cpu, so it never touches the GPU.OLLAYA_THREADS=8leaves the other cores for builds.OLLAYA_KEEP_ALIVE=-1keeps the model loaded, because a cold load takes about 5 s and the TypeSafe SDK times out after 10 s.ollaya-model-loader.servicepullslaya:en(814 MB) into/var/lib/ollaya/modelsafter the daemon starts.settings.ai.ollaya.modelsandsettings.ai.ollaya.threads.Verified
nix build .#nixosConfigurations.THEBATTLESHIP.config.system.build.toplevelexits 0. The service environment and loader script evaluate as described above, and 11435 is not inallowedTCPPorts.ollayastore path in userspace asagent, on port 11439:ollaya pull laya:en, then a sample "which agent?" question with 3 options sent to/v1/systemone. It returned HTTP 200 andDevOpswith p=0.8164 (Librarian 0.0732, Atlas 0.1105).Deploy note
This repo's
maindoesn't match what is running on THEBATTLESHIP. Generation 1074 was switched from open PR #87 (devenv/direnv), and #85'sgithub-nix-configrunners were never activated. Switching from this branch alone would also add those 3 runners and remove devenv, cachix and libghostty-vt. The live switch waits for the Captain's approval (STA-630).🤖 Generated with Claude Code