Local AI in SMEs.
Phi-4 versus ChatGPT in the cloud.
Compact language models can be run locally on suitable Macs. What this can mean for HR software in Switzerland, and which trade-offs against a cloud service are necessary.
8-minute read · May 2026
Swiftli editorial team · reviewed by Adrian Pahl
Snapshot in timeThis article dates from the Phi-4 era. Swiftli Smart HR now runs Qwen3-4B-Instruct, compressed and directly on the Mac via Apple’s MLX — the trade-offs in the text still apply, the model details no longer do. The switch is described in the article about Qwen3 in the Smart Assistant.
Why local AI at all?
For many SMEs today, “AI” means a cloud service that the software addresses via an interface (API). Depending on the service, inputs are transmitted to external data centres, processed there and the responses sent back. This is convenient and powerful, but with personnel data it requires a careful review of the specific data flows, roles, contracts and disclosures abroad.
Personnel data is personal data, but not automatically “sensitive” within the meaning of Art. 5 let. c FADP. Health data is; salary or performance data is not sensitive merely because of its HR context. Regardless of the category, identifiable personnel data only belongs in the inputs or logs of an AI provider if purpose, proportionality, transparency, roles, contract, security and any disclosures abroad have been clarified.
Phi-4-mini-instruct: what it is
Phi-4-mini-instruct is a compact language model from Microsoft with a size of around 3.8 billion parameters (a measure of how large a model is; as of 2025). The published model can be run directly on your own device. Whether data leaves the device in the process depends on the settings of the whole application, in particular usage data sent to the manufacturer (telemetry), updates, backups and connected services. Suitability and quality for question answering, summarisation or classification must be tested against the specific use case.
MLX and Macs with Apple chips
On Macs with Apple chips (M1 to M4), the processor and the graphics unit share the same fast memory. With MLX, Apple offers its own technology for AI computations on these chips. The speed and memory needs of Phi-4-mini depend, among other things, on the device, the compression of the model, the length of the input and the technical implementation, and should be measured on the Macs on which the software is to run.
Local versus cloud: an honest comparison
1. Data protection
With a model that is run purely locally and configured accordingly, inputs do not have to be transmitted to a model provider. This reduces risks from disclosures to third parties and transfers abroad; usage data sent to the manufacturer, updates, backups and connected services must nevertheless be examined separately. With a cloud service, the points to assess include the provider’s role, purposes of use and training, data security and the specific transfer mechanism. For US recipients certified under the Swiss‑U.S. Data Privacy Framework, an adequacy arrangement exists; other US transfers require a basis under Art. 16 or 17 FADP.
2. Response time
Running locally saves the transfer time over the internet, but needs enough computing power on your own device. With cloud services, the transfer, the load at the provider and the model’s computing time come on top. Which option responds faster has to be measured with the specific model, device, context and provider.
3. Quality
Quality depends heavily on the model, version, language, context and task. Larger cloud models can have advantages for complex tasks; a compact local model can be sufficient for narrowly defined tasks. Before use with personnel data, representative tests, error thresholds and appropriate human oversight are needed.
4. Costs
Running locally incurs, in particular, hardware, energy, development, maintenance and support costs. Depending on the offering, cloud providers charge for usage, capacity or subscriptions. A robust comparison requires actual usage, operating effort and the prices current at the time.
5. Data protection checkpoints
Local AI also processes personal data and must comply with the principles of the FADP and ensure appropriate data security. With cloud AI, a data processing agreement is required if the provider processes data on your behalf and bound by your instructions. A record of processing activities is governed by Art. 12 FADP and the exemption in Art. 24 DPO; a data protection impact assessment is only required under Art. 22 FADP where a high risk is likely. Storage location alone therefore does not determine lawfulness.
Use cases for HR questions
- Help search. A local model can answer questions such as “How do I cancel a shift?” using the instructions for the app version in question; sources and how up to date they are should remain visible.
- Pointers to legal sources. For questions about breaks or the L-GAV, a model can find relevant references. The legal answer must be checked against the current primary source.
- Pay plausibility checks. A structured, dated wage table can support comparisons; it does not automatically follow that a wage is “customary in the market” or legally sufficient.
- Draft texts. A local model can, for example, prepare a multilingual job description. Content, discrimination risks and translation must be checked before publication.
When cloud AI is still the right choice
Local is not the better choice for everything. If a use case needs real depth — such as checking a 30-page HR policy for consistency — a cloud AI may be more suitable from a technical standpoint. Omitting names and dates of birth does not automatically anonymise a data set; what matters is whether a person can still be identified by reasonable means. Where effective anonymisation is not possible, a documented review of purpose, data minimisation, provider role, contract, security, transparency and disclosure abroad is required before use. Legal disputes, moreover, belong in expert hands.
The right question is not “cloud or local?”, but “which task locally, which in the cloud, and which not with AI at all?”
Conclusion
In 2026, local AI is one possible route for clearly defined HR functions. It can reduce disclosures of data, but it eliminates neither quality risks nor the controller’s obligations under the FADP. Anyone choosing HR software should ask explicitly: “Which AI functions run locally, which in the cloud, and with which providers?” — and have the data flows and safeguards documented.
Sources and further reading
- huggingface.co/microsoft/Phi-4-mini-instruct — model description with comparison tests
- ml-explore.github.io/mlx — documentation for MLX, Apple’s technology for AI computations
- edoeb.admin.ch — FDPIC on disclosures abroad and the Swiss‑U.S. DPF
- fedlex.admin.ch — FADP (SR 235.1), official text of the Act
- fedlex.admin.ch — DPO (SR 235.11), official text of the Ordinance
Further reading
- Why Swiftli switched from Phi-4 to Qwen3 — the later developer diary on the Smart Assistant.
- FADP: cloud storage and local data storage — the data protection assessment for Swiss SMEs.
The quickest way to see how a local model works day to day is to look at your own business. Sixty minutes, no slides.