Instructions to use kepton0117/chrono-2021-sn38 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kepton0117/chrono-2021-sn38 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kepton0117/chrono-2021-sn38")# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("kepton0117/chrono-2021-sn38", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use kepton0117/chrono-2021-sn38 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kepton0117/chrono-2021-sn38" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kepton0117/chrono-2021-sn38", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/kepton0117/chrono-2021-sn38
- SGLang
How to use kepton0117/chrono-2021-sn38 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 "kepton0117/chrono-2021-sn38" \ --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": "kepton0117/chrono-2021-sn38", "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 "kepton0117/chrono-2021-sn38" \ --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": "kepton0117/chrono-2021-sn38", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use kepton0117/chrono-2021-sn38 with Docker Model Runner:
docker model run hf.co/kepton0117/chrono-2021-sn38
chrono-2021-sn38 β SN38 Round 12 (year 2021)
Continue-pretrained sn38-nanochrono (~2.02B) for Bittensor subnet 38, cutoff 2021-12-31.
- Pin (this repo):
f62e238265e3ca4a4ed20b300475513446d9e1fc= train step-4000 - Base:
anacoluthe89/chrono-2020@633eb832c3de8eceb0b5bba1c5fb94faa8e777c6(UID 131) - Data + scripts:
kepton0117/sn38-train-2021 - Code: github.com/kepton0117/sn38
- Cosine vs UID 131 at this pin: 0.9294 (copy gate needs < 0.95)
recipe/ in this repo is the train algorithm and launch scripts that produced the pin.
Algorithm
Full-parameter causal LM continue-pretrain (CPT). Not LoRA. Not instruction SFT.
loss = cross_entropy(model(tokens[:-1]), tokens[1:])
| Piece | Value |
|---|---|
| Arch | sn38-nanochrono, 28 layers, hidden 1792, seq 2048 |
| Update | all parameters |
| Replay | 15% FineWeb 2017β2020 |
| Packing | docs concatenated, cut every 2048 tokens, EOS between docs |
| Optimizer | AdamW, weight decay 0.1, betas (0.9, 0.95) |
| Schedule | cosine decay, 3% warmup |
| Parallel | 8Γ H200 DDP |
Recipe that produced this pin
| Knob | Value |
|---|---|
| GPUs | 8Γ H200 |
| Micro-batch / GPU | 16 |
| Grad accum | 2 |
| Tokens / step | 8 Γ 16 Γ 2048 Γ 2 = 524,288 |
| LR | 1e-3 (1e-4 / 3e-4 left cosine stuck at ~0.999) |
| Checkpoint | step-4000 |
| Data | FineWeb last-4 2021 dumps (60%) + older FineWeb (15%) + brimmann2/enwiki-dec2021 (25%) |
| Filter | drop short / nav / repetitive docs (~12.5%) |
| Packed tokens | 2,610,770 Γ 2048 β 5.35B |
# needs sn38.architectures from the GitHub repo
LR=1e-3 bash scripts/run_train_h200x8_2021.sh
Do not use FineWeb name='default' or Wikipedia 20220301.en β those leak 2022+.
Files
| Path | What |
|---|---|
model.safetensors |
step-4000 weights |
config.json |
nanochrono config |
recipe/ |
launcher, trainer, data build, filter |
- Downloads last month
- 777