/ Модель

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

Лицензия
Apache 2.0
Архитектура
densy · dense
Базовая модель
densy-330m-pretrain
Опубликована
23 окт 2026

Densy-330M-Chat

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

Компактная англоязычная чат-модель Phase Technologies для генерации ответов в диалоге.

97скачиваний за 30 дней2лайкавеса обновлены24 окт 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Densy-330M-Chat — диалоговая языковая модель Phase Technologies на базе плотного трансформера с авторегрессионной архитектурой. По карточке, базовая модель обучена с нуля, а эта версия дополнительно прошла Supervised Fine-Tuning на диалогах и Direct Preference Optimization. Веса представлены в форматах PyTorch и Safetensors; лицензия — Apache-2.0.

Модель предназначена для генерации ответов в многоходовом чате. В её архитектуре используются RoPE, FlashAttention или SDPA и общие входные и выходные эмбеддинги; размер — около 328,5 млн параметров. Предобучение проводилось на 15 млрд токенов текстовых данных из веба, кода и академических материалов, затем модель обучали на диалогах. Карточка указывает английский язык. Подробные оценки качества и подтверждённый предел контекста в предоставленных данных отсутствуют.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Densy-330M-Chat: Pure Dense Causal Transformer Architecture

License: Apache 2.0 Parameters Hardware Tokens Alignment


⚡ Executive Summary

Densy-330M-Chat is an open-source, pure dense causal transformer language model designed and trained from scratch by Phase Technologies. Unlike recent hybrid or mixture-of-experts architectures, Densy is built on the classic, battle-tested dense Anthropic/GPT foundation:

  • Zero MoE routing overhead: 100% of the parameters participate in every forward and backward pass.
  • Rotary Position Embeddings (RoPE) with FlashAttention / Scaled Dot-Product Attention (SDPA).
  • Weight Tying: Shared embeddings between input token representations and the output projection head, saving memory and accelerating vocabulary learning across a massive 206,464-token vocabulary.
  • End-to-End Pipeline: Pretrained on 15.00 Billion tokens from raw scratch, fine-tuned with Supervised Fine-Tuning (SFT) on dialogue traces with loss masking, and polished using Direct Preference Optimization (DPO).

📐 Model Architecture Specifications

SpecificationValueTechnical Detail
Total Parameters328,508,928 (328.5M)Exact parameter count (Storage: ~657 MB in BF16)
Active Parameters328.5M (100%)Fully dense architecture (no sparsity, no MoE routing)
Hidden Dimension ($d_{\text{model}}$)768Intermediate hidden state representation
Transformer Layers ($n_{\text{layers}}$)2424 identical Pre-LayerNorm Transformer blocks
Attention Heads ($n_{\text{heads}}$)1212 heads, 64-dim per head ($d_{\text{head}} = 64$)
MLP Expansion Dimension3,072$4 \times d_{\text{model}}$ with GeLU (tanh approximation)
Context Window ($seq_len$)4,096 tokensScalable rotary position context
Vocabulary Size206,464CRAYON Turbo BPE vocabulary
Weight TyingEnabledEmbedding matrix tied to LM Head ($206{,}464 \times 768 = 158.6\text{M}$ weights)
                       Input Tokens (B, T)
                                │
                                ▼
               [Token Embedding (206,464 × 768, Tied)]
                                │
          ┌─────────────────────┴─────────────────────┐
          │  Block 0 .. 23 (24 Identical Layers):     │
          │   ├─ Pre-LayerNorm (d=768)                │
          │   ├─ Multi-Head Attention (12 Heads, RoPE)│
          │   │   └─ FlashAttention-2 / SDPA          │
          │   ├─ Residual Add                         │
          │   ├─ Pre-LayerNorm (d=768)                │
          │   ├─ Dense MLP (768 → 3072 → 768, GeLU)   │
          │   └─ Residual Add                         │
          └─────────────────────┬─────────────────────┘
                                ▼
                       [Final LayerNorm (768)]
                                │
                                ▼
                 [Tied LM Projection Head (206,464)]
                                │
                                ▼
                          Output Logits

🛠️ Complete Training Chronology

The model was developed, pretrained, and aligned directly on high-performance cloud hardware:

