Instructions to use bmax16634/solollm-1.0-152m-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bmax16634/solollm-1.0-152m-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bmax16634/solollm-1.0-152m-base", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("bmax16634/solollm-1.0-152m-base", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use bmax16634/solollm-1.0-152m-base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bmax16634/solollm-1.0-152m-base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bmax16634/solollm-1.0-152m-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/bmax16634/solollm-1.0-152m-base
- SGLang
How to use bmax16634/solollm-1.0-152m-base 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 "bmax16634/solollm-1.0-152m-base" \ --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": "bmax16634/solollm-1.0-152m-base", "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 "bmax16634/solollm-1.0-152m-base" \ --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": "bmax16634/solollm-1.0-152m-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use bmax16634/solollm-1.0-152m-base with Docker Model Runner:
docker model run hf.co/bmax16634/solollm-1.0-152m-base
SoloLLM-1.0-152M-Base
SoloLLM-1.0-152M-Base is a from-scratch decoder-only base language model from the SoloLLM project. It is trained for text completion, not instruction following or chat.
Best completed SoloLLM 1.0 base checkpoint; beats GPT-2 small across the fixed project eval suite, while using more parameters than GPT-2 small.
Results
| Metric | SoloLLM-1.0-152M-Base | GPT-2 small |
|---|---|---|
| Parameters | 151,868,928 | 124,439,808 |
| Train tokens | 9,800,572,928 | public |
| Project held-out PPL | 24.30 | 25.32 |
| WikiText-2 PPL | 41.75 | 45.32 |
| LAMBADA PPL | 34.06 | 40.62 |
| LAMBADA last-token acc | 47.27% | 46.67% |
| LAMBADA last-word acc | 33.05% | 32.60% |
| MC avg normalized acc | 43.61% | 41.05% |
Model Details
| Item | Value |
|---|---|
| Architecture | Decoder-only GPT-style transformer |
| Parameters | 151,868,928 |
| Context length | 1024 |
| Tokenizer | GPT-2 tokenizer |
| Embedding width | 768 |
| Layers | 16 |
| Attention heads | 12 |
| Positional method | RoPE |
| Normalization | RMSNorm |
| MLP | SwiGLU |
| Dropout | 0.0 |
| Weight tying | Input/output embeddings tied |
| Training hardware | Single RTX 3090 |
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
repo_id = "bmax16634/solollm-1.0-152m-base"
tokenizer = AutoTokenizer.from_pretrained(repo_id)
model = AutoModelForCausalLM.from_pretrained(repo_id, trust_remote_code=True)
Original Format
The original/ folder contains the raw PyTorch state dict and sanitized training metadata from the SoloLLM training run. The root-level model.safetensors file is the preferred Hugging Face/Transformers format.
Limitations
This is a base model. It is not instruction-tuned, RLHF-tuned, safety-tuned, or optimized for chat behavior.
- Downloads last month
- -
Datasets used to train bmax16634/solollm-1.0-152m-base
HuggingFaceFW/fineweb-edu
mlfoundations/dclm-baseline-1.0
Collection including bmax16634/solollm-1.0-152m-base
Evaluation results
- Held-out perplexity on SoloLLM project held-out shardsself-reported24.304
- WikiText-2 perplexity on WikiText-2 testself-reported41.751
- LAMBADA perplexity on LAMBADAself-reported34.061
- LAMBADA last-word accuracy on LAMBADAself-reported0.330