Repository navigation
Train your own model on your local machine #33233
Stanleytowne
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi all. We have been building IPL (In-Parameter Learning) at Norizon, and since the local half of it runs entirely on llama.cpp, this seemed like the right place to show it.
The idea. Normally a model learns about your document in one of two ways: you put it in the prompt (RAG, long context), or you fine-tune on it. IPL does a third thing. A hypernetwork reads the text and directly outputs a set of LoRA weights for the base model. There is no per-document training run: generating the parameters takes only a few seconds.
After that the document is in the weights. You ask questions with an empty context: no system prompt, no retrieved chunks, no source text sent along.
What it looks like on llama.cpp
You get one file,
dynamic_params.gguf(tens of MB), which is an ordinary LoRA adapter in GGUF. Put it next to the matching base and:Then open
http://127.0.0.1:8080and just ask. Nothing contacts our site again; it also works through the OpenAI-compatible API, so Open WebUI, Cherry Studio, Chatbox and the like can use it as they would any local model.The 4B model runs comfortably on a laptop. No patches to llama.cpp are needed: the stock
brew install llama.cppor a release binary is enough (we verified everything against b12359).What you can do with it
A single text can be up to 1M characters.
Things to know before you try
Q8_0is closer thanQ4_K_M.llama-serveranswers from whatever was given to--loraat start.There is also a Transformers/PEFT path for NVIDIA GPUs, and an OpenAI-compatible hosted API (
POST /parameterswith a text, then chat with the returned id) if you want to script it.Trying it
IPL is invitation-only for now, while we find out how much GPU the generation side needs. If you would like to try it, join the waitlist and tell us in a sentence or two what you want to do with it:
https://ipl.norizon.ai/waitlist
Mentioning llama.cpp there helps us spot you. The step-by-step local guide (base downloads, commands for macOS/Linux/Windows) is on the site once you are signed in.
We would be glad to hear feedbacks. Happy to answer questions about how it works in this thread.
All reactions