Instructions to use VectaBass/vectabass-618m-26.5bt-base-cooled with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use VectaBass/vectabass-618m-26.5bt-base-cooled with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="VectaBass/vectabass-618m-26.5bt-base-cooled", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("VectaBass/vectabass-618m-26.5bt-base-cooled", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use VectaBass/vectabass-618m-26.5bt-base-cooled with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "VectaBass/vectabass-618m-26.5bt-base-cooled" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "VectaBass/vectabass-618m-26.5bt-base-cooled", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/VectaBass/vectabass-618m-26.5bt-base-cooled
- SGLang
How to use VectaBass/vectabass-618m-26.5bt-base-cooled with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "VectaBass/vectabass-618m-26.5bt-base-cooled" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "VectaBass/vectabass-618m-26.5bt-base-cooled", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "VectaBass/vectabass-618m-26.5bt-base-cooled" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "VectaBass/vectabass-618m-26.5bt-base-cooled", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use VectaBass/vectabass-618m-26.5bt-base-cooled with Docker Model Runner:
docker model run hf.co/VectaBass/vectabass-618m-26.5bt-base-cooled
vectabass-618m-26.5bt-base-cooled
Paper cell N4-D5 of the AR square (527.7M non-embedding parameters).
A 618M-parameter base language model (527.7M non-embedding), trained on 26.46B tokens. It is one cell of the Phase 1 AR square: one model ladder from 100M to 1.6B non-embedding parameters, each size trained to several token budgets, released together so the scaling law can be checked.
Seed replicates of this cell, same recipe with a new initialisation and data order, are on branches seed2. Load one with revision="seed2". The paper uses them to measure run-to-run noise.
This is a base model. It is not instruction tuned or safety tuned.
Use
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("VectaBass/vectabass-618m-26.5bt-base-cooled")
model = AutoModelForCausalLM.from_pretrained("VectaBass/vectabass-618m-26.5bt-base-cooled", trust_remote_code=True, dtype=torch.bfloat16)
ids = tok("The Senedd is", return_tensors="pt")
print(tok.decode(model.generate(**ids, max_new_tokens=40)[0]))
trust_remote_code loads modeling_vectabass.py from this repo. The network is Llama-like plus exclusive self-attention (XSA), which Llama does not have. Run it in bf16, as trained.
Model
| Non-embedding parameters | 527,708,160 |
| Total parameters | 617,852,928 (embeddings tied) |
| Width, layers | 1792, 15 |
| Heads | 28 query, 14 key-value, dim 64 |
| Feed-forward | SwiGLU, 4752 |
| Norm | RMSNorm, pre-norm |
| Positions | RoPE, base 10000, context 2048 |
| Attention | causal, GQA 2:1, XSA |
| Vocabulary | 50304 rows: GPT-2 BPE (50257) plus 26 special tokens, the rest padding |
Training
| Tokens | 26,464,944,128 (50 per non-embedding parameter) |
| Batch | 458,752 tokens |
| Optimizer | Muon (hidden matrices, NS 5, Moonlight RMS 0.2, momentum 0.95) + fp32 AdamW (0.9, 0.95) |
| Peak LR | 0.00148 |
| Warmup | 437M tokens |
| Schedule | warmup, constant, then a 1-sqrt cooldown to 0 over the last 20% |
| Weight decay | 0.0575 on matrices |
| Precision | bf16 weights and activations, fp32 master weights in the optimizer; fp32 norm statistics, RoPE angles and logits |
| Hardware | 2 x NVIDIA GH200 120GB |
The data is the phase-1-release view: 47 bins of openly licensed text, about 96B unique tokens, with UK public-sector, parliamentary and Celtic-language sources. See DATA.md for every bin, its share and its licence.
Evaluation
Validation loss on our held-out canon (phase-1-release canon-8192, 8192 x 2048 tokens): 2.0352 nats per token.
This repo's weights reproduce the training code's logits bitwise and score 2.0352 here under PyTorch SDPA (training used FlashAttention-4).
Zero-shot benchmark scores for this model are not measured yet.
Limitations
- A base model trained for a scaling study, not for use as an assistant. It will state false things fluently.
- Context is 2048 tokens.
- Mostly English, with Welsh, Scottish Gaelic, Irish, Manx, Cornish and Scots in smaller shares.
- No safety tuning and no filtering of outputs.
Provenance
Run contract ar-square--N4-D5 (revision 484660bf5891). Source checkpoint sha256 9e279169540e44ff836f0fc5f90f3bf0d0854c15f77139c95ed317455274e0d2. See provenance.json.
Acknowledgements
The authors acknowledge the use of resources provided by the Isambard-AI National AI Research Resource (AIRR) (McIntosh-Smith, Alam and Woods, 2024). Isambard-AI is operated by the University of Bristol and is funded by the UK Government's Department for Science, Innovation and Technology (DSIT) via UK Research and Innovation; and the Science and Technology Facilities Council [ST/AIRR/I-A-I/1023].
Citation
Paper forthcoming. Until then, cite this repository.
- Downloads last month
- 58