Run this model with HF Jobs

Run qubitpage/sentinel-prime-nano-moe on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/qubitpage/sentinel-prime-nano-moe. Ask me which dataset to train on, then push the fine-tuned model to a new private model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/qubitpage/sentinel-prime-nano-moe on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/qubitpage/sentinel-prime-nano-moe. Ask me which benchmark to run, then save the scores and the per-example results to a new private dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/qubitpage/sentinel-prime-nano-moe. Push it to a new private model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

Sentinel Prime Nano β€” Sparse MoE Language Model

Sentinel Prime is a from-scratch sparse Mixture of Experts (MoE) transformer built by QubitPage Research.

Architecture

Parameter Value
Total Parameters 322,435,584
Active Parameters ~161,217,792 per token
Hidden Dimension 768
Layers 12
Attention Heads 12 (Q) / 4 (KV)
FFN Dimension 2048
Experts 4 total, top-2 active
Vocab Size 100,277 (tiktoken cl100k_base)
Max Sequence Length 1024
Position Encoding RoPE (theta=500000.0)
Normalization RMSNorm
FFN Type SwiGLU
Attention Grouped Query Attention (GQA)

Key Features

  • Sparse MoE: Only 2/4 experts active per token
  • GQA: Memory-efficient grouped query attention
  • SwiGLU: LLaMA/Mistral-style feed-forward
  • RoPE: Rotary position embeddings for length generalization
  • From Scratch: No pretrained weights, trained from random initialization

Training

  • Data: FineWeb-Edu (educational web text)
  • Tokens Seen: 698,368
  • Best Validation Loss: 10.1536
  • Hardware: NVIDIA RTX 3060 12GB
  • Framework: PyTorch 2.11.0+cu126

Usage

from transformers import AutoModelForCausalLM, AutoConfig
# Register custom model
from hf_model import SentinelBrainConfig, SentinelBrainForCausalLM
from hf_tokenizer import SentinelBrainTokenizer

model = SentinelBrainForCausalLM.from_pretrained("qubitpage/sentinel-prime-nano")
tokenizer = SentinelBrainTokenizer()

input_ids = tokenizer("The meaning of life is", return_tensors="pt")["input_ids"]
output = model.generate(input_ids, max_new_tokens=50)
print(tokenizer.decode(output[0]))

License

Apache 2.0

Downloads last month
-
Safetensors
Model size
0.3B params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support