Text Generation
Transformers
Safetensors
English
llama
causal-lm
base-model
non-instruction-tuned
non-it
from-scratch
medical
education
slm-train-scratch
text-generation-inference
Instructions to use mps/blue-scrub-150M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mps/blue-scrub-150M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mps/blue-scrub-150M")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("mps/blue-scrub-150M") model = AutoModelForCausalLM.from_pretrained("mps/blue-scrub-150M", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use mps/blue-scrub-150M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mps/blue-scrub-150M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mps/blue-scrub-150M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/mps/blue-scrub-150M
- SGLang
How to use mps/blue-scrub-150M 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 "mps/blue-scrub-150M" \ --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": "mps/blue-scrub-150M", "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 "mps/blue-scrub-150M" \ --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": "mps/blue-scrub-150M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use mps/blue-scrub-150M with Docker Model Runner:
docker model run hf.co/mps/blue-scrub-150M
blue-scrub-150M
Phase 5 Hugging Face deployment from slm-train-scratch.
Model summary
- Model type: decoder-only causal language model (
LlamaForCausalLM). - Model size: 150M-class; measured checkpoint size is 154.42M parameters.
- Instruction tuning: Non-IT / non-instruction-tuned. This is a base language model, not a chat model and not instruction aligned.
- Tokenizer: byte-level BPE-style tokenizer with vocabulary size 32000.
- Precision: bfloat16 checkpoint.
Training data
The model was pretrained on a cleaned mixture of general educational text and medical/health-domain text.
- General/education source: HuggingFaceFW/FineWeb-Edu, cleaned and filtered subset: 2.00M rows.
- Medical/health source: TheBlueScrubs/the_blue_scrubs-v1, cleaned and filtered subset: 2.00M rows.
- Packed train tokens: 5.72B tokens.
- Packed validation tokens: 18.22M tokens.
Training run
- Epochs configured: 1.
- Approximate logged wall-clock training time: 73.3 hours (3.1 days). This is based on recorded metrics and may include evaluation, resume, and pause gaps.
Intended use
This checkpoint is intended for:
- research experiments with small/base language models;
- continued pretraining;
- domain adaptation experiments;
- evaluation of a compact medical-plus-education pretrained base model.
Limitations
- This is not an instruction-tuned or chat-aligned model.
- Outputs may be incomplete, incorrect, or unsafe without downstream alignment and evaluation.
- The model must not be used as a source of medical advice.
- The training mixture contains web and domain text; users should evaluate bias, factuality, memorization, and domain safety before downstream use.
Basic loading
from transformers import AutoModelForCausalLM, AutoTokenizer
repo_id = "mps/blue-scrub-150M"
tokenizer = AutoTokenizer.from_pretrained(repo_id)
model = AutoModelForCausalLM.from_pretrained(repo_id, torch_dtype="auto")
- Downloads last month
- 1,162