/ Модель

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

Контекст
2 048 токенов
Параметры
1 млрд
Размер весов
2,2 ГБ
Лицензия
Apache 2.0
Архитектура
llama · dense
Базовая модель
TinyLlama_v1.1
Опубликована
19 сен 2024

TinyLlama_V1.1_Tree_of_thoughts

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

Компактная дообученная TinyLlama для пошагового решения задач с перебором вариантов и самокоррекцией.

164скачиваний за 30 дней14лайковвеса обновлены19 сен 2024

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Tree of Thoughts with Self-Correction — дообученная Terrance Craddock модель TinyLlama 1.1B семейства Llama на базе Transformer. Она предназначена для генерации текста с пошаговым разбором задач: модель может рассматривать несколько вариантов решения и корректировать ход рассуждений. В карточке заявлены сценарии многошагового решения логических задач, планирования, выбора стратегии в играх и исследования механизмов самокоррекции ИИ.

Модель содержит около 1 млрд параметров, использует архитектуру LlamaForCausalLM и принимает текст, выдавая текст. Метаданные указывают английский язык и контекст до 2048 токенов. Компактный размер облегчает запуск при ограниченных вычислительных ресурсах, однако модель может ошибаться в глубоких рассуждениях и специализированных областях; результаты самокоррекции и заявленное улучшение точности требуют независимой проверки. Лицензия — Apache-2.0.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Tree of Thoughts with Self-Correction (TinyLlama 1.1b Fine-Tuned)

Model Name: Tree of Thoughts - TinyLlama 1.1b with Self-Correction
Model Version: v1.0
Base Model: TinyLlama 1.1b
Model Type: Transformer-based Language Model
License: apache-2.0

Overview

The Tree of Thoughts (ToT) with Self-Correction model is a fine-tuned version of the TinyLlama 1.1b, designed to enhance problem-solving abilities. It integrates a step-by-step reasoning process, similar to how humans think through decisions, allowing the model to explore multiple solution paths (branches) at each step. The added self-correction capability enables the model to reflect on its choices and adjust its reasoning when it detects errors, resulting in more accurate and reliable outputs.

Model Description

  • Architecture: TinyLlama 1.1b is a compact version of the Transformer architecture optimized for performance with a reduced parameter size of 1.1 billion parameters, making it suitable for a range of tasks without requiring large computational resources.

  • Fine-Tuning Objective: The fine-tuning process focused on implementing the Tree of Thoughts approach, where the model iteratively explores different decision branches, and integrates a self-correction mechanism that helps it refine its reasoning when suboptimal outcomes are detected.

  • Self-Correction Mechanism: After each reasoning step, the model evaluates whether its prior thought process has led to incorrect or suboptimal solutions, then adjusts its trajectory. This reduces the likelihood of compounding errors and improves the robustness of its predictions.

Use Cases

  • Complex Problem Solving: Ideal for tasks that require multi-step reasoning or decision-making, such as game strategy, planning, or logical problem solving.

  • AI Research: Can be used to simulate how AI models can break down decisions, improve autonomous agent decision-making, and test self-correction in AI.

Training Data

  • Pretraining: TinyLlama 1.1b was pretrained on a mixture of open-domain datasets, including web pages, technical documentation, and conversational datasets, covering a broad range of topics.

  • Fine-Tuning Data: The fine-tuning process involved datasets designed to teach structured, stepwise problem-solving and decision-making, as well as self-correction tasks from domains such as programming, logic puzzles, and strategic games.

Performance

  • Benchmarking: The model has demonstrated superior performance in tasks requiring multi-step reasoning compared to standard LLMs of similar size, with the added benefit of self-correction improving accuracy by an estimated 15-20%.

  • Efficiency: Thanks to TinyLlama’s compact architecture, the model achieves competitive performance while requiring less computational overhead compared to larger models.

Limitations

  • Memory and Context Limitations: Due to the relatively smaller size (1.1b parameters), the model may struggle with tasks requiring extensive context or very deep logical reasoning.

  • Error in Highly Specialized Domains: While self-correction reduces errors in general tasks, in highly specialized fields (e.g., niche scientific research), the model may still need additional fine-tuning.

