Downloads · 30 days
8
1% of all-time downloads
tirumalaseti/slm-125m-base
slm-125m-base is a text generation model from tirumalaseti. Use it when you need the model to write or continue text. It is set up for transformers.
This is a 125M-parameter base completion model trained from scratch on a legal/financial-heavy corpus. It is not a chatbot: it was optimized for next-token prediction and works best when prompted with the opening of a…
Downloads · 30 days
8
1% of all-time downloads
All-time downloads
778
Public
Parameters
126M
503 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors503 MB · 100%
From the Hugging Face model README
This is a 125M-parameter base completion model trained from scratch on a legal/financial-heavy corpus. It is not a chatbot: it was optimized for next-token prediction and works best when prompted with the opening of a sentence or paragraph to continue.
The packed corpus used for pretraining contains 2,059,674,624 total tokens:
Realized source mix:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "tirumalaseti/slm-125m-base"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
prompt = "The plaintiff respectfully moves this Court to"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=96, temperature=0.8, top_p=0.95)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))