Edgar Cui
ON‑PREM AI · FINANCE REMOTE · UTC+10 EST. 2019

I help companies run AI on their own servers, and the finance systems underneath.

Two tracks, one discipline. Large language models deployed on your own hardware, so data never leaves the building — and the close, controls and reporting pipelines that keep the books auditable. On‑prem, read‑only by default, every step logged.

OPEN TO WORK Edgar Cui — portrait
AI
On-prem LLMs
Open-weight models on your own hardware
OCR
Document AI
Invoices read offline, fields extracted & checked
SQL
Ask your data
Plain-language questions over your ERP, local
ERP
Finance pipelines
Close, controls & posting into SAP, safeguarded

The ledger

ACCT · CAREER
late 2021 —

Finance systems & in-house AI — building-materials retail

Owns month-end close and controls across a multi-site group, and builds the automation underneath: SAP Business One integration, SQL models, self-hosted dashboards, and on-prem LLM tools — document OCR and natural-language reporting — that run entirely on company hardware.

2019 – 2021

Cost Accountant — manufacturing

Costing, variance analysis, and the first scripts that turned manual exports into standing reports. Where the auditable-by-default habit started.

before

Computer science → Accounting

Started in CS, finished an accounting degree. The combination is the whole point: finance judgement with the engineering — now including applied AI — to back it.

Stack: SAP Business One · SQL · Python · Metabase · Ollama / local LLMs · RAG · workflow automation

Selected work

EXHIBIT · A–D
Local AI

On-prem document AI

A vision language model running on local hardware reads scanned invoices, extracts the header fields and line items, and checks the arithmetic — no document ever leaves the network.

Accounts-payable data captured offline; nothing sent to a cloud API.
Local AI

Ask your data in plain language

A self-hosted language model turns plain-English questions into read-only SQL over the ERP, so staff get answers without writing queries or touching the database.

Answers in seconds, read-only, on a model that never leaves the building.
Finance pipeline

Nightly SAP → reporting

Pulls from SAP Business One on a schedule, rebuilds the models, and refreshes every branch dashboard before the workday starts.

Numbers are ready by morning — no manual exports, no stale tabs.
Approval → ERP

Approval-to-posting with payment safeguards

Approved payments post straight into the ERP with Decimal-exact amounts and a mandatory human gate before any money moves.

Zero re-keying between approval and SAP; nothing posts twice.

Repos are private — walkthroughs on request.

Everything I build

CAPABILITIES

Two disciplines I own end to end — private AI on your own hardware, and the finance systems underneath — plus the engineering that ties them together, right down to local platforms for quantitative market research. Nothing here is theory; it's what I build, run and hand over.

BLUEPRINT 01

Your data never leaves the building

YOUR NETWORK Documents scanned · exported Local LLM on your hardware Answers OCR fields · SQL cloud API nothing leaves
BLUEPRINT 02

Approval → ERP, with a human gate on money

Approval requested Check · Decimal exact, no float Human gate ✓ person signs off SAP post into the ERP Payment advice supplier notified
BLUEPRINT 03

Ask your data in plain language

Plain-English question Local model on your hardware Read-only SQL generated Your ERP SAP Business One Answer in seconds
BLUEPRINT 04

A quant platform that stays on your machine

YOUR MACHINE Market data public feeds Local store prices · history Backtest engine + screeners Signals local dashboard Your broker you execute execution stays with you
EXHIBIT · BACKTESTSPY · QQQ · 2006–2026 · public price data
20082012201620202024100k startSPY · 2006–2026 20082012201620202024100k startQQQ · 2006–2026
SMA 50/200 crossoverBuy & holdlog scale · weekly closes
Sample output from a backtesting engine I built. A 50/200-day moving-average crossover against buy-and-hold on SPY and QQQ — twenty years of public price data, indexed to a notional 100k start. The point isn't the signal; here the crossover actually trails buy-and-hold. The point is that you can see, on your own machine, exactly how any rule would have behaved before a cent is at risk. Historical backtest on public market data — not a live account, not advice.
TRACK 01

On-prem & local AI

  • Local LLMs on your hardware — open-weight models (via Ollama), sized to the machine you already have.
  • Document AI & invoice OCR — a vision-language model reads scanned invoices offline, pulls header and line items, and checks the arithmetic.
  • Natural-language-to-SQL — plain-English questions become read-only queries over your ERP, no SQL required.
  • Retrieval over your own documents (RAG) — answers grounded in your files, with nothing uploaded anywhere.
  • Local semantic search — index documents and images for search that stays entirely in-house.
  • Model orchestration with guardrails — route work across local and API models behind hard rules that keep sensitive data from leaving.
TRACK 02

