/ Модель

Характеристики

Контекст
40 960 токенов
Параметры
508 млн
Архитектура
qwen3 · dense
Базовая модель
Qwen3-0.6B
Библиотека
transformers
Опубликована
12 ноя 2026

Cooking-Qwen-Merged

Генерация текстаТекст → текст3 профессии

Небольшая дообученная на Qwen3 модель для ответов на кулинарные вопросы и помощи с рецептами.

105скачиваний за 30 дней0лайковвеса обновлены12 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Cooking-Qwen-Merged — специализированная языковая модель для кулинарных вопросов, разработанная Murphy Amos. Это причинная языковая модель на архитектуре Qwen3, дообученная на синтетических инструкциях с помощью LoRA и затем объединённая с базовыми весами. В метаданных указаны 507,9 млн параметров и контекст до 40 960 токенов; README приводит другие значения размера — около 597 млн параметров. Модель принимает текст и генерирует текст на английском языке.

Модель предназначена для объяснения рецептов и кулинарных техник, подбора количества ингредиентов, масштабирования рецептов, предложений замен и ответов на вопросы с опорой на внешний контекст рецептов. Для обучения использовались синтетические ответы Gemini, созданные с использованием RAG, и около 5,3 тыс. обучающих и оценочных примеров. Самостоятельная модель не включает описанную базу рецептов и не заменяет её поиск.

Модель может ошибаться в количествах, времени и температурах приготовления, а также выдавать правдоподобные, но неподтверждённые инструкции. Она не предназначена для рекомендаций по питанию, пищевой аллергии или безопасности продуктов; потенциально рискованные инструкции следует проверять. Лицензия в предоставленных данных не указана.

Сценарии применения

  • получение ответов на общие вопросы о приготовлении еды
  • объяснение шагов рецепта и кулинарных техник
  • оценка количества ингредиентов и масштабирование рецепта
  • поиск возможной замены ингредиента
  • получение рекомендаций для начинающих кулинаров
  • ответы на вопросы по рецептам с предоставленным контекстом

Ограничения

Модель может ошибаться в количестве ингредиентов, времени и температуре, а также генерировать неподтверждённые инструкции; она не прошла всестороннюю оценку на незнакомых рецептах. Не используйте её как авторитетный источник по пищевой безопасности, аллергиям или питанию.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Cooking-Qwen-Merged

A small, specialized cooking language model fine-tuned using synthetic instruction data, knowledge distillation, and Low-Rank Adaptation (LoRA).

Overview

Cooking-Qwen-Merged is a fine-tuned Qwen language model designed to answer cooking questions, explain recipes, identify ingredient quantities, and provide preparation guidance.

The goal of this project was straightforward: build and fine-tune a functional cooking assistant within a single weekend.

Rather than training a language model from scratch, the project uses a pretrained Qwen model and a teacher–student knowledge distillation pipeline to generate specialized training data.

A larger language model was provided with relevant recipe information retrieved from a vector database. Its generated answers were then used to fine-tune the smaller model using LoRA.

The resulting model contains approximately 597 million parameters, with fewer than 0.2% updated during fine-tuning.

Model Details

PropertyDescription
DeveloperMurphy Amos
Hugging Faceburpi
Model typeCausal language model
ArchitectureQwen3
Base modelQwen3-0.6B
Parameters597,196,800
LanguageEnglish
SpecializationCooking and recipe question answering
Fine-tuning methodSupervised fine-tuning with LoRA
Training frameworkPyTorch, Transformers, PEFT
DistributionMerged model weights
LicensePending verification of base model and dataset licenses

Project Objective

The objective was to develop a small, domain-specific cooking assistant over a weekend using existing open-source machine learning tools.

The project involved building a data-generation pipeline, generating thousands of cooking-related questions, using a larger teacher model to produce training responses, and fine-tuning a smaller Qwen model.

The focus was on delivering a working model rather than conducting a formal research experiment.

Intended Uses

