StoriesLM-v2
Collection
StoriesLM-v2 is a family of 125 encoder-only language models with time-indexed knowledge cutoffs. โข 125 items โข Updated
Run suproteem/StoriesLM-v2-2021 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/suproteem/StoriesLM-v2-2021. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/suproteem/StoriesLM-v2-2021 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use suproteem/StoriesLM-v2-2021 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="suproteem/StoriesLM-v2-2021") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("suproteem/StoriesLM-v2-2021")
model = AutoModelForMaskedLM.from_pretrained("suproteem/StoriesLM-v2-2021", device_map="auto")StoriesLM-v2 is a family of 125 encoder-only language models trained on an expanding sequence of historical language data.
More details are available at suproteem.is/writing/storieslm.
from transformers import AutoTokenizer, AutoModelForMaskedLM
model_id = "suproteem/StoriesLM-v2-2021"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForMaskedLM.from_pretrained(model_id)
from transformers import pipeline
fill_mask = pipeline("fill-mask", model="suproteem/StoriesLM-v2-2021")
fill_mask("We walked back and [MASK].")
@article{sarkar2024storieslm,
author = {Sarkar, Suproteem},
title = {StoriesLM: A Family of Language Models With Time-Indexed Training Data},
journal = {SSRN Electronic Journal},
year = {2024},
url = {https://ssrn.com/abstract=4881024}
}