This model is a fine-tuned version of fpadovani/eng-latn-10mb-ppt-Dp-100mb-packedseed3407. It has been trained using TRL. This model was trained with SFT.
lightning-30m-ft is an open-weight model for text generation from AobanZ, released under MIT License. It has 29M parameters. At 16-bit it needs about 0.1 GB of GPU memory, which fits on 1x MI300X from $1.85 an hour, at the lowest prices in the SAVRN Index. It draws 1.6k downloads a month.
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). Lightning utilizes FlashAttention and AdamW for performance and capability.
Runs On
What it takes to serve lightning-30m-ft (29M parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.
| Precision | Weights | Memory needed | Cheapest setup | Per hour | Also fits |
|---|---|---|---|---|---|
| 16-bit | 0.1 GB | 0.1 GB | 1x MI300X (192 GB) Vultr |
$1.85 | 1x H100 $1.99 · 1x MI325X $2.00 |
| 8-bit | 0.0 GB | 0.0 GB | 1x MI300X (192 GB) Vultr |
$1.85 | 1x H100 $1.99 · 1x MI325X $2.00 |
| 4-bit | 0.0 GB | 0.0 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-30m-ft on every accelerator the SAVRN Index prices, at every precision
Model Card
By AobanZ, published under mit, revision a0fb96120e35.
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). Lightning utilizes FlashAttention and AdamW for performance and capability. Lightning is designed to provide quick, coherent outputs, with the downside of limited embedding. 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 interactions. Users can provide text prompts and…
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).
Model Description
Lightning utilizes FlashAttention and AdamW for performance and capability. Lightning is designed to provide quick, coherent outputs, with the downside of limited embedding.
- Developed by: AobanZ
- Model type: Transformer
- Language(s) (NLP): English
- License: MIT
- Finetuned from model [optional]: lightning-30m
Model Sources [optional]
- Repository: https://huggingface.co/Aobangaming/lightning-30m-ft
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.
The Download Model is here https://huggingface.co/Aobangaming/Lightning-30M/tree/main.
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 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
model_id = "Aobangaming/lightning-30m-ft"
model = AutoModelForCausalLM.from_pretrained(
model_id,
trust_remote_code=True
)
tokenizer = Tokenizer.from_pretrained(model_id)
prompt = "The"
encoded = tokenizer.encode(prompt, add_special_tokens=False)
input_ids = torch.tensor([encoded.ids])
outputs = model.generate(
input_ids,
max_new_tokens=100,
do_sample=True,
temperature=0.8,
top_k=40,
top_p=0.6,
)
print(tokenizer.decode(outputs[0].tolist()))
Training Details
Training Data
Lightning was trained on the full Booksum dataset.
Training Procedure
Lightning was trained on an RTX 3050 GPU, using FlashAttention and MHA. First, the model was initally trained on a large dataset. Then trained on a smaller dataset to fine tune.
Training Hyperparameters
| Hyperparameter | Value | Comment |
|---|---|---|
| Precision | FP32 | |
| Optimizer | AdamW | Better weight decay |
| Learning rate | 5e-4 | |
| Batch size | 32 | 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.06 kg CO₂e
Technical Specifications
Model Architecture and Objective
Lightning is a casual decoder model which is autoregressive.
| Hyperparameter | Value | Comment |
|---|---|---|
| Layers | 4 | |
| D_MODEL | 256 | Optimized for 64dim/head |
| Attention Heads | 4 | |
| Vocabulary | ~50000 | w/ 160 Sequence length |
Compute Infrastructure
Hardware
RTX 3050 6GB
Software
Windows 11, Intel i5-10400
Configuration
- Architecture
- LightningForCausalLM
- Vocabulary size
- 50,000
- Model type
- lightning
Identity and Version
- Repository
- Aobangaming/lightning-30m-ft
- Publisher
- AobanZ
- Task
- Text generation
- Modality
- Text
- Library
- transformers
- Parameters
- 29M parameters
- Languages
- en
- Revision
- a0fb96120e352569d92a6fc683b63de9ed9d972e
- First published
- 2026-09-12
- Last updated
- 2026-09-20
Files and Weights
8 files, 234.1 MB in total. The weights are 2 files totalling 230.4 MB in bin, safetensors.
Every file
| File | Type | Size | SHA-256 |
|---|---|---|---|
| model.safetensors | Weights | 115.2 MB | 7a57408a15dd |
| pytorch_model.bin | Weights | 115.2 MB | 2f13c912ae94 |
| config.json | Configuration | 425 B | — |
| configuration_lightning.py | Configuration | 848 B | — |
| modeling_lightning.py | Configuration | 5.9 KB | — |
| README.md | Documentation | 4.5 KB | — |
| .gitattributes | Repository | 1.5 KB | — |
| tokenizer.json | Tokenizer | 3.7 MB | — |
License and Download
- License
- mit
- Access
- Open weights, no gate
- Download size
- 230.4 MB
Released by AobanZ through its official repository on Hugging Face. Read the license.
Built From
- Described by arXiv:1910.09700
- Trained on (disclosed) kmfoda/booksum
Memory Requirements
| Precision | Weights in memory |
|---|---|
| As published | 230.4 MB |
| 16-bit | 0.1 GB |
| 8-bit | 0.0 GB |
| 4-bit | 0.0 GB |
Weights only, from the published parameter count; the key-value cache and runtime add to this.
Built on This Model
- Derived fromlightning-60m
- Derived fromlightning-105m
Questions About lightning-30m-ft
How much GPU memory does lightning-30m-ft need?
About 0.1 GB at 16-bit and 0 GB at 4-bit: the weights (29M parameters) plus a working margin. A long context needs more.
What is the cheapest GPU to run lightning-30m-ft 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-30m-ft commercially?
Yes. lightning-30m-ft 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
This model is a fine-tuned version of fpadovani/eng-latn-10mb-ppt-Dp-10mb-packedseed3407. It has been trained using TRL. This model was trained with SFT.
SAGI 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. - Episodic + Semantic Memory: Dual memory system with trainable retrieval utility The swarm processes observations derived from token embeddings, updating its internal state S. This state conditions the transformer's attention patterns and feed-forward activations via learned projections, creating bidirectional information flow between symbolic (tokens) and subsymbolic (swarm dynamics) processing. - Educational…
Aloha! Today, we are releasing Ornith-1.0, a self-improving family of open-source models for agentic coding. This model card documents Ornith-1.0-9B, the most lightweight member of the Ornith family, designed for efficient single-GPU deployment. Ornith-1.0-9B is a dense ~9B model (≈19 GB in bf16), so it serves comfortably on a single 80GB GPU. The recipes below stand up an OpenAI-compatible server; add --tensor-parallel-size / --tp if you want to shard across more GPUs. For a quick local test (or to script offline generation), load the model directly with Transformers. Make sure you have a recent release installed — see the Transformers installation guide; Ornith-1.0-9B requires…
Aloha! Today, we are releasing Ornith-1.0, a self-improving family of open-source models for agentic coding. This model card documents Ornith-1.0-35B, the lightweight member of the Ornith family, designed for efficient single-GPU deployment. The two recipes below stand up an OpenAI-compatible server on a single 8×80GB GPU node (tensor-parallel 8). Adjust --tensor-parallel-size / --tp to the number of GPUs you have. For a quick local test (or to script offline generation), load the model directly with Transformers. Make sure you have a recent release installed — see the Transformers installation guide; Ornith-1.0-35B requires transformers >= 5.8.1. To split the reasoning trace from the final…
VinaySLM is a small language model (SLM) built from scratch in PyTorch to learn how decoder-only Transformers work end to end -- tokenization, embeddings, causal self-attention, training, and generation -- without importing a pretrained architecture. This is not a production-quality language model. - A tiny, hand-written, decoder-only (GPT-style) Transformer. - 466,176 parameters. - Trained on a ~600-token toy corpus of AI/programming sentences. - Packaged here as a custom Hugging Face model (trustremotecode=True) so it can be loaded and inspected through the transformers ecosystem, while the actual Transformer implementation (modelingvinayslm.py) is a thin wrapper around this project's…