Model Card for Aoban 1

Model Details

Aoban is a next generation text model designed for keeping context over long amounts of text.

Model Description

Aoban 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

Aoban 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

Aoban 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

This model can be fine tuned to a text continuer.

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

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

Recommendations

We recommend users of Aoban 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/aoban-1-base"

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")
)

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,
)

Training Details

Training Data

Luna was trained on highly specialized, high quality english sentences.

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

Epoch Average Loss Perplexity
1/10 7.403553344 1641.808227539
2/10 6.424439240 616.734985352
3/10 5.926600045 374.877746582
4/10 5.413045830 224.313781738
5/10 4.846523407 127.297042847
6/10 4.230059040 68.721298218
7/10 3.576859904 35.761074066
8/10 3.068302144 21.505359650
9/10 2.610309639 13.603261948
10/10 1.846334972 6.336553097

Training Hyperparameters

Hyperparameter Value Comment
Precision FP32
Optimizer AdamW
Learning rate 4e-4
Batch size 32

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

Aoban 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.

Hyperparameter Value Comment
Layers 8
D_MODEL 384
Attention Heads 6
Vocabulary ~75000 w/ 200 Sequence length
Downloads last month
41
Safetensors
Model size
71.9M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train Aobangaming/aoban-1-base

Paper for Aobangaming/aoban-1-base