Finance systems & ERP

  • SAP Business One integration — Service Layer and HANA, read-only by default, writes deliberate, gated and logged.
  • Month-end close as a pipeline — reproducible, logged and re-runnable, not a manual checklist.
  • Approval-to-ERP posting — AP invoices and payments post into SAP with Decimal-exact amounts and a required human gate.
  • Payment advice — supplier notifications generated straight from the posted payment.
  • Controls & consolidation — multi-site reconciliation across branches, GST handled, an audit trail throughout.
  • Self-hosted BI — Metabase / DataEase dashboards refreshed on a schedule, running on your own servers.
TRACK 03

Local quant & market-data infrastructure

  • Market-data pipelines — price history and fundamentals pulled on a schedule and stored locally, with delisted names kept so survivorship bias doesn't flatter the results.
  • Backtesting engine — strategies validated and stress-tested with slippage and cost modelling, so a rule is beaten to death before it's ever trusted.
  • Screeners — VCP, CANSLIM, breadth and PEAD filters, plus custom factor screens, run on your own machine over your own universe.
  • Position sizing & risk tooling — rules-based sizing, exposure limits and a kill switch, computed locally and logged.
  • Local analysis dashboards — Metabase / DataEase views of signals, factors and market breadth, refreshed on a schedule.
  • Offline, and yours — the whole platform runs on your hardware; order execution stays with your own broker. Engineering, not stock-picking — no advice, no black box.
The engineering underneath
PythonpandasopenpyxlSQL modellingMetabaseDataEaseOllamaRAGvision-language OCRscheduled pipelinesapproval workflowsstatic site deploysbacktestingstrategy screenersmarket-data pipelinesposition sizingon-prem-firstread-only by defaultDecimal-exact moneyno stock-picking adviceNDA-friendly

AI rollout AI 落地 · 中小企业

SMALL COMPANIES · 01–03

For a company of 10 to 100 people. First get your files and know-how into one place, then let AI keep it up to date, then go through every job and see what AI can take over.

适合 10 到 100 人的公司。先把散在各人电脑和群里的资料归到一处,再让 AI 每天帮着更新,最后把每个岗位的活过一遍,看哪些可以交给 AI。

01 · KNOWLEDGE BASE

Company knowledge base

Files scattered across staff computers, chat groups and spreadsheets, sorted by department, role and business line into one knowledge base, in a tool you already use (Feishu, DingTalk, Notion or a plain local folder). When someone leaves, what they knew stays.

公司知识库 散在员工电脑、微信群、Excel 里的资料,按部门、岗位、业务分好,整理成一套知识库,用你们已经在用的工具(飞书、钉钉、Notion,或本地文件夹)。有人离职,资料留在公司。

1–3 weeks · 1–3 周 · Quoted after assessment · 评估后报价
02 · SELF-UPDATING

Self-updating knowledge base

AI connected to the knowledge base, so routine records update themselves: new hires added to the staff list, sales follow-up notes filed, meeting recordings turned into minutes and a task list.

让知识库自己更新 把 AI 接到知识库上,日常记录自己更新:新员工入职自动进花名册,销售跟进记录自动归档,会议录音自动出纪要和任务清单。

2–6 weeks · 2–6 周 · Quoted after assessment · 评估后报价
03 · COMPANY-WIDE

Company-wide review and build

Every department, role and daily task listed in one spreadsheet, each marked: automate, AI drafts and a person checks, or leave to people. Then we agree the order and build it in stages. What your best people do well is written into AI instructions the whole team can use.

全公司 AI 改造 把每个部门、每个岗位、每天的活列进一张表,逐项标上“直接自动化”“AI 起草、人来审”或“留给人做”,再商定先后,分批做出来。销售、运营里做得好的人的经验,写成全公司都能用的 AI 工作指引。

1–3 months, in stages · 1–3 个月,分阶段 · Quoted after assessment · 评估后报价

AI drafts, a person approves. Nothing pays, posts to the books or messages customers on its own. Where staff work is recorded, staff are told what is recorded and why, and the company signs off first.
AI 起草、人来确认;付款、记账、给客户发消息,一律不让程序自己做。要记录员工工作内容的,先经公司同意,并告诉员工记什么、为什么记。

What you receive and what to prepare →中文套餐详情 →

How I work

ENGAGEMENT · 01–04
01 · SCOPE

Understand the problem

A short call to see the systems, the data and the constraint — on‑prem only, air‑gapped, SAP in the way. I map what's actually needed before anything is built.

You get a written scope — what's in, what's out, and a rough shape of the work.
02 · PILOT

Prove it on a slice

A small, fixed piece first — one document type, one report, one pipeline — running on your hardware with your own or synthetic data, so the risk is low and the value is visible early.

You get a working pilot you can try, and an honest read on whether to go further.
03 · BUILD

Build it to run in production

The full thing, hardened: read‑only by default, Decimal‑exact money, a human gate before any payment, and every step logged — the way the Principles below describe.

You get the system in place, with the controls and logging built in.
04 · HAND OVER

Leave your team able to run it

Documentation, a runbook and a walkthrough, so the system isn't a black box. The code is yours.

You get docs, a runbook, and a team that can operate and change it.

