/ Модель

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

Контекст
1 024 токена
Параметры
51,8 млн
Лицензия
Apache 2.0
Архитектура
llama · dense
Базовая модель
Supra-50M-Base
Библиотека
transformers
Опубликована
21 мая 2026

Supra-50M-Instruct

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

Компактная англоязычная модель SupraLabs на 51,8 млн параметров для диалога, ответов на вопросы и выполнения текстовых инструкций.

1 222скачиваний за 30 дней64лайкавеса обновлены19 июн 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Supra-50M Instruct — компактная причинно-языковая модель для диалога и выполнения инструкций, разработанная SupraLabs на архитектуре в стиле Llama. По README, базовую модель обучили с нуля на 20 млрд токенов образовательных веб-текстов, затем дообучили на полном наборе Alpaca-Cleaned в течение четырёх эпох. Метаданные указывают 51,8 млн параметров и контекст до 1024 токенов; модель принимает текст и генерирует текст на английском языке.

Модель предназначена для ответов на вопросы, короткого диалога и выполнения текстовых инструкций. Небольшой размер позволяет рассматривать её для компактных приложений и запуска на CPU. README приводит результаты тестов и примеры ответов, но также отмечает, что модель галлюцинирует; пример с неверно названной столицей США показывает риск фактических ошибок. Лицензия — Apache-2.0.

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

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

Ограничения

Модель может галлюцинировать и давать фактически неверные ответы, что демонстрирует пример в README. Контекст ограничен 1024 токенами.

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

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

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

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

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

Открыть на Hugging Face

🦅 Supra-50M Instruct

Supra-50M Instruct is a compact 50M-parameter chat/instruct causal language model built by SupraLabs, trained from scratch using a Llama-style architecture on 20 billion tokens of high-quality educational web text. Despite being significantly smaller than comparable open models, it achieves competitive or superior results on several key benchmarks. It's our first SupraLabs Scaling Up Plan model.


📚 Training Data

For the SFT (supervised finetuning) we used the full Alpaca-Cleaned dataset for 4 epochs. See the full SFT-code in sft.py


Benchmarks

TaskMetricValue
arc_easyacc,none0.4659
arc_easyacc_stderr,none0.0102
arc_easyacc_norm,none0.4423
arc_easyacc_norm_stderr,none0.0102
arc_challengeacc,none0.2287
arc_challengeacc_stderr,none0.0123
arc_challengeacc_norm,none0.2756
arc_challengeacc_norm_stderr,none0.0131
hellaswagacc,none0.2794
hellaswagacc_stderr,none0.0045
hellaswagacc_norm,none0.2922
hellaswagacc_norm_stderr,none0.0045
winograndeacc,none0.5154
winograndeacc_stderr,none0.0140
piqaacc,none0.5558
piqaacc_stderr,none0.0114
piqaacc_norm,none0.5952
piqaacc_norm_stderr,none0.0115
openbookqaacc,none0.1580
openbookqaacc_stderr,none0.0163
openbookqaacc_norm,none0.2860
openbookqaacc_norm_stderr,none0.0202
boolqacc,none0.4205
boolqacc_stderr,none0.0086

⚙️ Pretraining details

For more details, the full code, configs and weights, please refer to https://huggingface.co/SupraLabs/Supra-50M-Base


🚀 Inference

import os
import warnings
import time

os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3"
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
warnings.filterwarnings("ignore", category=UserWarning, module="transformers")

import torch
from transformers import pipeline, AutoTokenizer, logging

logging.set_verbosity_error()

# ── Global variables ──────────────────────────────────────────────────────────

end = time.time()
start = time.time()
tokens = []


# ── Config ────────────────────────────────────────────────────────────────────

MODEL_ID = "SupraLabs/Supra-50M-Instruct"  
MAX_NEW_TOKENS = 512

# ── Load pipeline directly from HF ────────────────────────────────────────────

print(f"[*] Loading SFT model and tokenizer from HF Hub ({MODEL_ID})...")

tokenizer = AutoTokenizer.from_pretrained(MODEL_ID, clean_up_tokenization_spaces=False)

pipe = pipeline(
    "text-generation",
    model=MODEL_ID,
    tokenizer=tokenizer,
    device_map="auto",
    torch_dtype=torch.bfloat16 if torch.cuda.is_available() else torch.float32
)

print(f"[+] Pipeline ready — Model loaded using {pipe.model.device}")

# ── Prompt template (must match sft.py exactly) ───────────────────────────────

def build_prompt(instruction: str, input_text: str = "") -> str:
    if input_text.strip():
        return (
            "Below is an instruction that describes a task, paired with an input "
            "that provides further context. Write a response that appropriately "
            "completes the request.\n\n"
            f"### Instruction:\n{instruction}\n\n"
            f"### Input:\n{input_text}\n\n"
            "### Response:\n"
        )
    return (
        "Below is an instruction that describes a task. Write a response that "
        "appropriately completes the request.\n\n"
        f"### Instruction:\n{instruction}\n\n"
        "### Response:\n"
    )

# ── Generate ──────────────────────────────────────────────────────────────────

def generate(instruction: str, input_text: str = "", max_new_tokens: int = MAX_NEW_TOKENS) -> str:
    prompt = build_prompt(instruction, input_text)
    start = time.time()
    result = pipe(
        prompt,
        max_new_tokens=max_new_tokens,
        do_sample=True,
        temperature=0.7,
        top_k=50,
        top_p=0.9,
        repetition_penalty=1.15,
        pad_token_id=pipe.tokenizer.pad_token_id,
        eos_token_id=pipe.tokenizer.eos_token_id,
        return_full_text=False,
        generation_config=None
    )
    end = time.time()
    
    generated_text = result[0]["generated_text"]
    tokens = pipe.tokenizer(generated_text)["input_ids"]
    
    return generated_text, tokens, end, start

# ── Interactive loop ──────────────────────────────────────────────────────────

if __name__ == "__main__":
    print("\n[+] Ready. Type 'quit' to exit.\n")

    while True:
        instruction = input("Instruction: ").strip()
        if instruction.lower() == "quit":
            break

        inp = input("Input (optional, Enter to skip): ").strip()

        print("-" * 50)
        text, tokens, end, start = generate(instruction, inp)
        print(text)
        print()
        
        print(f"Generated tokens: {len(tokens)}")
        print(f"Time: {end - start:.2f}s")
        print(f"Speed: {len(tokens) / (end - start):.2f} tokens/sec")

💬 Sample Outputs

These outputs were generated with these samplings: temperature=0.7, top_k=50, top_p=0.9, repetition_penalty=1.15

(The model still hallucinates, but can respond a big quantity of questions correctly)

User: What is AI? Supra-50M Instruct:: AI refers to the simulation of human intelligence and creativity in machines, which are designed to mimic or surpass human cognition and reasoning. It is the process by which AI systems can solve problems, make predictions, or automate processes that typically require human-level thinking and problem solving. AI technology has been rapidly growing and evolving over time, with many potential benefits for society as a whole. Some of these include:

  1. Improved Accuracy: AI algorithms have demonstrated great accuracy in predicting outcomes, making accurate predictions on new data sets, and even answering real-world questions. This improves our ability to learn from experience and adapt to changing situations.
  2. Personalization: AI is used to personalize user experiences, such as recommending products based on their previous interactions and preferences. This helps people to stay motivated and maintain high levels of satisfaction.
  3. Better Decision Making: AI enables systems to analyze large amounts of data quickly and accurately, allowing us to make informed decisions more easily and

User: What is the capital of Japan? Supra-50M Instruct:: The capital of Japan is Tokyo.

User: Hi! Supra-50M Instruct:: Hello! How can i help you today?

User: What is the capital of United States? Supra-50M Instruct:: The capital of United States is New York City.

User: What is the capital of Russia? Supra-50M Instruct:: The capital of Russia is Moscow.


📄 License

This model is released under the Apache 2.0 License.


© SupraLabs 2026 — Project Chimera

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей