Publish a LoRA
Publishing serves a LoRA you trained to everyone on the coordinator as <base>#<name>, listed beside the base model with your account. Only the account that trained it publishes it.
What to set
You publish as the NEAR account that signed the run (see Your owner key). Give the key in one of its forms:
--near-credentials <file>: anear-clicredentials file, whoseprivate_keyised25519:<base58>.- Or
HOLONEAR_OWNER_ACCOUNT,HOLONEAR_OWNER_PUBKEYandHOLONEAR_OWNER_SECRET, the secret in that sameed25519:<base58>form (a bare 32-byte hex seed only withHOLONEAR_OWNER_SECRET_HEX=1).holonear chatnever signs in from them.
--to names the coordinator by its HTTP origin, such as https://coordinator.holonear.app; without it, the active target that holonear use set.
A LoRA trained in the desktop app belongs to the app's own account, which the CLI cannot sign as, so these commands do not publish it.
Where the handle and the identity come from
- The handle,
near://<job>/adapters/<name>:holonear trainprints it with each save (checkpoint <name>: near://… content_hash=…), and your own entry in/v1/modelscarries it assourcewhile the LoRA is deployed or published. A run's last save is<checkpoint name>-final,sft-finalby default. - The identity,
--content-hash: optional. It is thecontent_hashthattrainprints beside each save. Without it, publish takes the version your private deployed slot of that save serves, else the one its public slot serves, else the newest complete one. Publish prints the identity it took.
Publish
holonear publish near://<job>/adapters/<name> --name sql-helper --to https://coordinator.holonear.app --near-credentials ~/.near-credentials/mainnet/you.near.json
With the key in the environment, and a version named by its identity:
holonear publish near://<job>/adapters/<name> --name sql-helper --content-hash <identity> --to https://coordinator.holonear.app
It waits until the coordinator has copied the save and loaded it on a node, up to 18 minutes; when no node has room for it right now, it is published all the same and starts on first use. If the wait ends first, the publish may still complete: run the same command again, which answers the same LoRA and copies nothing twice.
A name is 1 to 64 characters of a-z, 0-9, ., _ and -, starts with a letter or digit, and has at least one letter. Publishing the same save under another of your names renames it in place.
What everyone sees
Anyone who uses the coordinator, signed in or not, chats with it as <base>#<name>, and /v1/models lists it to everyone with your account:
holonear chat --api https://coordinator.holonear.app --model '<base>#sql-helper'
- It is frozen at the version you published: more training does not change it. Publishing a newer version updates it, and ends everyone's requests in flight under it.
- It can repeat its training text. Publish only what you are willing to show anyone.
- It takes one of your eight LoRA slots on that model, and memory on the volunteers' machines that serve it: about 117 MB per serving replica for the 27B model at rank 8.
- A coordinator restart keeps it; a redeploy of its base model unpublishes it.
- If a restart cannot bring it back, it is quarantined: it serves no one and keeps its name. Unpublish it, then publish again or release the name.
- It earns you a royalty at the price you set, from the callers who pay (see Price and royalty).
Price and royalty
You may set a price, in micro-USD per 1M tokens for each class of token, from 0 to 100,000,000 ($100) each. It is 0 unless you set it, and each publish sets it again:
holonear publish near://<job>/adapters/sft-final --name sql-helper --price-input 200000 --price-cached-input 20000 --price-output 300000 --to https://coordinator.holonear.app --near-credentials ~/.near-credentials/mainnet/you.near.json
- A caller who pays is billed the base model's rate plus your price, and you accrue exactly your price as a royalty (scaled, as the bill is, by a Batch tier's multiplier).
/v1/modelslists it asask. - A request nobody pays for earns nothing. On a coordinator that requires no API key (the default), only a caller with an API key the operator minted is billed, so a chat in the dashboard or the app accrues no royalty. When the operator requires a key, a signed-in chat is billed too, and pays your price.
- Your own requests, signed in or with a key of your account, pay no price of yours (at most the base rate) and earn you nothing.
- A request already running when you change the price settles at the price it started with.
- A Batch line is billed at the lower of your price when its batch was accepted and your price when the line runs, and you accrue that lower price: a raised price applies to batches accepted after it, a lowered one at once.
- The royalty is a recorded balance; the operator reads it. Nothing is paid out while the network runs
genesis-points-only. Once payouts are armed it is paid to your NEAR account, which the contract must know as a node operator or as the asset's accepted owner.
Unpublish
holonear publish --unpublish '<base>#sql-helper' --to https://coordinator.holonear.app --near-credentials ~/.near-credentials/mainnet/you.near.json
It is no longer served to anyone, you included. To keep using it privately, deploy it with holonear serve <handle>. The name stays yours: no one else can publish under it.
Your names
Each name you publish under stays yours after an unpublish, a takedown and a redeploy of the base. You keep at most 8 names per model; at the cap, publish under one of them, or release one you no longer publish under:
holonear publish --release '<base>#sql-helper' --to https://coordinator.holonear.app --near-credentials ~/.near-credentials/mainnet/you.near.json
- A released name is anyone's at once: callers who still use
<base>#sql-helperreach whoever publishes under it next. - A name your LoRA is published under, or a quarantined one holds, is released only after you unpublish it. A bare
--release sql-helperworks while the coordinator serves one base model. - If the operator takes your LoRA down, its name and that save are blocked: no one publishes under the name, you included, you cannot publish that save under another name, and the blocked name still counts toward your 8. Only the operator lifts a block; then the name is yours again, to publish under or release.
- On a coordinator that verifies no accounts, names are first come and not kept, so there is nothing to release; a takedown there only unpublishes, except that it still blocks a name some account keeps.
near://<job>/weights/<name>, is still published over the coordinator's WebSocket, with its --content-hash required and a --visibility of its own; see holonear publish --help.