05 · Technical Specification / Technische Dokumentation
Declarative Adapter Pools & OpenAI-Compatible Inference
EN: Address any fine-tuned LoRA revision by URI suffix with zero proxy overhead.
DE: Adressieren Sie jede feinabgestimmte LoRA-Revision direkt über das Modell-Suffix.
1. Pool Manifest (YAML) formaml apply -f pool.yaml
apiVersion: formaml.ch/v1alpha2
kind: AdapterPool
metadata:
name: eu-ch1-finance-pool
spec:
baseModel: meta-llama/Llama-3.3-70B-Instruct
quantization: fp8-e4m3
gpuPool:
accelerator: nvidia-h100-sxm
replicas: 2
packing:
maxCoResidentAdapters: 512
kvCacheReserveGb: 18
evictionPolicy: predictive-lru
security:
kmsKeyArn: arn:aws:kms:eu-central-2:formaml:tenant-wrap 2. Multi-Adapter Inference Call 140 µs NVLink Swap
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.formaml.ch/v1",
apiKey: process.env.FORMAML_API_KEY,
});
// Route directly to any of 500 hot-swapped tenant LoRA adapters
const response = await client.chat.completions.create({
model: "llama-3.3-70b:lora/tenant-zurich-legal-r16-v9",
messages: [{ role: "user", content: "Summarize clause 14.2 obligations." }],
temperature: 0.1,
});