/ Модель

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

Контекст
1 024 токена
Лицензия
Apache 2.0
Архитектура
gpt2 · dense
Базовая модель
codeparrot-small-multi
Библиотека
transformers
Опубликована
29 сен 2026

codeparrot-small-multi

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

Конвертированная в Safetensors модель GPT-2 для генерации и продолжения кода на нескольких языках программирования.

412скачиваний за 30 дней0лайковвеса обновлены29 сен 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

TULLUS подготовил конвертированную копию CodeParrot Small Multi — небольшой плотной языковой модели на архитектуре GPT-2 для генерации и продолжения кода. Репозиторий сохраняет обученные веса исходной модели codeparrot/codeparrot-small-multi и переводит чекпойнт в формат Safetensors, нормализуя общие входные и выходные эмбеддинги. README сообщает о проверке тензоров после сохранения и повторной загрузки; это конверсия, а не новое дообучение.

Модель подходит для автодополнения фрагментов кода и экспериментов с генерацией кода, включая дальнейшее дообучение. По описанию базовой модели в каталоге она рассчитана на девять языков программирования. Контекст составляет 1024 токена. Репозиторий использует лицензию Apache-2.0.

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

  • автодополнение фрагментов кода
  • генерация кода по текстовому запросу
  • продолжение незавершённого кода
  • эксперименты с дообучением модели для программирования

Ограничения

Контекст ограничен 1024 токенами. Модель небольшая и предназначена для экспериментов; README не приводит оценки качества.

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

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

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

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

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

Открыть на Hugging Face

TULLUS/codeparrot-small-multi 🦜

A clean, verified Safetensors conversion of codeparrot/codeparrot-small-multi.

This repository preserves the original model weights while normalizing the legacy GPT-2 embedding representation from two physically duplicated matrices into properly tied input/output embeddings.

What this is

This is a checkpoint conversion, not a new training run.

The original CodeParrot checkpoint was loaded from its legacy pytorch_model.bin, inspected, normalized, saved as Safetensors, reloaded, and then subjected to exact tensor verification.

The goal was to produce a clean modern Transformers checkpoint without changing the learned weight values.

Source

Original model: codeparrot/codeparrot-small-multi

Original architecture: GPT-2 / GPT2LMHeadModel

Original tokenizer: GPT-2 tokenizer

Vocabulary size: 32,768

BOS token ID: 0

EOS token ID: 0

PAD token: none

Original checkpoint SHA256:

0207f6b427e3cbf1bcb9726abb6bbba6620e9912e1abf23087ccdef61818ffb2

Conversion details

The legacy checkpoint contained two separate physical copies of the embedding matrix:

transformer.wte.weight
lm_head.weight

Both tensors were verified to have identical values:

shape:            (32768, 768)
exact equality:   True
max difference:   0.0
same storage:     False

The model was then normalized with:

tie_word_embeddings = True

After normalization:

same storage:      True
exact equality:    True

The resulting checkpoint therefore uses a single shared embedding tensor for the input embeddings and language-model head.

Parameter count

The legacy checkpoint physically stored:

136,174,080 parameters

This included the duplicated embedding storage.

After tying the identical embeddings, the clean model contains:

111,008,256 unique parameters

The resulting Safetensors file is approximately:

444,048,000 bytes
423.48 MiB

Verification

The conversion was validated after saving and reloading the Safetensors checkpoint.

Verified checks include:

  • Original source SHA256
  • Source tokenizer length
  • BOS/EOS token IDs
  • Source embedding values
  • Source physical parameter count
  • Embedding storage normalization
  • Safetensors serialization
  • Reload into GPT2LMHeadModel
  • tie_word_embeddings=True
  • Final tied embedding storage
  • Metadata consistency
  • Exact tensor equality

Final verification result:

Weights: EXACTLY PRESERVED
Embedding configuration: TIED
Unique parameter count: 111,008,256
BOS/EOS IDs: 0 / 0
Exact tensor verification: PASS

The final comparison verified all 149 logical model tensors after reload. Safetensors physically stores 148 tensors because the tied lm_head.weight is represented by the shared transformer.wte.weight storage.

About the conversion warning

During loading of the original legacy checkpoint, Transformers reported the following unexpected entries:

transformer.h.{0...11}.attn.bias
transformer.h.{0...11}.attn.masked_bias

These are legacy GPT-2 attention-mask buffers rather than learned model weights. They do not represent missing trained parameters, and the complete learned tensor set was subsequently verified exactly after conversion and reload.

Intended use

This checkpoint is intended as a clean starting point for experimentation with the CodeParrot GPT-2 architecture, including further fine-tuning and research experiments.

It is also the clean base checkpoint for the planned:

TULLUS-CodeParrot-???

training experiment.

Example usage

from transformers import AutoTokenizer, AutoModelForCausalLM

model_id = "TULLUS/codeparrot-small-multi"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)

prompt = "def fibonacci(n):"

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

outputs = model.generate(
    **inputs,
    max_new_tokens=128,
)

print(tokenizer.decode(outputs[0], skip_special_tokens=True))

Provenance

This repository is a conversion of the original:

codeparrot/codeparrot-small-multi

No claim is made here that the converted checkpoint is a new trained model. The purpose of this repository is to provide a clean Safetensors representation with normalized tied embeddings while preserving the original learned values.


TULLUS BAKES 🍪

Fresh From The AI Ovens, It's The Goods..

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
GPT2LMHeadModel
Ревизия весов
2ef52a8

0 моделей