Views
No views yet
HFforLegal/case-law (US court opinions) — ~36%PleIAs/SEC (SEC filings) — ~40%HuggingFaceFW/fineweb-edu (educational web) — ~24%1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3tok = AutoTokenizer.from_pretrained("VigneshwarKandhaiya/legal-slm-125m-base")
4model = AutoModelForCausalLM.from_pretrained("VigneshwarKandhaiya/legal-slm-125m-base")
5ids = tok("The plaintiff shall bear the burden of", return_tensors="pt").input_ids
6print(tok.decode(model.generate(ids, max_new_tokens=40)[0], skip_special_tokens=True))