PyTorch
Safetensors
atomslm
language-model

AtomSLM-600K-Gated

AtomSLM is a compact language model family achieving competitive performance at minimal parameter cost through proprietary architecture.

Model Details

Field Value
Parameters 0.589M
Vocab size 4096
Context window 256 tokens
Best val loss 3.3287
Best PPL (val) 27.90
Trained steps 4700

Training

Trained on the following datasets with a custom BPE tokenizer (vocab size matching the config above):

  • roneneldan/TinyStories
  • wikitext-2-raw-v1
  • wikitext-103-raw-v1
  • hand-crafted-conversations
  • HuggingFaceTB/everyday-conversations-llama3.1-2k

Hyperparameters

{
  "data_dir": "data/processed",
  "save_dir": "runs/AtomSLM-600K-gated",
  "config": "AtomSLM-600K-gated",
  "steps": 5000,
  "eval_every": 100,
  "save_every": 500,
  "batch_size": 32,
  "seq_len": 256,
  "lr": 0.0005,
  "lr_min": 5e-05,
  "warmup": 1000,
  "grad_clip": 1.0,
  "dropout": 0.1,
  "device": "auto",
  "resume": null,
  "compile": false,
  "amp": false,
  "core_warmup_steps": 0,
  "gated": true
}

Training Dashboard

Training Dashboard

Benchmark vs Reference Models

Comparison Charts

Usage

import torch
from safetensors.torch import load_file
from models.atomgpt import AtomSLM
from models.config import AtomSLMConfig

# Load config and weights
import json
cfg = AtomSLMConfig(**json.load(open('config.json')))
state_dict = load_file('model.safetensors')

model = AtomSLM(cfg)
model.load_state_dict(state_dict)
model.eval()

License

Apache 2.0

Downloads last month
22
Safetensors
Model size
1.06M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Datasets used to train Sqersters/AtomSLM-600K-Gated

Collection including Sqersters/AtomSLM-600K-Gated