跳到正文
DEV Community· Hrijul Dey·· 53 分鐘前AI 評分51

研究用途病理模型生成嵌入向量,供小模型訓練而不進入產品環境

A model I am not allowed to ship still taught mine. Perfectly legally.

AI 導讀

作者以受研究用途授權限制的病理模型處理 100,000 張訓練圖像並保存嵌入向量,供小模型只依這些資料訓練。教師模型之後不再運行,也不接觸訪客圖像或進入產品環境;小模型在完整的 100,000 張圖像測試中達到 94.7%,訓練期間從未直接看過圖像。

正文

Hrijul Dey

There is a 307-million-knob pathology model that understands tissue better than anything I could train from scratch. I wanted my small model to learn from it.
One problem: its license says research only. No products. If my demo used it, the demo would be illegal.
So it never touches production. It only writes notes.

What a "note" is

Inside any model, an image becomes a list of numbers — a fingerprint of what the model noticed. Engineers call these embeddings. Plainer words: the big model reads the image once and writes down what it sees.
I ran all 100,000 training images through the big model exactly once and saved the notes to disk. That pass is resume-safe — if the machine dies at image 63,000, it continues at 63,001.
From then on, my small model trains entirely from the notes. The big model never runs again. It never touches a visitor's image. It ships nowhere.
A model I cannot legally ship can still legally teach.

The details that decide whether this works

  • Three signals, one dial. The student learns from the big model's final answers, from how confident it was, and from its internal notes — all scaled through one shared confidence dial so the numbers stay comparable. One dedicated test exists just to catch anyone confusing raw scores with proper probabilities, because that exact mistake trains confident nonsense.- The number. The small model reaches 94.7% on the full 100,000-image exam, having never seen a single image directly.## Why this pattern matters beyond my project Giant models are expensive to run and often legally fenced. Small models are cheap and shippable but start ignorant. Notes are the bridge: pay the giant's cost once, at build time. Then run the small thing forever. If you build with public models, remember: a license is not just a wall. It is an architecture hint. Live demo (runs on my own GPU): histogate.vercel.app · Weights and full measured results are public: huggingface.co/riju279/histogate · Everything else: github.com/hr1juldey/histogate

來源:DEV Community · dev.to