/ Модель

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

Контекст
32 768 токенов
Параметры
1,5 млрд
Лицензия
MIT
Архитектура
qwen2 · dense
Базовая модель
Qwen2.5-1.5B-Instruct
Опубликована
29 авг 2026

apex-qwen2.5

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

Компактная модель на базе Qwen2.5-Coder, дообученная для решения задач Codeforces и генерации кода на C++17.

90скачиваний за 30 дней1лайквеса обновлены29 авг 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Apex-Coder — компактная причинная языковая модель, созданная Капилом Ядавом на основе Qwen2.5-Coder-1.5B-Instruct и дообученная для соревновательного программирования. Модель содержит 1,5 млрд параметров, использует архитектуру Qwen2 и принимает диалоговые текстовые запросы. Контекст составляет до 32 768 токенов. Веса представлены в Safetensors; LoRA-адаптер объединён с базовой моделью, поэтому репозиторий содержит самостоятельную модель. Лицензия — MIT.

Модель предназначена для разбора задач в стиле Codeforces: она может предлагать алгоритмы и структуры данных, объяснять сложность, генерировать реализации на C++17, разбирать ошибки и предлагать оптимизации. Она также подходит для учебной практики по алгоритмам и структурам данных.

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

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Apex-Coder

Apex-Coder is a fine-tuned version of Qwen2.5-Coder-1.5B-Instruct, specialized for competitive programming, Codeforces-style problems, and C++17 code generation.

The model was fine-tuned using Supervised Fine-Tuning (SFT) with LoRA/PEFT and Unsloth.


Model Overview

PropertyDetails
Model NameApex-Coder
Base ModelQwen2.5-Coder-1.5B-Instruct
Model TypeCausal Language Model
Primary TaskCompetitive Programming / Code Generation
Primary LanguageC++
Fine-TuningLoRA
Training MethodSupervised Fine-Tuning (SFT)
FrameworkTransformers
Training FrameworkTRL
Fine-Tuning LibraryPEFT
OptimizationUnsloth
Model FormatSafetensors
Model StatusMerged Standalone Model

About Apex-Coder

Apex-Coder is designed as a lightweight AI assistant for competitive programmers.

The goal of the fine-tuning process was to improve the model's ability to:

  • Understand competitive programming problems
  • Identify suitable algorithms and data structures
  • Develop efficient solution approaches
  • Analyze time and space complexity
  • Generate C++17 implementations
  • Debug C++ solutions
  • Optimize existing solutions
  • Suggest alternative approaches
  • Explain competitive programming concepts

The model is particularly targeted toward Codeforces-style programming problems.


Training

Apex-Coder was fine-tuned using Supervised Fine-Tuning (SFT) with LoRA (Low-Rank Adaptation).

Instead of updating the complete base model, LoRA adds a relatively small number of trainable parameters that learn task-specific behavior.

Training Stack

  • Base Model: Qwen2.5-Coder-1.5B-Instruct
  • Fine-Tuning: LoRA
  • Training Method: Supervised Fine-Tuning (SFT)
  • PEFT: PEFT
  • Optimization: Unsloth
  • Training Framework: TRL
  • Model Framework: Transformers
  • Programming Language: C++

Training Data

The model was fine-tuned on Codeforces-style competitive programming problems and C++ solutions.

The training examples were designed around the following general workflow:

Problem Statement
        │
        ▼
Algorithm / Approach
        │
        ▼
Complexity Analysis
        │
        ▼
C++17 Implementation

The objective was to teach the model to connect a programming problem with an appropriate algorithmic strategy and implementation.


Model Format

Apex-Coder is provided as a merged standalone model.

After fine-tuning, the LoRA adapter was merged with the base model and exported as a standalone model.

Therefore, users do not need to separately load the LoRA adapter when using this repository.

Repository Structure

apex-qwen2.5/
│
├── README.md
├── config.json
├── generation_config.json
├── model.safetensors
├── tokenizer.json
├── tokenizer_config.json
└── chat_template.jinja

Main Model Weights

model.safetensors

The model weights are provided in Safetensors format.


Usage

Installation

pip install torch transformers accelerate

Load the Model

from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

model_id = "yadavkapil7155/apex-qwen2.5"

tokenizer = AutoTokenizer.from_pretrained(model_id)

model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.float16,
    device_map="auto"
)

model.eval()

Chat-Style Inference

Apex-Coder supports conversational prompts using the tokenizer's chat template.

from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

model_id = "yadavkapil7155/apex-qwen2.5"

tokenizer = AutoTokenizer.from_pretrained(model_id)

model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.float16,
    device_map="auto"
)

model.eval()

messages = [
    {
        "role": "user",
        "content": """
Solve this competitive programming problem in C++17.

Given an array of n integers, find the maximum
subarray sum.

Explain the approach, time complexity,
space complexity, and provide the complete
C++17 implementation.
"""
    }
]

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

inputs = tokenizer(
    prompt,
    return_tensors="pt"
).to(model.device)

with torch.no_grad():
    outputs = model.generate(
        **inputs,
        max_new_tokens=2048,
        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)

Example

A user can interact with Apex-Coder using a normal conversational prompt:

Solve this competitive programming problem in C++17.

Given an array of n integers, find the number of
subarrays whose sum is divisible by k.