1. Pretraining (15.00 Billion Tokens)

  • Compute Cluster: 4× NVIDIA H100 80GB HBM3 (SXM5) connected via NVLink on RunPod.
  • Global Batch Size: 4,194,304 tokens per step (Sequence length: 4,096; Micro-batch per GPU: 8; Gradient accumulation: 32).
  • Hardware Throughput: ~582,000 tokens/second sustained across the cluster.
  • Total Steps: 3,576 optimizer steps.
  • Optimizer: Fused AdamW ($\beta_1=0.9, \beta_2=0.95, \epsilon=10^{-8}$, weight decay 0.1) with Cosine Learning Rate Decay ($3\times 10^{-4} \to 3\times 10^{-5}$).
  • Tokens Seen: Exactly 15,000,000,000 tokens from pretokenized web, code, and academic text shards (Phase-Technologies/forge-3b-pretrain-data).

2. Supervised Fine-Tuning (SFT)

  • Dataset: Phase-Technologies/forge-3b-sft-data (Multi-turn conversational dialogue with user/assistant role separation).
  • Objective: Masked cross-entropy (loss computed strictly on assistant response tokens, prompt tokens masked with -100).
  • Volume: 20,000,000 tokens (76 optimizer steps on 4× H100, completed in ~45 seconds).

3. Direct Preference Optimization (DPO)

  • Dataset: Phase-Technologies/forge-3b-dpo-data (1,000 high-margin chosen/rejected pairs).
  • Objective: Reference-anchored implicit reward optimization ($\beta=0.1$) aligning helpfulness, reasoning clarity, and harmlessness.

💻 Google Colab & Local Quickstart

You can run Densy-330M-Chat on any Google Colab instance (even free T4 GPU or CPU) with zero external setup:

# Install lightweight dependencies
!pip install -q torch huggingface_hub xerv-crayon safetensors

import sys
import torch
from huggingface_hub import snapshot_download
from safetensors.torch import load_file

# 1. Download repository and add to Python path
repo_id = "Phase-Technologies/Densy-330M-Chat"
repo_dir = snapshot_download(repo_id=repo_id)
sys.path.insert(0, repo_dir)

# 2. Import architecture
from config import DensyConfig
from model import build_densy_330m
from tokenizer.crayon_wrapper import ForgeTokenizer

# 3. Instantiate and load weights
device = "cuda" if torch.cuda.is_available() else "cpu"
dtype = torch.bfloat16 if torch.cuda.is_available() else torch.float32

tokenizer = ForgeTokenizer()
cfg = DensyConfig()
model = build_densy_330m(cfg)

# Load safetensors from the downloaded repo folder
weights_path = f"{repo_dir}/model.safetensors"
sd = load_file(weights_path)
model.load_state_dict({k: v.to(dtype) for k, v in sd.items()}, strict=False)
model = model.to(device).to(dtype).eval()
print(f"Densy-330M loaded successfully on {device} ({dtype})!")

# 4. Generate Chat Response
prompt = "<|bos|><|usr|>What are three foundational principles of physics?<|asst|>"
input_ids = torch.tensor([tokenizer.encode(prompt, add_bos=False, add_eos=False)], device=device)

with torch.inference_mode():
    output_ids = model.generate(input_ids, max_new_tokens=64, temperature=0.7)

response = tokenizer.decode(output_ids[0].tolist(), skip_special_tokens=False)
print("\n--- Output ---")
print(response)

🏷️ Chat Prompt Template & Special Tokens

TokenRepresentationPurpose
`<bos>`
`<eos>`
`<usr>`
`<asst>`
`<pad>`

Format:

<|bos|><|usr|>Your question here<|asst|>Assistant response...<|eos|>

a note from the creator.....

honestly when we set out to build densy we wanted to prove that pure, classic dense transformer architecture still has unmatched elegance and power when pushed to its limits..... after wrestling with complex mixture-of-experts routing and hybrid state space layers in our previous models, densy was our return to first principles: no gate networks, no expert balancing losses, no quadratic memory tricks—just 24 deep, pure dense layers weight-tied to a massive 206k vocabulary running wide open on 4x nvidia h100 sxm5 gpus at over 580,000 tokens every single second.....

watching the loss drop from 12 down across 15 billion tokens in runpod's datacenter was an unbelievable feeling..... training independent frontier-style models with limited personal budgets is terrifying and exhilarating all at once..... every single dollar counted, every step mattered, and when little bugs cropped up in our loss shifts or dataloaders we had to diagnose them in real time on live silicon with the clock ticking.....

huge love and endless gratitude to the runpod team for building the infrastructure that lets independent developers spin up multi-h100 nodes with a single click and actually train real models from scratch..... this journey has been exhausting, beautiful, and deeply humbling..... to everyone following along, experimenting with our models, or building their own architectures in bedrooms and dorms: never let compute monopolies convince you that you can't train from scratch..... i hope you enjoy talking with densy..... thank you for believing in this crazy dream.....

— soham pal (phase technologies)

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей