/ Модель

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

Контекст
16 384 токена
Параметры
14,1 млрд
Размер весов
29,3 ГБ
Лицензия
MIT
Архитектура
llama · dense
Базовая модель
phi-4
Библиотека
transformers
Опубликована
10 янв 2025

Phi-4-QwQ

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

Дообученная на базе Phi-4 языковая модель для диалогов, пошаговых рассуждений и решения сложных задач.

44скачиваний за 30 дней11лайковвеса обновлены11 янв 2025

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

  • MATH Lvl 5

    MATH Lvl 5 Raw · выше — лучше

    Результат

    0,4577

    Open LLM v2 · архив

    Публичная таблицаревизия совпадает

  • GPQA

    GPQA Raw · выше — лучше

    Результат

    0,3909

    Open LLM v2 · архив

    Публичная таблицаревизия совпадает

  • BBH

    BBH Raw · выше — лучше

    Результат

    0,6696

    Open LLM v2 · архив

    Публичная таблицаревизия совпадает

  • MUSR

    MUSR Raw · выше — лучше

    Результат

    0,4651

    Open LLM v2 · архив

    Публичная таблицаревизия совпадает

  • MMLU-PRO

    MMLU-PRO Raw · выше — лучше

    Результат

    0,5275

    Open LLM v2 · архив

    Публичная таблицаревизия совпадает

  • IFEval

    IFEval Raw · выше — лучше

    Результат

    0,0559

    Open LLM v2 · архив

    Публичная таблицаревизия совпадает

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

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

Phi-4-QwQ — дообученная на базе Microsoft Phi-4 языковая модель для диалогов и генерации текста с акцентом на пошаговое рассуждение и ответственное решение задач. Модель содержит 14,1 млрд параметров, использует плотную архитектуру и доступна в формате safetensors для библиотеки Transformers; заявленный контекст — 16 384 токена.

Модель предназначена для разложения сложных задач на этапы, логических и математических рассуждений, объяснений, учебного сопровождения, написания текстов и диалоговых помощников. В README описано дообучение методами SFT и DPO на синтетических и отфильтрованных данных. Карточка заявляет многоязычные возможности, однако метаданные указывают только английский язык.

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

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

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

Ограничения

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

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

3.png

Phi-4-QwQ [ Responsible Problem Solving & Advanced Reasoning ]

[Phi-4-QwQ finetuned] from Microsoft's Phi-4 is a state-of-the-art open model developed with a focus on responsible problem solving and advanced reasoning capabilities. Built upon a diverse blend of synthetic datasets, carefully filtered public domain websites, and high-quality academic books and Q&A datasets, Phi-4-QwQ ensures that small, capable models are trained with datasets of exceptional depth and precision.

Phi-4-QwQ adopts a robust safety post-training approach using open-source and in-house synthetic datasets. This involves a combination of SFT (Supervised Fine-Tuning) and iterative DPO (Direct Preference Optimization) techniques, ensuring helpful and harmless outputs across various safety categories.


Dataset Info

Phi-4-QwQ is fine-tuned on a carefully curated synthetic dataset generated using an advanced pipeline optimized for Chain of Thought (CoT) reasoning and Responsible Problem Breakdown (RPB) methodologies. This ensures that the model excels at:

  • Logical reasoning
  • Step-by-step problem-solving
  • Breaking down complex tasks into manageable parts

The dataset also emphasizes responsible decision-making and fairness in generating solutions.


Run with Transformers

# pip install accelerate
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

tokenizer = AutoTokenizer.from_pretrained("prithivMLmods/Phi-4-QwQ")
model = AutoModelForCausalLM.from_pretrained(
    "prithivMLmods/Phi-4-QwQ",
    device_map="auto",
    torch_dtype=torch.bfloat16,
)

input_text = "Explain the concept of black holes."
input_ids = tokenizer(input_text, return_tensors="pt").to("cuda")

outputs = model.generate(**input_ids, max_new_tokens=64)
print(tokenizer.decode(outputs[0]))

For chat-style interactions, use tokenizer.apply_chat_template:

messages = [
    {"role": "user", "content": "Explain the concept of black holes."},
]
input_ids = tokenizer.apply_chat_template(messages, return_tensors="pt", return_dict=True).to("cuda")

outputs = model.generate(**input_ids, max_new_tokens=256)
print(tokenizer.decode(outputs[0]))

Intended Use

Phi-4-QwQ is tailored for a wide range of applications, especially those involving advanced reasoning, multilingual capabilities, and responsible problem-solving. Its primary use cases include:

  1. Responsible Problem Solving

    • Breaking down complex problems into logical, actionable steps.
    • Offering ethical, well-rounded solutions in academic and professional contexts.
  2. Advanced Reasoning Tasks

    • Excelling in mathematics, logic, and scientific reasoning.
    • Providing detailed explanations and systematic answers.
  3. Content Generation

    • Assisting in generating high-quality content for various domains, including creative writing and technical documentation.
    • Supporting marketers, writers, and educators with detailed and well-structured outputs.
  4. Educational Support

    • Acting as a virtual tutor for students by generating practice questions, answers, and detailed explanations.
    • Helping educators design learning material that promotes critical thinking and step-by-step problem-solving.
  5. Customer Support & Dialogue Systems

    • Enabling chatbots and virtual assistants to provide accurate, helpful, and responsible responses.
    • Enhancing customer service with reasoning-driven automation.
  6. Multilingual Capabilities

    • Supporting multilingual communication and content generation while maintaining contextual accuracy.
    • Assisting in translations with a focus on retaining meaning and nuance.
  7. Safety-Critical Applications

    • Ensuring safe and harmless outputs, making it suitable for sensitive domains.
    • Providing aligned interactions with human oversight for critical systems.

Limitations

Despite its strengths, Phi-4-QwQ has some limitations that users should be aware of:

  1. Bias and Fairness

    • While great effort has been made to minimize biases, users should critically assess the model’s output in sensitive scenarios to avoid unintended bias.
  2. Contextual Interpretation

    • The model may occasionally misinterpret highly nuanced prompts or ambiguous contexts, leading to suboptimal responses.
  3. Knowledge Cutoff

    • Phi-4-QwQ’s knowledge is static and based on the data available at the time of training. It does not include real-time updates or information on recent developments.
  4. Safety and Harmlessness

    • Despite post-training safety alignment, inappropriate or harmful outputs may still occur. Continuous monitoring and human oversight are advised when using the model in critical contexts.
  5. Computational Requirements

    • Deploying Phi-4-QwQ efficiently may require substantial computational resources, particularly for large-scale deployments or real-time applications.
  6. Ethical Considerations

    • Users are responsible for ensuring that the model is not employed for malicious purposes, such as spreading misinformation, generating harmful content, or facilitating unethical behavior.
  7. Domain-Specific Expertise

    • While the model is versatile, it may not perform optimally in highly specialized domains (e.g., law, medicine, finance) without further domain-specific fine-tuning.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей