The secret to autonomy lies in the file format. Models are packaged in CMF (Cortiq Model Format): a single file containing not only the weights but also the architecture, tokenizer, task descriptions, and chat template. The file describes itself, so the app knows before loading how many layers the model has, what its context is, and how much memory it needs — and displays this in the library. In the catalog, each file shows its purpose — Chat or Decisions. There are three ways to get a model: a ready-made.cmf from the catalog in one tap (with resume-from-last-byte downloading if the connection drops), a Hugging Face repository in safetensors — the app converts it to CMF right on the phone — or GGUF via the desktop utility cortiq import-gguf. The same format is read by the Cortiq engine on computers. Benchmarks on iPhone 16 (A18): the lfm2.5-230m-q4tp model — 230 million parameters, 14 layers, a 126 MiB file, running on CPU with five threads, no GPU needed. Generation parameters: temperature 0.10, top_p 0.95, max_tokens 128. Chat stores each conversation as a separate thread, with answers streaming in along with time, token count, and tok/s; documents in txt, md, code, and JSON are supported up to 512 KiB. No chat model is needed for translation: the catalog has Hy-MT2 with 1.8 billion parameters, in two files — q4tp at 950.5 MB (perplexity 14.02) and q1t at 694.9 MB (perplexity 27.88). All seven test translations came back complete with finish_reason: stop, JSON survived translation without loss, and the engine delivered 14.4–21.8 tok/s (17.75 on average). The "Server" tab, protected by a token and QR code, exposes an OpenAI-compatible API: /v1/chat/completions, /v1/completions, /v1/models, while the decisions model responds via /v1/decide with a structure like {"accepted": true, "choice": "card_arrival", "confidence": 0.998} or an honest accepted: false.
The practical benefit is working where there is no network or it is limited. On a plane, the app answers questions, translates emails, and parses text files. At home, the same phone serves a laptop a local API, and the decisions model returns a structured result to a program instead of a paragraph from which code then has to extract meaning with regexes. For code, "I don't know" is not an error but a clean signal to hand the task to a human. Meanwhile, the data never leaves the device.
The author emphasizes that phone performance in some cases exceeds PC performance, so small LLMs are quite usable for real work. One model in CMF works across all devices: both phone and computer. All source data
Source: habr.com · post in Telegram