Velqora-95M-Base

Velqora-95M-Base is a 94,561,681-parameter (~94.56M), English-first, decoder-only pretrained base causal language model trained from random initialization on a single NVIDIA GeForce RTX 4060 (8 GB) under Windows 11.

GGUF companion: Maxilicious20/Velqora-95M-Base-GGUF

Model overview

Property Value
Developer Maxilicious20
Parameters 94,561,681 (~94.56M)
Model type Decoder-only causal language model (Pretrained Base)
Training origin From scratch, no pretrained foundation weights
Primary language English
Transformer layers 18
Hidden size 640
Attention 10 query heads / 5 key-value heads (GQA) + QK-Norm + Layer-0 Value Residuals
Feed-forward dimension 1,792, SwiGLU
Position embeddings RoPE, base θ = 50,000
Normalization RMSNorm
Token embeddings Tied input/output embeddings
Tokenizer Custom 16,384-token byte-level BPE
Maximum context window 4,096 tokens
Best validation loss 4.6043
Implementation Custom PyTorch (scaled_dot_product_attention, bfloat16)
Training hardware Windows 11, NVIDIA RTX 4060 8 GB
License Apache-2.0

Implementation note: This release uses a custom PyTorch architecture (velqora/model.py), custom tokenizer (tokenizer.json), and tied embeddings rather than AutoModelForCausalLM.

Training

This base checkpoint was trained from random initialization using next-token prediction on a single NVIDIA RTX 4060 (8 GB) across curated educational web, textbook, and narrative datasets.

Download and run (custom PyTorch implementation)

Repository layout:

README.md
model.safetensors             # Exported bfloat16 weights (best checkpoint)
config.json                   # VelqoraNextGen architecture configuration
tokenizer.json                # Custom byte-level BPE tokenizer
generation_config.json        # Recommended generation defaults
run_inference.py              # Ready-to-run CLI inference script
├── best_checkpoint/
│   ├── model.safetensors     # Verified bfloat16 safetensors copy
│   └── model.pt              # Best validation PyTorch checkpoint
├── latest_checkpoint/
│   ├── model.safetensors     # Verified bfloat16 safetensors copy
│   └── model.pt              # Final step PyTorch checkpoint
velqora/
  __init__.py
  model.py                    # Custom VelqoraNextGenForCausalLM implementation

Install dependencies and run locally:

pip install torch safetensors tokenizers huggingface_hub
hf download Maxilicious20/Velqora-95M-Base --local-dir ./Velqora-95M-Base
python ./Velqora-95M-Base/run_inference.py --model-dir ./Velqora-95M-Base --prompt "What is the capital of Germany?"

Prompting (Base Model)

As a Base pretrained model (not instruction-tuned), prompt it with natural text continuations rather than ChatML tags, up to 4,096 tokens.

Intended use and limitations

Appropriate use: Research on compact, from-scratch language models, local edge inference experiments, and educational study of modern transformer components (GQA, QK-Norm, Value Residuals, SwiGLU, RoPE).

Limitations: Because this model has ~95M parameters trained from scratch on a single consumer GPU, it can hallucinate facts, make arithmetic errors, or struggle with complex instructions. Do not use it for medical, legal, financial, or safety-critical tasks.

License

Licensed under the Apache License 2.0 (apache-2.0).

Citation and links

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

Model tree for Maxilicious20/Velqora-95M-Base

Quantizations
1 model

Datasets used to train Maxilicious20/Velqora-95M-Base

Collection including Maxilicious20/Velqora-95M-Base