Downloads · 30 days
3
4% of all-time downloads
dogtooth/open-lm-3b-201305-midtrain-stage1-sft
open-lm-3b-201305-midtrain-stage1-sft is a text generation model from dogtooth. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apple-ascl.
Stage1 supervised fine-tune on top of the mid-trained Apple Open LM 3B oracle model with knowledge cutoff May 2013, from the TiC-LM (Time-Continual Language Modeling) / Chrononauts project.
Downloads · 30 days
3
4% of all-time downloads
All-time downloads
77
Public
Parameters
2.8B
16.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors22.4 GB · 100%
From the Hugging Face model README
Stage1 supervised fine-tune on top of the mid-trained Apple Open LM 3B oracle model with knowledge cutoff May 2013, from the TiC-LM (Time-Continual Language Modeling) / Chrononauts project.
Pipeline:
dogtooth/open-lm-3b-201305 — base oracle pretrain.dogtooth/open-lm-3b-201305-midtrain — mid-train on pre-cutoff
peS2o + Wikipedia + DCLM to consolidate knowledge.Fine-tuned with LLaMA-Factory
(finetuning_type: full, DeepSpeed ZeRO-2, 3 epochs).
| Property | Value |
|---|---|
| Base model | dogtooth/open-lm-3b-201305-midtrain |
| Architecture | LLaMA-style with QK norm (OpenLMForCausalLM, custom code) |
| Parameters | ~2.8B |
| Knowledge cutoff | May 2013 |
| Vocab size | 50,432 |
| Context length | 2,048 |
| SFT framework | LLaMA-Factory (full FT, DeepSpeed ZeRO-2) |
| Chat template | `Human: {prompt}< |
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model = AutoModelForCausalLM.from_pretrained(
"dogtooth/open-lm-3b-201305-midtrain-stage1-sft",
dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True,
)
tokenizer = AutoTokenizer.from_pretrained(
"dogtooth/open-lm-3b-201305-midtrain-stage1-sft", trust_remote_code=True
)
prompt = "Human: What is the capital of France?<|endoftext|>\nAssistant:"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=200, do_sample=False)
print(tokenizer.decode(out[0][inputs.input_ids.shape[1]:], skip_special_tokens=False))
model-*.safetensors)checkpoint-1000/, checkpoint-2000/,
checkpoint-2346/ (HF-format weights only)trainer_state.json, trainer_log.jsonl, all_results.json,
train_results.json@article{jain2024ticlm,
title={Time-Continual Learning from a Streaming Language Model},
author={Jain, Ameya and Ramesh, Aakanksha and Li, Tianjian and others},
journal={arXiv preprint arXiv:2410.14660},
year={2024}
}