Run this model with HF Jobs

Run TextMachineProject/NewsBERT_post_1900_lora_1epoch 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:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/TextMachineProject/NewsBERT_post_1900_lora_1epoch. 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.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/TextMachineProject/NewsBERT_post_1900_lora_1epoch 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.

NewsBERT post-1900 LoRA adapter (1 epoch)

A LoRA adapter for TextMachineProject/NewsBERT_1800-1920, fine-tuned for one epoch on newspaper text (post-1900) from the Heritage Made Digital (HMD14) and Living with Machines (LwM) collections.

Training details

  • Period: post-1900
  • Base model: TextMachineProject/NewsBERT_1800-1920
  • Method: LoRA (PEFT), target modules: query, value, word_embeddings
  • LoRA rank: 16, alpha: 32, dropout: 0.05
  • Task: Masked Language Modelling (15% masking probability)
  • Sequence length: 128 tokens (sliding window, stride 96)
  • Epochs: 1
  • Batch size: 256

Usage

from transformers import AutoTokenizer, AutoModelForMaskedLM
from peft import PeftModel

base = AutoModelForMaskedLM.from_pretrained("TextMachineProject/NewsBERT_1800-1920")
tokenizer = AutoTokenizer.from_pretrained("TextMachineProject/NewsBERT_1800-1920")
model = PeftModel.from_pretrained(base, "TextMachineProject/NewsBERT_post_1900_lora_1epoch")

Notes

This is a 1-epoch checkpoint uploaded for evaluation purposes. Further training is ongoing; updated adapters will be released separately.

Downloads last month
5
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for TextMachineProject/NewsBERT_post_1900_lora_1epoch

Adapter
(10)
this model

Collection including TextMachineProject/NewsBERT_post_1900_lora_1epoch