Ethical Considerations

  • Bias: Although fine-tuned with a self-correction mechanism, biases from the pretraining data could still influence the model’s outputs. Further work is needed to ensure that the model actively mitigates such biases.

  • Misuse: This model is intended for educational, research, and problem-solving applications. It should not be used for tasks that require critical safety measures, like medical diagnosis or legal advice, without further validation.

How to Use

from transformers import TextStreamer
from unsloth import FastLanguageModel

max_seq_length = 2048
dtype = None
load_in_4bit = False

alpaca_prompt = """Provide a helpful and informative response to the following prompt.

### Prompt:
{}

### Response:
{}"""

prompt = "Explain the concept of limits in calculus and their importance. Provide an example of how limits are used to define other calculus concepts."

model, tokenizer = FastLanguageModel.from_pretrained(
    model_name="TinyLlama_Tree_of_thoughts",
    max_seq_length=max_seq_length,
    dtype=dtype
)

FastLanguageModel.for_inference(model)
inputs = tokenizer(
    [alpaca_prompt.format(prompt, "")],
    return_tensors="pt"
).to("cuda").to(dtype)

# Generate text
text_streamer = TextStreamer(tokenizer)
_ = model.generate(**inputs, streamer=text_streamer, max_new_tokens=2000)

Output From Model

<s> Provide a helpful and informative response to the following prompt.

### Prompt:
Explain the concept of limits in calculus and their importance. Provide an example of how limits are used to define other calculus concepts.

### Response:
<thinking>
1. To begin, I'll identify the key concepts involved in the question. Limits are mathematical concepts that describe the behavior of a function as it approaches a specific value or limit. The question is asking about the importance of limits in calculus, which implies that I need to understand the significance of limits in the context of calculus.

2. To better understand the concept of limits, I'll break it down into smaller sub-questions:
  a. What are the types of limits that can be defined in calculus?
  b. How do limits relate to the concept of continuity?
  c. What are the limitations of limits in calculus?

3. Let's explore each sub-question in detail:
  a. Types of limits: There are several types of limits that can be defined in calculus, including:
     i. Limit of a function at a point (e.g., the limit of a function at a point with a specific value).
     ii. Limit of a function at a sequence (e.g., the limit of a function at a sequence of points).
     iii. Limit of a function at a limit (e.g., the limit of a function at a limit).

  b. Relationship between limits and continuity: Limits are related to continuity in calculus. Continuity is the property of a function to be continuous everywhere. Limits are used to define the limits of functions at points where continuity is not continuous.

  c. Limits limitations: Limits can be difficult to define in calculus due to the complexity of the function and the difficulty of finding a unique limit. This is because limits are defined by the limiting behavior of the function at the limit. However, there are some simplifications that can be made. For example, if the function is continuous at a point, then the limit of the function at that point is the limit of the function at the point.

4. Now, I'll integrate the insights from the sub-questions to form a coherent answer:
  The concept of limits is crucial in calculus because it allows us to define the limits of functions at points where continuity is not continuous. Limits are used to define the limits of functions at points where continuity is not continuous. This is because limits are defined by the limiting behavior of the function at the limit.

</thinking>

<preoutput>
The concept of limits is crucial in calculus because it allows us to define the limits of functions at points where continuity is not continuous. Limits are used to define the limits of functions at points where continuity is not continuous. This is because limits are defined by the limiting behavior of the function at the limit.
</preoutput>

<checking>
Upon reviewing my response, I noticed that I didn't provide a specific example of how limits are used to define other calculus concepts. To improve my answer, I can provide an example of how limits are used to define the derivative of a function.

</checking>

<output>
The concept of limits is crucial in calculus because it allows us to define the derivatives of functions at points where continuity is not continuous. Limits are used to define the derivatives of functions at points where continuity is not continuous. This is because limits are defined by the limiting behavior of the function at the limit. For example, if the function is continuous at a point, then the derivative of the function at that point is the limit of the function at the point.
</output></s>

Model Details

  • Developed By: Terrance Craddock
  • Contact Information: Please feel free to contact me via the community tab here on HuggingFace
  • HF Username: terrycraddock

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей