Instructions to use AuraWorxAI/weather-llm-checkpoints with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AuraWorxAI/weather-llm-checkpoints with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AuraWorxAI/weather-llm-checkpoints")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AuraWorxAI/weather-llm-checkpoints", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AuraWorxAI/weather-llm-checkpoints with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AuraWorxAI/weather-llm-checkpoints" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AuraWorxAI/weather-llm-checkpoints", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AuraWorxAI/weather-llm-checkpoints
- SGLang
How to use AuraWorxAI/weather-llm-checkpoints 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 "AuraWorxAI/weather-llm-checkpoints" \ --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": "AuraWorxAI/weather-llm-checkpoints", "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 "AuraWorxAI/weather-llm-checkpoints" \ --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": "AuraWorxAI/weather-llm-checkpoints", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AuraWorxAI/weather-llm-checkpoints with Docker Model Runner:
docker model run hf.co/AuraWorxAI/weather-llm-checkpoints
Weather LLM β training backups & reproducibility
Decoder-only LLaMA-style causal LM (RMSNorm, RoPE, SwiGLU) trained from scratch on U.S. NOAA GHCN-Dailyβderived text mixed with English Wikipedia, with planned supervised fine-tuning (SFT) for instruction-style weather analysis. This Hugging Face repository holds checkpoints, tokenizer, processed data, and full project source so runs can be restored or resumed on a new machine.
What is in this repository
| Path | Description |
|---|---|
phase_a/checkpoint-20000/ |
Phase A pretraining completed at global step 20β―000 (wiki-heavy corpus). Full Trainer checkpoint: model.safetensors, optimizer, scheduler, RNG state β use to resume Phase B or as a standalone pretrained base. |
phase_b/checkpoint-XXXXX/ |
Phase B (weather-heavy) pretraining backup checkpoint(s). Filenames reflect the step when uploaded; re-upload periodically if training continues. Contains full resume state. |
tokenizer/ |
SentencePiece + Hugging Face tokenizer trained on the merged weather-heavy training corpus. Fixed for all pretrain and SFT stages. |
data/ |
Processed JSONL: weather.jsonl, wikipedia.jsonl, Phase A / Phase B train & val merges (train_phase_a.jsonl, val_phase_a.jsonl, train.jsonl, val.jsonl), plus manifest.json where applicable. |
src/, scripts/, configs/, tests/ |
Python package, CLI scripts, YAML configs, and unit tests β match the GitHub repo layout. |
pyproject.toml, requirements.txt, .gitignore |
Install and dependency metadata. |
Note: Final SFT weights (artifacts/checkpoints/sft/run1_stage2/ locally) may be published in this repo or a separate model repo when training completes.
Training pipeline (high level)
- Data: NOAA download β
preprocess_noaa.pyβpreprocess_wiki.pyβmerge_corpus.py(Phase A: ~70% wiki / 30% weather; Phase B: ~85% weather / 15% wiki). - Tokenizer:
train_tokenizer.pyon the Phase B merge corpus βartifacts/tokenizer/. - Phase A pretrain:
configs/pretrain_phase_a.yaml+configs/model_stage2.yamlβ general English foundation. - Phase B pretrain:
configs/pretrain_stage2.yamlβ resume from Phase A final checkpoint; weather-domain specialization. Setmax_stepsto Phase A end + desired Phase B steps (e.g. 20β―000 + 25β―000 = 45β―000) so the global step counter yields the intended number of Phase B steps. - SFT:
build_sft_dataset.pyβconfigs/sft_default.yamlβ instruction-tuned checkpoint.
Pretraining uses Hugging Face Trainer with load_best_model_at_end on eval_loss where configured; checkpoints include optimizer state for resume.
Download everything locally
pip install huggingface_hub
hf download AuraWorxAI/weather-llm-checkpoints --local-dir ./weather-llm-checkpoints
Resume pretraining from a checkpoint
Point --resume_from_checkpoint at the directory that contains trainer_state.json (and model.safetensors, optimizer.pt, etc.):
torchrun --standalone --nproc_per_node=2 scripts/train_pretrain.py \
--pretrain_config configs/pretrain_stage2.yaml \
--model_config configs/model_stage2.yaml \
--resume_from_checkpoint ./weather-llm-checkpoints/phase_b/checkpoint-24000
Adjust paths and configs to match Phase A vs Phase B and your local layout.
Inference (after SFT checkpoint is available locally)
SFT uses the same instruction format as weather_llm.inference.generate (### Instruction: / ### Response:). Example:
pip install -e .
python -m weather_llm.inference.generate \
--model_dir artifacts/checkpoints/sft/run1_stage2 \
--prompt "Compare summer weather patterns in Arizona vs Washington."
Intended use
- Research and education on historical U.S. weather language and from-scratch LM pretraining.
- Reproducing or extending the training pipeline using the bundled code and data.
Limitations
- Not a replacement for official forecasts, aviation weather, or safety-critical decisions.
- Model quality depends on the specific checkpoint, tokenizer, and training stage (pretrain vs SFT).
- GHCN-derived text describes past observations; the SFT mix includes refusals for live/forecast-style prompts where configured.
Maintainer
AuraWorxAI β see also the project GitHub repository for development history.