CoolFace
Modelpublic

sathishphdai/database-admin-slm-1m

sourceHugging Facemitupdated 7mo agoView on Hugging Face
0likes14downloads
Model Card

Database Admin-SLM: Role-Based Small Language Model

A LLaMA-style transformer (~1007.5M params, ~1.01B) trained from scratch for the Database Admin role. Supports up to 1M token context via RoPE with gradient checkpointing.

Architecture

ComponentValue
ArchitectureLLaMA-style (RoPE + RMSNorm + SwiGLU)
Parameters~1007.5M (~1.01B)
Layers32
Heads20
Embedding1600
Max Context100,000,000,000 tokens
Max Output1,000,000 tokens
Vocab13,202 BPE
Model Size~4 GB (fp32)

Training

  • Best eval loss: 6.770246982574463
  • Trained with gradient checkpointing on Apple M4 (MPS)
  • 3 epochs, batchsize=1, gradaccum=16

Usage

python
from huggingface_hub import hf_hub_download
from tokenizers import Tokenizer

model_path = hf_hub_download("sathishphdai/database-admin-slm-1m", "model.safetensors")
tokenizer_path = hf_hub_download("sathishphdai/database-admin-slm-1m", "database_admin_tokenizer.json")
tokenizer = Tokenizer.from_file(tokenizer_path)