Constraints:
1 <= n <= 1e5
1 <= k <= 1e5
-1e9 <= a[i] <= 1e9

Explain the approach, time complexity,
space complexity, and provide the complete
C++17 implementation.

A response may contain:

Approach:
...

Why it works:
...

Time Complexity:
...

Space Complexity:
...

C++17 Implementation:
...

This makes Apex-Coder suitable as the backend for a ChatGPT-style competitive programming assistant.


Intended Use

Apex-Coder is intended for:

  • Competitive programming
  • Codeforces-style problems
  • C++17 code generation
  • Algorithm learning
  • Data structures and algorithms practice
  • Debugging C++ code
  • Complexity analysis
  • Solution optimization
  • Educational coding assistants
  • Personal AI coding tools

Evaluation

For competitive programming, generating syntactically valid code is not enough.

A proper evaluation pipeline should verify whether generated solutions actually solve the problems.

Problem
   │
   ▼
Model generates C++17 solution
   │
   ▼
Compile
   │
   ▼
Run test cases
   │
   ▼
Compare output
   │
   ▼
Accepted / Wrong Answer / Runtime Error

Recommended Metrics

MetricDescription
Compilation RatePercentage of generated solutions that compile successfully
Test Case Pass RatePercentage of generated solutions passing the available tests
Accepted RatePercentage of problems solved successfully
RuntimeExecution time of generated solutions
Memory UsageMemory consumed by generated solutions

Formal benchmark results will be added after evaluation on a held-out set of unseen competitive programming problems.


Limitations

Apex-Coder is a relatively small 1.5B parameter model.

It may not reliably solve every competitive programming problem, particularly problems involving:

  • Very difficult algorithms
  • Complex dynamic programming
  • Advanced graph algorithms
  • Difficult mathematical reasoning
  • Large multi-step reasoning chains
  • Unusual edge cases
  • Very long problem statements
  • Highly optimized implementations
  • Problems outside the training distribution

The model may occasionally generate code that looks correct but contains logical or implementation errors.

Always compile, test, and validate generated solutions before submitting them or using them in production.

Apex-Coder should be considered an AI coding assistant, not a guaranteed competitive programming solver.


Deployment

Apex-Coder can be integrated into applications such as:

  • Hugging Face Spaces
  • Gradio applications
  • FastAPI backends
  • Docker containers
  • Web applications
  • Coding assistants
  • Educational platforms

A possible deployment architecture:

                 User
                   │
                   ▼
          ChatGPT-style UI
                   │
                   ▼
             Gradio / Web UI
                   │
                   ▼
              FastAPI API
                   │
                   ▼
              Apex-Coder
                   │
                   ▼
             C++17 Response

The model can also be loaded directly from the Hugging Face Hub for local inference.


Project Architecture

                 Qwen2.5-Coder
                    1.5B
                     │
                     ▼
          Codeforces-style Dataset
                     │
                     ▼
                SFT + LoRA
                     │
                     ▼
              Fine-Tuned Model
                     │
                     ▼
                 LoRA Merge
                     │
                     ▼
                Apex-Coder
                     │
          ┌──────────┴──────────┐
          ▼                     ▼
   Problem Understanding   Code Generation
          │                     │
          └──────────┬──────────┘
                     ▼
                  C++17

Repository Files

FilePurpose
model.safetensorsMerged model weights
config.jsonModel architecture configuration
generation_config.jsonGeneration configuration
tokenizer.jsonTokenizer vocabulary and configuration
tokenizer_config.jsonTokenizer settings
chat_template.jinjaConversational prompt template
README.mdModel documentation

Project Goals

Apex-Coder explores how a relatively small language model can be adapted to a specialized programming domain.

The project focuses on:

  • Fine-tuning small language models
  • Parameter-efficient fine-tuning with LoRA
  • Competitive programming
  • C++ code generation
  • Codeforces-style problem solving
  • Building lightweight AI coding assistants
  • Deploying fine-tuned language models

Acknowledgements

Apex-Coder builds upon the following open-source projects and communities:

  • Qwen — Qwen2.5-Coder
  • Unsloth — Efficient model fine-tuning
  • Hugging Face — Transformers and Model Hub
  • PEFT — Parameter-efficient fine-tuning
  • TRL — Supervised fine-tuning
  • Codeforces — Competitive programming ecosystem

Links

GitHub

https://github.com/kapilverse/Apex-Coder

Hugging Face

https://huggingface.co/yadavkapil7155/apex-qwen2.5

Base Model

Qwen2.5-Coder-1.5B-Instruct


Author

Kapil Yadav

Apex-Coder is an independent machine learning project focused on adapting a small language model for competitive programming and C++ code generation.

GitHub:

https://github.com/kapilverse/Apex-Coder


Citation

If you use Apex-Coder in your project, you can cite it as:

@misc{apexcoder2026,
  title={Apex-Coder: Fine-Tuned Qwen2.5-Coder for Competitive Programming},
  author={Kapil Yadav},
  year={2026},
  url={https://huggingface.co/yadavkapil7155/apex-qwen2.5}
}

License

Apex-Coder is a fine-tuned model based on Qwen2.5-Coder-1.5B-Instruct.

Please review the licensing terms of the original Qwen model before redistributing or using Apex-Coder commercially.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Qwen2ForCausalLM
Ревизия весов
20c252d

0 моделей