/ Модель

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

Параметры
47,7 млн
Лицензия
MIT
Архитектура
lightning · dense
Базовая модель
lightning-30m-ft
Библиотека
transformers
Опубликована
7 окт 2026

luna-2-70m

Генерация текстаТекст → текст

Небольшая англоязычная модель Lightning для генерации текста, непринуждённых диалогов и экспериментов с чат-ботами.

396скачиваний за 30 дней1лайквеса обновлены7 окт 2026

Бенчмарки

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

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

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

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

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

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

Luna 2 — небольшая авторегрессионная языковая модель, разработанная AobanZ для генерации текста и чат-ботов. Модель содержит 47,7 млн параметров и использует плотный каузальный Transformer Lightning: 8 слоёв, размер скрытого состояния 384 и 6 голов внимания. В карточке также указано применение FlashAttention и оптимизатора AdamW.

Модель предназначена для непринуждённых диалогов, генерации историй, экспериментов с текстом и дальнейшего дообучения, в том числе для чат-ботов и AI-агентов. Она обучалась на части OASST; метаданные также указывают OASST1 и FineWeb. Основной язык — английский. Лицензия — MIT.

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

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

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

Ограничения

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

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

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

Открыть на Hugging Face

Model Card for Luna 2

Model Details

Luna 2 is a next generation text model designed for keeping context over long amounts of text. Luna 2 is generally intended for chatbot purposes.

Model Description

Luna utilizes FlashAttention and AdamW for performance and capability. Lightning is designed to provide quick, coherent outputs, improved with a larger size and weight.

  • Developed by: AobanZ
  • Model type: Transformer
  • Language(s) (NLP): English
  • License: MIT

Model Sources

Uses

Luna is intended to be used for research, analysis and fine-tuning, general conversation, stories and other. It is not intended to be used for professional advice, real writing or any kind of heavy work as generated outputs may be incorrect.

Direct Use

Luna can be used directly for text generation, experimentation, and conversational interactions. Users can provide text prompts and generate responses using the model's built-in language modeling capabilities. Direct use is primarily intended for casual conversation, research and experimentation. Outputs may be incomplete, inaccurate, repetitive, or unrelated to the input, and should be evaluated before being used for other purposes.

Downstream Use

Luna may be fined-tuned for a AI Character, AI Agents, and chat models. However, please note that generated outputs may be corrupted and/or incorrect.

Out-of-Scope Use

Heavy Work may overload the model, which will cause corrupted outputs and/or misinformation. Please provide coherent, steady prompts as the model may not understand unfamiliar terms.

Bias, Risks, and Limitations

Lightning is designed to process english and conversational text ONLY and cannot be fined-tuned for any other uses(eg. Robotics)

Recommendations

We recommend users of Lightning to finetune the model on new text, and add necessary guardrails and precautions to prevent misuse.

How to Get Started with the Model

Use the code below to get started with the model.

import torch
from transformers import AutoModelForCausalLM
from tokenizers import Tokenizer
from huggingface_hub import hf_hub_download
import importlib.util

model_id = "Aobangaming/luna-2-70m"

path = hf_hub_download(model_id, "modeling_luna.py")
spec = importlib.util.spec_from_file_location("lightning", path)
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)

model = AutoModelForCausalLM.from_pretrained(
    model_id, trust_remote_code=True, ignore_mismatched_sizes=False
)
tokenizer = Tokenizer.from_file(
    hf_hub_download(model_id, "luna_tokenizer.json")
)

device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model = model.to(device)

# Generation(OPTIONAL)
    response = module.generate_text(
        model,
        tokenizer,
        prompt,
        max_len=100,
        device=device,
        top_k=40,
        top_p=0.6,
        penalty=1.2,
        temperature=0.8,
        chat_history=history
    )

Training Details

Training Data

Luna was trained a subset of the OASST dataset.

Training Procedure

Luna was trained on an RTX 3050 GPU, using FlashAttention/SDPA and MHA. The model was trained on a large dataset. It was not trained on fine-tuning datasets since memory issues.

Training Results

EpochAvg LossPerplexity
16.019369138411.3190
24.677136674107.4620
33.91839996650.3199
43.30844557527.3426
52.88895739117.9746

Training Hyperparameters

HyperparameterValueComment
PrecisionFP32
OptimizerAdamW
Learning rate4e-4
Batch size32

Environmental Impact

Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).

  • Hardware Type: RTX 3050 6GB
  • Hours used: 1.5
  • Cloud Provider: AobanLabs
  • Compute Region: Asia
  • Carbon Emitted: ~0.17 kg CO₂e

Technical Specifications

Model Architecture and Objective

Luna uses a 8-layer causal Transformer with 384-dimensional hidden states and 6 attention heads, inherited from previous models. The architecture is based on the base architecture of "Aoban Lightning", which uses pre-layer normalization, causal scaled dot-product attention, a 4× expansion GELU feed-forward network, sinusoidal positional encoding, and untied input/output embeddings.

HyperparameterValueComment
Layers8
D_MODEL384
Attention Heads6
Vocabulary~75003w/ 200 Sequence length

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

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

GPU в ailist

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

Нельзя запустить

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

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

0 моделей