Skip to content

PointSav Documentation

The engineering library for the PointSav platform — operating systems and services for regulated businesses that own their data, their AI, and their record-keeping outright. Where the monorepo holds the code, this wiki holds the reasoning: architecture, services, security, and the governance commitments that bind future development.

Run local SLM inference

← All revisions

7c75aa67 · PointSav Digital Systems ·

feat(track-b): real Track B pipeline on Self-hosting guide group — Pool 1/2/3 extraction against origin/main found 3 of 4 guides had fabricated APIs/CLI (pointsav-gateway doesn't exist, doorman.toml doesn't exist, knowledge.toml schema was wrong), fresh-drafted all 4 against schema-guide.yaml and real source, new self-hosting category (kind: guide) in categories.yaml. Single-model (Fable/Opus session cap hit) — ES pairs' category: field updated, content parity deferred.

View the full record as of this revision →

@@ -0,0 +1,93 @@
---
schema: foundry-doc-v1
title: "Run local SLM inference"
slug: run-local-slm-inference
short_description: "Starts the local Tier A SLM service, verifies Doorman readiness, and submits an inference request from the console or the API, with all prompt data staying on the deployment."
category: self-hosting
content_type: how-to
type: how-to
quality: complete
status: active
audience: "Engineers (hands on keyboard); customer operators"
last_edited: 2026-08-04
editor: pointsav-engineering
paired_with: run-local-slm-inference.es.md
---

## Prerequisites

- A deployment with the local SLM model binary installed at the path `local-slm.service` expects (see [[self-host-a-deployment]])
- The `slm-doorman` service running and healthy (see [[configure-doorman]])
- A session with User-level access (see [[pair-a-new-device]])

## Purpose

The platform's inference stack runs a small language model locally, on Tier A, reached through the Doorman gateway. All Tier A inference stays on the operator's own hardware — no prompt data leaves the deployment. This guide starts the local model, confirms Doorman sees it as ready, and submits a request — both from the console TUI and directly against the API.

## Procedure

1. Start the local SLM service, if it isn't already running:

   ```
   sudo systemctl start local-slm
   ```

2. Confirm it started cleanly:

   ```
   systemctl is-active local-slm
   journalctl -u local-slm --since "1 minute ago"
   ```

   A healthy start logs the model loading and the service binding its port (default `127.0.0.1:8080`). If it fails, check that the model file named in the unit's configuration is actually present at the path the service expects.

3. Confirm Doorman sees Tier A as ready. In the console, press **F9** to open the SLM Cartridge's health dashboard, which reads Doorman's `/readyz`. `tier_a` (also shown as `A — Local`) must be `true`/green before a request will succeed. Press **R** to refresh.

4. Submit a prompt from the console. With Tier A live, type a prompt at the F9 input line and press Enter — the response streams token-by-token into the output area, and the status bar shows the active tier during generation.

5. Or submit a prompt directly via the API:

   ```
   curl -X POST http://127.0.0.1:9080/v1/chat/completions \
     -H "Content-Type: application/json" \
     -d '{"messages":[{"role":"user","content":"Summarise the role of the Doorman gateway."}]}'
   ```

   The response is an OpenAI-compatible JSON object with a `choices` array; each choice carries the generated text.

## Expected outcome

A prompt sent while Tier A is ready returns a generated response with no data leaving the host — the console's F9 line and the `/v1/chat/completions` call are the same underlying request path, just two different clients.

## Verification

Console inference requests are SYS-ADR-07-safe by construction: only plain prompt text passes through the model layer, never structured platform data (entity records, WORM entries). Confirm Tier A stayed the serving tier rather than silently falling back, by checking `/readyz` again after the request:

```
curl http://127.0.0.1:9080/readyz
```

`tier_a: true` and `ai_available: true` confirm Tier A served the request. If Tier B (Yo-Yo) is configured and Tier A becomes unavailable mid-session, Doorman routes to Tier B automatically rather than failing — see [[doorman-protocol]] for the full fallback order.

## Rollback

Stop the local model service; Doorman itself keeps running and reports `tier_a: false` on its next `/readyz` check rather than crashing:

```
sudo systemctl stop local-slm
```

## Next steps

- [[run-first-slm-query]] — a first, guided query walkthrough from the console
- [[query-the-datagraph]] — a different Doorman-routed capability, entity lookup rather than inference
- [[doorman-protocol]] — the full tier-fallback model, for when Tier A alone isn't enough

## See also

- [[slm-stack-architecture]] — architecture of the local SLM stack and supported model tiers
- [[doorman-protocol]] — the Doorman gateway protocol; readiness, routing, and tier-fallback behaviour
- [[app-console-slm]] — the os-console SLM cartridge and the Doorman health dashboard
- [[run-first-slm-query]] — submitting a query from the console once the model is running
- [[self-host-a-deployment]] — provision the instance that hosts the inference stack
- [[configure-doorman]] — configuring Tier A/B/C before running an inference request
Important Information

Corporate structure. PointSav Digital Systems ("PointSav") is currently a trade name of Woodfine Capital Projects Inc. ("Woodfine"), planned to become a wholly-owned Woodfine subsidiary upon incorporation. PointSav does not itself offer, sell, or solicit any security. Any securities offering associated with Woodfine's real-property direct-hold solutions is made exclusively by Woodfine, and only by means of the applicable Private Placement Memorandum.

No investment advice. This wiki's content is provided for engineering, operational, research, and development purposes. Nothing on this wiki constitutes investment advice or a solicitation to invest in any Woodfine partnership or direct-hold solution.

Intellectual property. The PointSav name, trade name, wordmark, and marks, together with all current and future PointSav- and Totebox-branded products, services, and offerings — and the software, source code, documentation, design system, and all related materials — are proprietary to Woodfine and its affiliates, except for components identified as open source. No rights are granted except as expressly set out in a written license or agreement. The full trademark notice appears in the footer of every page on this site.

Open source components. Portions of the platform are made available under permissive open-source licenses identified in the accompanying repository. Use of those components is governed by their respective license terms.

No warranty; informational use. Content on this wiki is provided for general informational purposes only and does not constitute a representation, warranty, or commitment with respect to product functionality, availability, pricing, or roadmap. Some articles describe planned or intended features, capabilities, and milestones — language such as "planned," "intended," "targeted," "may," and "expected" marks this forward-looking content, which is subject to change and does not constitute a commitment regarding future performance.

Confidentiality. Where an article describes an operational or deployment detail that is not intended for public disclosure, that article is not published on this wiki. Content here is general-purpose engineering documentation, not customer-specific configuration.

Jurisdiction. Woodfine Capital Projects Inc. is organized in British Columbia, Canada. References to the Sovereign Data Foundation on this wiki describe a planned or intended initiative only, not a current equity holder or active governance body.

Changes to this notice. PointSav may update this notice from time to time; the version posted on this page governs.

Not a filing system. This wiki is not a securities filing system, an electronic disclosure repository, or a substitute for SEDAR+ or any other regulatory filing system. Formal securities filings are made through the applicable regulatory filing system, not through this wiki.

Full disclaimer. This notice supplements, and does not replace, the full Disclaimers article. In the event of any conflict, the full Disclaimers article governs.

Read the full disclaimer →