Product Updates Hugging Face Blog

The model that didn't exist, so you made it yourself

ML InternHuggingChatdistillationHugging Face Hub

The author wanted a small version of the prompt rewriter that ships with Qwen-Image 2.1, but the official one is a 9B model requiring about 20 GB of memory and spending thousands of tokens of reasoning before writing a single paragraph. The Hub only offered compressed copies of that same 9B model, so the author described the desired model to ML Intern and received a 0.8B version the next day that runs on a CPU. It returns valid output 99.7% of the time and uses roughly a quarter of the teacher's tokens, with total project compute — including having the 9B model label 8,797 example requests — costing USD 16.

Over the following days the author built five more models the same way. Each project began as a message in HuggingChat with ML-intern switched on and ended as a public model on the Hub with its evaluation documented in the model card. ML-intern plans the work, asks for a budget before spending anything, runs a small test before the real job, then trains, evaluates, and publishes on Hugging Face hardware.

Most of the author's effort goes into the first message. The initial prompt for the citrus model was about 450 words; by the sixth project it was closer to 2,000, as each project revealed something to carry into the next. All seven prompts are public on GitHub at yvrjsharma/ml-intern-prompts. A prompt opens with the idea in one line and the motivation, then names the exact pieces: dataset, base model, and training script. Anything already checked goes under a heading literally titled "Verified facts, do not re-derive," so the agent spends its budget on the work rather than rediscovering known information — for the camera-angle LoRA, that section listed which trainer had just added transparent-image support and which open GitHub issues made the fallback trainer risky. Two lines are described as critical: the first requests a baseline before any training (the citrus prompt reads, "Also report the base model's zero-shot score on the same metric before training so we can see the gain"), without which you get a trained model with no idea whether it beats the starting point; the second is a smoke test with a check attached, such as asking for 50 training steps on the image LoRAs and then verifying the saved weights actually changed before paying for the full run.

The prompt closes with expected deliverables and a cost limit: what belongs in the model card, plus an instruction like "Cap total spend at USD 12 and ask me before exceeding it." Because ML-intern starts every task with a zero-dollar budget and needs permission before executing paid jobs, the spending limit is strictly enforced; if no budget is given, the agent proposes a couple of paths depending on project size and asks which is preferred. Not all of this is needed on a first attempt — the author notes the citrus brief lacked the verified-facts section.

Read original →

← Back to home