Remote‑friendly · UTC +10 · comfortable owning both the models and the books.

START HERE

A feasibility pilot

the low‑risk way to begin

What's included

  • One slice — a single document type, report or pipeline
  • Running on your hardware, with your own or synthetic data
  • A written go / no‑go read on whether to build further
  • You keep the scope and whatever gets built

What it's not

  • The full production build
  • Several workflows at once
  • Any commitment to continue afterwards
A fixed fee, quoted once we pick the slice — priced to that one piece of work, not a running meter. Scope agreed in writing before we start; if the pilot doesn't earn the next step, we stop there.

Auditable Code

PRODUCTS

The systems I build, packaged for your team.

Reusable kits for both tracks — on-prem LLM starters that keep data in-house, and finance kits that ship with their own controls. Adopt what already works instead of rebuilding it.

On-prem LLM deployment starter
Document AI — offline invoice OCR
Natural-language-to-SQL over your ERP
Read-only SAP B1 integration starter
Month-end close as a pipeline

Four rules every system ships with.

HOW I BUILD · CONTROLS
01

Your data stays on your hardware

AI runs on-prem or air-gapped. No documents, books or prompts go to a third-party cloud unless you choose to.

02

Read-only by default

Source systems are read unless there is a deliberate, gated reason to write. SAP stays safe.

03

Decimal, never float

Money is computed with exact decimal arithmetic. Rounding is a decision, not an accident.

04

Humans approve money

Automation prepares and checks; a person signs off before any payment moves. Always.

Currently

/now
  • BUILDINGOn-prem AI for a finance team — document OCR and natural-language reporting that run on local hardware.
  • SHIPPINGA finance app on top of SAP Business One: approvals, AP invoices and payments posting back to SAP with safeguards.
  • WRITINGField notes on deploying LLMs privately, and on treating month-end close as software.
  • LEARNINGRAG and small open-weight models good enough to run entirely offline.

Last reconciled: Nov 2026 — this block gets updated, not archived.

Field notes

WRITING

Running an LLM entirely on-prem: what it costs, what it buys

When "the data cannot leave" is a hard requirement, local models stop being a compromise.

NOTE · DRAFT

Natural-language-to-SQL without handing your database to the cloud

Letting people ask questions in plain English while the model and the data both stay in-house.

NOTE · DRAFT

Month-end close as a pipeline, not a checklist

What changes when every step is reproducible, logged, and re-runnable.

NOTE · DRAFT

Drafts in progress — not published yet. Happy to walk through any of these, or share an early copy.

Open to work

STATUS · AVAILABLE

I'm open to the right role or a focused build in either track — standing up private AI for a team that can't send its data to the cloud, or owning the finance close and reporting the auditable way. Remote-friendly; comfortable owning both the models and the books.

We can work together as a short fixed-scope pilot, a larger build, or an ongoing / fractional arrangement — whichever fits the problem. Start small is usually the right answer.

Each is a fixed fee, quoted against a written scope once the shape of the work is clear — I give you one number after a short, no-obligation call, not an open-ended hourly meter.

BUILD
On-prem AI, scoped and shippedA private document-AI, a natural-language reporting layer, or an in-house LLM assistant.
ROLE
Finance systems / FP&A automationClose, controls, ERP integration, reporting — in-house or fractional.
FIT
Teams with data that can't leaveFinance, manufacturing & retail groups on SAP Business One feel like home.

Where I'm probably not the fit: if you want AI with no human in the loop on money, a rip‑and‑replace of your ERP, or a cloud‑only build where the data leaving the building isn't a concern — that's not the work I do, and I'll say so early and point you elsewhere if I can.

I take on a small number of builds at a time, so each one gets real attention.

One-page CV above — for a version tailored to your role, just ask.

Before you ask

FAQ
Does my data ever leave our network?
No — that's the point of the on‑prem track. The models run on your hardware, and documents, books and prompts stay inside your network. Nothing goes to a third‑party cloud API unless you specifically decide it should.
Can it run fully offline or air‑gapped?
Yes. Open‑weight models can run with no internet connection at all. I'll be straight about the trade‑offs up front — which models are good enough to run locally, and what you give up versus a frontier cloud model.
Who owns the code and models?
You do. Work I build for you is yours, delivered with documentation and a runbook so your team can operate and change it without me in the loop.
Will you sign an NDA?
Yes. Finance and ERP work means confidential data, and I treat it that way. Happy to sign your NDA before seeing anything sensitive.
What if the pilot doesn't work out?
The first piece is deliberately small and fixed in scope, so either of us can stop cheaply. Even if we don't go further, you keep the written scope and whatever was built — and an honest read on whether the idea is worth pursuing.
What are your hours and timezone?
I work remotely (UTC +10). For written, specific questions I usually reply within a day; for calls we'll find a window that overlaps your working hours.

Let's talk systems.

Want AI you can run on your own servers, or a finance system built the auditable way? I reply to specific questions fastest.