SAVRN
Search Contact SAVRN

Open-weight model · Text generation

lightning-105m

by AobanZ Aobangaming/lightning-105m

lightning-105m is an open-weight model for text generation from AobanZ, released under MIT License. It has 105M parameters. At 16-bit it needs about 0.3 GB of GPU memory, which fits on 1x MI300X from $1.85 an hour, at the lowest prices in the SAVRN Index.

Lightning is a small, autoregressive transformer which utilizes FlashAttention and MHA. This model is trained on a variety of books from a dataset(300 MB). This is the expanded version of Lightning-60m.

Parameters105M
Context
Weights421.4 MB
Licensemit
AccessOpen weights
Monthly Downloads

Runs On

What it takes to serve lightning-105m (105M parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 0.2 GB 0.3 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.1 GB 0.1 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.1 GB 0.1 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 20, 2026.

lightning-105m on every accelerator the SAVRN Index prices, at every precision

Model Card

By AobanZ, published under mit, revision ce4d342209eb.

Lightning is a small, autoregressive transformer which utilizes FlashAttention and MHA. This model is trained on a variety of books from a dataset(300 MB). This is the expanded version of Lightning-60m. Lightning utilizes FlashAttention and AdamW for performance and capability. Lightning is designed to provide quick, coherent outputs, improved with a larger size and weight. Lightning is intended to be used for research, analysis and fine-tuning, 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. Lightning can be used directly for text generation, experimentation, and conversational…

Read AobanZ's full model card

Model Card for Model ID

Model Details

Lightning is a small, autoregressive transformer which utilizes FlashAttention and MHA. This model is trained on a variety of books from a dataset(300 MB). This is the expanded version of Lightning-60m.

Model Description

Lightning 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

  • Repository: https://huggingface.co/Aobangaming/lightning-105m

Uses

Lightning is intended to be used for research, analysis and fine-tuning, 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

Lightning 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 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

Lightning may be fined-tuned for an AI Story makers, Research, and small continuation 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 if implemented into a larger-app/ecosystem.

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

model_id = "Aobangaming/lightning-105m"

model = AutoModelForCausalLM.from_pretrained(
    model_id,
    trust_remote_code=True
)

tokenizer_path = hf_hub_download(
    repo_id=model_id,
    filename="lightning_tokenizer.json"
)

tokenizer = Tokenizer.from_file(tokenizer_path)

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

model = model.to(device)

generate_text = getattr(
    __import__(
        model.__class__.__module__,
        fromlist=["generate_text"]
    ),
    "generate_text"
)

prompt = input("Enter Prompt: ")

response = generate_text(
    model.lightning,
    tokenizer,
    prompt,
    max_len=100,
    device=device,
    top_k=40,
    top_p=0.6,
    penalty=1.2,
    temperature=0.8
)

print(response)

Training Details

Training Data

Lightning was trained on the full Booksum dataset.

Training Procedure

Lightning 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

Epoch Average Loss Perplexity
1 4.937238495 139.384826660
2 4.020790739 55.745159149
3 3.596491258 36.470046997
4 3.274661109 26.434265137
5 3.045641310 21.023511887
#### Training Hyperparameters
Hyperparameter Value Comment
Precision FP32
Optimizer AdamW Better weight decay
Learning rate 5e-4
Batch size 24 Adapted for larger dataset

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: My Computer
  • Compute Region: Asia
  • Carbon Emitted: ~0.17 kg CO₂e

Technical Specifications

Model Architecture and Objective

Lightning-105m uses a 12-layer causal Transformer with 512-dimensional hidden states and 8 attention heads. Each attention head has a dimension of 64.

The architecture uses pre-layer normalization, causal scaled dot-product attention, a 4× expansion GELU feed-forward network, sinusoidal positional encoding, and untied input/output embeddings.

Hyperparameter Value Comment
Layers 12
D_MODEL 512 Optimized for 64dim/head
Attention Heads 8 Improved from lightning-60m
Vocabulary ~65830 w/ 230 Sequence length

Compute Infrastructure

Hardware

RTX 3050 6GB

Software

Windows 11, Intel i5-10400

Configuration

Architecture
LightningForCausalLM
Layers
12
Hidden size
512
Attention heads
8
Vocabulary size
65,830
Model type
lightning

Identity and Version

Repository
Aobangaming/lightning-105m
Publisher
AobanZ
Task
Text generation
Modality
Text
Library
transformers
Parameters
105M parameters
Languages
en
Revision
ce4d342209ebbf81b8cae801f31061853ac48350
First published
2026-09-20
Last updated
2026-09-20

Files and Weights

7 files, 426.3 MB in total. The weights are 1 file totalling 421.4 MB in safetensors.

Weights1 file · 421.4 MB
Configuration3 files · 10.2 KB
Tokenizer1 file · 4.8 MB
Documentation1 file · 5.5 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
model.safetensorsWeights421.4 MB 90b22bc304c9
config.jsonConfiguration539 B
configuration_lightning.pyConfiguration754 B
modeling_lightning.pyConfiguration8.9 KB
README.mdDocumentation5.5 KB
.gitattributesRepository1.5 KB
lightning_tokenizer.jsonTokenizer4.8 MB

License and Download

License
mit
Access
Open weights, no gate
Download size
421.4 MB
Download from AobanZ

Released by AobanZ through its official repository on Hugging Face. Read the license.

Built From

Memory Requirements

PrecisionWeights in memory
As published421.4 MB
16-bit0.2 GB
8-bit0.1 GB
4-bit0.1 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About lightning-105m

How much GPU memory does lightning-105m need?

About 0.3 GB at 16-bit and 0.1 GB at 4-bit: the weights (105M parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run lightning-105m on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use lightning-105m commercially?

Yes. lightning-105m is released under MIT License. The MIT License is a short permissive license. It permits commercial use, modification and redistribution, provided the copyright notice and permission notice are included.

Similar Models

Model · Text generation

SharperSwarm

Convergent Intelligence

SAGI (Swarm AGI) is a novel causal language model that integrates swarm intelligence dynamics with transformer architecture. The model treats cognition as a dynamic, adaptive system where multiple internal "agents" collaborate through differentiable routing, trust mechanisms, and shared memory. V3.2 introduces a revolutionary Self-Assessment Layer, allowing the system to predict its own performance, identify skill gaps, and autonomously design its own learning curriculum. 1. Pre-Assessment: Predict success, identify risks, recommend strategy. 2. Execution: Generate with selected strategy. 3. Real-Time Monitoring: Catch and correct errors during generation. 4. Post-Assessment: Update skill…

Open weights apache-2.0 103M parameters 1,024 tokens transformers

Model · Text generation

macbert4csc-base-chinese

Ming Xu (徐明)

macbert4csc-base-chinese evaluate SIGHAN2015 test data: 由于训练使用的数据使用了SIGHAN2015的训练集(复现paper),在SIGHAN2015的测试集上达到SOTA水平。 模型结构,魔改于softmaskedbert: 本项目开源在中文文本纠错项目:pycorrector,可支持macbert4csc模型,通过如下命令调用: 当然,你也可使用transformers调用: SIGHAN+Wang271K中文纠错数据集,数据格式: 如果需要训练macbert4csc,请参考https://github.com/shibing624/pycorrector/tree/master/pycorrector/macbert MacBERT is an improved BERT with novel MLM as correction pre-training task, which mitigates the discrepancy of pre-training and fine-tuning. Here is an example of our pre-training task. Except for the new pre-training task, we also incorporate the following techniques. Note that our MacBERT can be directly replaced with the original BERT as there is no…

Open weights apache-2.0 102M parameters 512 tokens transformers

Model · Text generation

pythia-70m-deduped

EleutherAI

The Pythia Scaling Suite is a collection of models developed to facilitate interpretability research (see paper). It contains two sets of eight models of sizes 70M, 160M, 410M, 1B, 1.4B, 2.8B, 6.9B, and 12B. For each size, there are two models: one trained on the Pile, and one trained on the Pile after the dataset has been globally deduplicated. All 8 model sizes are trained on the exact same data, in the exact same order. We also provide 154 intermediate checkpoints per model, hosted on Hugging Face as branches. The Pythia model suite was designed to promote scientific research on large language models, especially interpretability research. Despite not centering downstream performance as a…

Open weights apache-2.0 96M parameters 2,048 tokens transformers

Model · Text generation

distilgpt2

DistilBERT community

DistilGPT2 (short for Distilled-GPT2) is an English-language model pre-trained with the supervision of the smallest version of Generative Pre-trained Transformer 2 (GPT-2). Like GPT-2, DistilGPT2 can be used to generate text. Users of this model card should also consider information about the design, training, and limitations of GPT-2. CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propagate historical and current stereotypes. As the developers of GPT-2 (OpenAI) note in their model card, “language models like GPT-2 reflect the biases inherent to the systems they were trained on.” Significant research has explored bias and…

Open weights apache-2.0 88M parameters transformers

Model · Text generation

ivieai_star_v1.0

George O. Uwaifo

This model is a fine-tuned version of GeorgeUwaifo/iviegpt2new01cresults on an unknown dataset. It achieves the following results on the evaluation set: The following hyperparameters were used during training: - learningrate: 5e-05 - trainbatchsize: 4 - evalbatchsize: 8 - gradientaccumulationsteps: 4 - totaltrainbatchsize: 16 - lrschedulertype: linear - lrschedulerwarmupsteps: 387 - numepochs: 5 - mixedprecisiontraining: Native AMP - Transformers 5.16.1 - Pytorch 2.11.0+cu128 - Datasets 4.8.5 - Tokenizers 0.23.1

Open weights mit 124M parameters transformers