Cooking-Qwen-Merged is intended for:

  • Answering general cooking questions.
  • Explaining recipe instructions and preparation methods.
  • Identifying ingredients and their quantities.
  • Suggesting ingredient substitutions.
  • Explaining cooking techniques.
  • Assisting with recipe scaling.
  • Providing beginner-friendly cooking guidance.
  • Answering questions using externally retrieved recipe context.

Out-of-Scope Uses

The model is not intended to replace professional advice regarding nutrition, food allergies, or food safety.

Generated cooking instructions should be independently verified when incorrect information could create a safety risk.

How to Use

Install the required dependencies:

pip install torch transformers accelerate

Load the merged model from Hugging Face:

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "burpi/Cooking-Qwen-Merged"

tokenizer = AutoTokenizer.from_pretrained(model_id)

model = AutoModelForCausalLM.from_pretrained(
    model_id,
    dtype=torch.float32
)

model.eval()

question = "How do I cook a steak on the stove?"

messages = [
    {
        "role": "system",
        "content": "You are a cooking assistant. Answer cooking questions clearly and accurately."
    },
    {
        "role": "user",
        "content": question
    }
]

prompt = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True
)

inputs = tokenizer(prompt, return_tensors="pt")

with torch.no_grad():
    outputs = model.generate(
        **inputs,
        max_new_tokens=256,
        do_sample=False,
        pad_token_id=tokenizer.eos_token_id
    )

response = tokenizer.decode(
    outputs[0][inputs["input_ids"].shape[1]:],
    skip_special_tokens=True
)

print(response)

This example assumes the repository contains the merged model weights and tokenizer files.

The model can also be combined with a retrieval system to supply recipe-specific information during inference.

Training Methodology

Dataset and Question Generation

The project began with a structured recipe dataset containing ingredients, quantities, cooking instructions, and other recipe information.

Using ChatGPT Astra, a collection of ~5,000 cooking-related questions was generated based on the dataset.

These questions covered ingredient measurements, cooking techniques, preparation instructions, recipe scaling, substitutions, dietary modifications, and troubleshooting.

Synthetic Response Generation Using Gemini and RAG

The generated questions were then processed through a Retrieval-Augmented Generation (RAG) pipeline using Google Gemini as the teacher language model.

For each question, the pipeline:

  1. Queried a vector database containing recipe information.
  2. Retrieved relevant recipe context.
  3. Supplied the question and retrieved context to Gemini.
  4. Generated a cooking-related answer grounded in the retrieved information.
  5. Stored the resulting question–answer interaction for fine-tuning.

This produced synthetic conversational training data based on the original recipe dataset.

Student Model Fine-Tuning

The generated question–answer interactions were used to fine-tune a pretrained Qwen3-0.6B causal language model.

Fine-tuning was performed using Low-Rank Adaptation (LoRA) through Hugging Face PEFT, updating approximately 0.192% of the model's parameters.

The objective was to transfer cooking-specific response behavior from Gemini-generated examples into a smaller Qwen model capable of running independently.

Training Dataset

The training logs reported the following split:

DatasetExamples
Training4,270
Evaluation1,068
Total5,338

The original question-generation collection contained 5,000 questions. The reported example counts are taken from the training logs and have not been reconciled with the question count.

Pipeline Summary

Recipe Dataset → Astra (Question Generation) → Gemini + RAG (Response Generation) → Synthetic Question–Answer Dataset → Qwen (LoRA Fine-Tuning) → Merged Cooking Model

Parameter-Efficient Fine-Tuning

Low-Rank Adaptation (LoRA) was used to update a small subset of the model's parameters.

Training propertyValue
Total parameters597,196,800
Trainable parameters1,146,880
Trainable proportion0.192%
Initial learning rateApproximately 0.0002
Training stepsApproximately 2,150
Training approachLoRA / PEFT
Optimization objectiveSupervised next-token prediction

LoRA adapters were applied to selected attention projection layers, including query and value projections.

The trained adapter was subsequently merged with the pretrained model weights.

Training Performance

The model was fine-tuned for approximately 2,150 optimization steps using LoRA and a linearly decaying learning-rate schedule.

Training and Evaluation Curves

Training and evaluation loss with learning-rate schedule

The graph shows:

  • Raw training loss.
  • Smoothed training loss.
  • Evaluation loss at recorded checkpoints.
  • Learning-rate decay throughout training.

Training Metrics

MetricApproximate value
Initial recorded training loss3.17
Final training loss1.40
Final evaluation loss1.41
Training-loss reduction56%
Initial learning rate0.0002
Final learning rateApproximately 0
Optimization stepsApproximately 2,150
Learning-rate scheduleLinear decay

Training Observations

Initial convergence: Training loss decreased rapidly during the first 200–300 optimization steps, indicating substantial early adaptation to the cooking instruction dataset.

Continued optimization: Loss decreased more gradually throughout the remaining training process, stabilizing around 1.35–1.45.

Evaluation performance: Evaluation loss remained approximately 1.4 at the recorded evaluation checkpoints. The relatively small difference between training and evaluation loss suggests no obvious severe overfitting at those checkpoints, although further testing is necessary.

Learning-rate behavior: The learning rate decreased approximately linearly from 2 × 10⁻⁴ to zero across the training run.

Interpretation

The results demonstrate that the LoRA fine-tuning process reduced the model's next-token prediction loss on the cooking instruction dataset.

These measurements establish training convergence but do not independently verify cooking accuracy, factual reliability, or improvement over the original pretrained model.

Evaluation Status

The model has undergone preliminary interactive testing with cooking-related questions.

A comprehensive independent benchmark comparing the pretrained and fine-tuned models has not yet been completed.

Future evaluations may measure:

  • Ingredient quantity accuracy.
  • Factual answer accuracy.
  • Cooking instruction correctness.
  • Hallucination frequency.
  • Performance on unseen recipes.
  • Standalone versus retrieval-augmented performance.

Limitations

Cooking-Qwen-Merged has several limitations:

  • The model may generate incorrect ingredient quantities, cooking times, or temperatures.
  • It may produce plausible but unsupported cooking instructions.
  • Synthetic training data may contain errors inherited from the teacher model or retrieval pipeline.
  • Some generated training questions contain formatting or measurement inconsistencies.
  • The model has not been comprehensively evaluated on unseen recipes.
  • Fine-tuning does not guarantee memorization of the complete recipe database.
  • Retrieval augmentation may improve performance on questions requiring exact recipe information.

The model should be treated as a cooking assistant rather than an authoritative recipe database.

Technical Architecture

The model is based on a pretrained Qwen causal language model.

Its development used:

  • PyTorch: Model execution and optimization.
  • Hugging Face Transformers: Model loading and training.
  • PEFT: Parameter-efficient fine-tuning.
  • LoRA: Low-rank weight adaptation.
  • Vector database: Recipe retrieval during synthetic data generation.
  • Teacher language model: Generation of supervised training responses.

After fine-tuning, the LoRA adapter was merged into the base model for deployment.

Future Improvements

Potential improvements include:

  1. Benchmarking the fine-tuned model against the original Qwen model.
  2. Improving the quality and consistency of synthetic training examples.
  3. Testing generalization on recipes excluded from training.
  4. Quantizing the model to reduce memory requirements.
  5. Comparing standalone inference with retrieval-augmented inference.
  6. Integrating the model into a cooking assistant application.

Project Background

Cooking-Qwen-Merged was developed as an independent weekend machine learning project.

The project demonstrates a practical workflow for creating a specialized language model using retrieval-grounded synthetic data, teacher–student distillation, and parameter-efficient fine-tuning.

It is an engineering project rather than a peer-reviewed research publication.

Citation

Amos, M. (2026). Cooking-Qwen-Merged: A Small Cooking Language Model Fine-Tuned with Synthetic Instruction Data and LoRA. Hugging Face.

https://huggingface.co/burpi/Cooking-Qwen-Merged

Author

Murphy Amos

AI Software Engineer | Computer Game Development Undergraduate

GitHub | Hugging Face

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3ForCausalLM
Ревизия весов
bcd1229

0 моделей