Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Fixing the Extra-Ingredient Problem in MiniChefGPT: Which Model Should We Use?

说明与用途

MiniChefGPT 生成的食谱包含用户未提供的食材。建议用 SmolLM2‑360M‑Instruct 替换模型,使用 LoRA 微调并采用受限解码,以降低额外食材出现率。

问题

MiniChefGPT generates recipes that include ingredients not provided by the user, reducing recipe relevance.

结果

The plan is to replace the from‑scratch model with SmolLM2‑360M‑Instruct fine‑tuned via LoRA, add constrained decoding, and measure improvement via coverage and extra‑ingredient rate. Success will be confirmed when extra‑ingredient rate drops on held‑out lists.

工作流

  • 1. Convert recipe CSV into instruction examples: "Use only these ingredients: … Write a title and steps."
  • 2. Fine‑tune SmolLM2‑360M‑Instruct with LoRA on the same training split.
  • 3. Generate recipes using a banned‑word list derived from training food words minus allowed pantry staples.
  • 4. Evaluate coverage and extra‑ingredient rate on held‑out lists and custom tests.

证据

We gave the app four ingredients: chicken, garlic, onion and tomato. It returned a recipe titled "chicken soup" whose steps use broccoli, rice, chicken broth and noodles.

来源

On four custom ingredient lists, the generated recipes mention 56% of the requested ingredients on average. On 12 held‑out ingredient lists the figure is 27%.

来源

I would replace our from‑scratch model with SmolLM2‑360M‑Instruct, fine‑tuned on our recipes with LoRA.

来源

In fp16, 360 million parameters take about 0.7 GB (parameters times 2 bytes), which fits easily on a free Colab T4 with 16 GB.

来源

  • 记录日期: 2026-10-26T13:11:26.710Z