/ Модель

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

Контекст
8 192 токена
Параметры
134 млн
Лицензия
Apache 2.0
Архитектура
llama · dense
Базовая модель
SmolLM2-135M-Instruct
Библиотека
transformers
Опубликована
17 фев 2025

SmolLM2_135M_Grpo_Gsm8k

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

Компактная англоязычная модель, дообученная на GSM8K для генерации текста и решения математических задач.

35скачиваний за 30 дней9лайковвеса обновлены17 фев 2025

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

SmolLM2_135M_Grpo_Gsm8k — компактная языковая модель с 134,5 млн параметров, созданная разработчиком prithivMLmods дообучением HuggingFaceTB/SmolLM2-135M-Instruct методом GRPO на наборе задач GSM8K. Она использует плотную архитектуру Llama и предназначена прежде всего для генерации текста и решения математических задач в формате вопросов и ответов. Модель принимает текст и выдаёт текст; карточка указывает поддержку английского языка и контекст до 8192 токенов.

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

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

czxbzdxfcv.png

SmolLM2_135M_Grpo_Gsm8k

SmolLM2_135M_Grpo_Gsm8k is fine-tuned based on SmolLM2-135M-Instruct. SmolLM2 demonstrates significant advances over its predecessor, SmolLM1, particularly in instruction following, knowledge, and reasoning. The 135M model was trained on 2 trillion tokens using a diverse combination of datasets: FineWeb-Edu, DCLM, The Stack, along with new filtered datasets that we curated and will release soon. We developed the instruct version through supervised fine-tuning (SFT) using a combination of public datasets and our own curated datasets.

download.png

SmolLM2 135M Grpo Fine-tuning

ResourceLink
Fine-tuning ScriptSmolLM_x_Grpo.ipynb
Fine-tuned ModelSmolLM2_135M_Grpo_Gsm8k
Fine-tuned CheckpointSmolLM2_135M_Grpo_Checkpoint

How to use

Transformers

pip install transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
checkpoint = "prithivMLmods/SmolLM2_135M_Grpo_Gsm8k"

device = "cuda" # for GPU usage or "cpu" for CPU usage
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
# for multiple GPUs install accelerate and do `model = AutoModelForCausalLM.from_pretrained(checkpoint, device_map="auto")`
model = AutoModelForCausalLM.from_pretrained(checkpoint).to(device)

messages = [{"role": "user", "content": "What is gravity?"}]
input_text=tokenizer.apply_chat_template(messages, tokenize=False)
print(input_text)
inputs = tokenizer.encode(input_text, return_tensors="pt").to(device)
outputs = model.generate(inputs, max_new_tokens=50, temperature=0.2, top_p=0.9, do_sample=True)
print(tokenizer.decode(outputs[0]))

Limitations of SmolLM2_135M_Grpo_Gsm8k

  1. Model Size: The model is based on the 135M parameter size, which, while powerful, still limits its ability to handle extremely complex tasks or long-context dependencies compared to larger models. It may struggle with tasks requiring deep understanding of intricate details or long-range reasoning.

  2. Bias and Inaccuracy: Although fine-tuned on diverse datasets, the model may still generate biased, inaccurate, or factually incorrect responses. This can occur especially when the model is asked to make inferences outside its training data scope or when responding to questions that require specialized knowledge beyond its token budget.

  3. Context Length: Due to the model's parameter count and token limitations, it may struggle with handling very long conversations or contexts that exceed its processing capacity, potentially leading to truncation or incomplete answers.

  4. Fine-Tuning Specificity: While fine-tuned on curated datasets, it may not always perform as well on highly specialized domains unless additional fine-tuning is applied or domain-specific data is included.

  5. Generalization: As a smaller model, SmolLM2_135M_Grpo_Gsm8k may not generalize as well as larger models to unseen tasks or rare queries. Its responses could be overly generic or fail to grasp nuances in complex scenarios.

  6. Limited Multi-turn Conversations: While it can manage basic multi-turn conversations, its performance might degrade as the conversation length increases, as it might lose track of context or produce repetitive responses.

Intended Use of SmolLM2_135M_Grpo_Gsm8k

  1. General-purpose Conversational AI: The model is designed to excel at basic conversational tasks, such as answering general knowledge questions, providing explanations, and offering context-based responses. It's ideal for small to medium-sized chatbots and interactive virtual assistants.

  2. Education & Tutoring: The model can be used in educational applications where it can assist with answering questions, explaining concepts, and helping users with learning new topics across various domains.

  3. Content Generation: It can generate short-form content, including text snippets, outlines, or ideas, making it suitable for writing assistants, idea generation tools, or brainstorming applications.

  4. Code Assistance: Given its fine-tuning on programming datasets, it can assist with code-related tasks, debugging, and providing explanations for programming concepts or snippets.

  5. Instruction Following: SmolLM2_135M_Grpo_Gsm8k has been fine-tuned for better instruction-following abilities, making it suitable for applications where users provide specific commands or requests.

  6. Prototyping & Experimentation: With its smaller size and easier deployment, the model is useful for rapid prototyping and experimentation in new AI-driven applications, particularly where speed and cost efficiency are more important than state-of-the-art performance.

  7. Low-Resource Environments: Due to its smaller model size, it can be used in environments with limited computational resources (e.g., edge devices, mobile applications, or local servers) where running larger models might not be feasible.

  8. Research and Development: Researchers interested in exploring fine-tuned models and improving upon smaller AI systems can use SmolLM2_135M_Grpo_Gsm8k for experimentation or as a base for further fine-tuning.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей