Files
SLM-Siva-Finetuned/README.md
ModelHub XC 576d7cf5dc 初始化项目,由ModelHub XC社区提供模型
Model: sivakaturi48/SLM-Siva-Finetuned
Source: Original Platform
2026-08-08 17:01:17 +08:00

2.7 KiB

language, license, tags, pipeline_tag, widget
language license tags pipeline_tag widget
en apache-2.0
text-generation
legal
financial
llama
small-language-model
text-generation
text example_title
The court held that the defendant Legal - Court Ruling
text example_title
The Company reported net revenues of Financial - Revenue Report
text example_title
Pursuant to Section 12 of the Act Legal - Statutory Reference
text example_title
The annual report filed with the SEC Financial - SEC Filing

SLM-Siva-Finetuned

A 125M parameter small language model fine-tuned on a legal/financial corpus (~2.19B tokens including US case law, SEC filings, and web text).

Model Details

Property Value
Architecture LlamaForCausalLM
Parameters 125,848,320
Model Size 252 MB
Training Corpus US case law + SEC filings + web slice (~2.19B tokens)
Epochs 5
Format safetensors

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

tokenizer = AutoTokenizer.from_pretrained("sivakaturi48/SLM-Siva-Finetuned")
model = AutoModelForCausalLM.from_pretrained("sivakaturi48/SLM-Siva-Finetuned")
model.eval()

prompt = "The court held that the defendant"
input_ids = tokenizer(prompt, return_tensors="pt").input_ids

with torch.no_grad():
    output = model.generate(input_ids, max_new_tokens=100, do_sample=True, temperature=0.7, top_p=0.9)

print(tokenizer.decode(output[0], skip_special_tokens=True))

Example Outputs

Prompt: "The court held that the defendant"

The court held that the defendant had not offered any evidence in his defense. In support of its holding, the trial judge cited two cases from this court where an accused has been denied the opportunity to present a defense.

Prompt: "The Company reported net revenues of"

The Company reported net revenues of $2.8 million and operating income (loss) of $(1,078,000), for the year ended December 31, 1997 compared to a net loss of ($279,000). The increase in net revenues was primarily due to increased sales volumes.

Prompt: "Pursuant to Section 12 of the Act"

Pursuant to Section 12 of the Act, this Registrant's Report shall not be signed by the undersigned except by duly authorized officers or agents. In accordance with the Securities Exchange Act of 1934, this report has been signed below.

Limitations

This is a small language model (125M parameters) designed for learning and experimentation. It can generate coherent legal/financial text but may produce imprecise or repetitive outputs for complex prompts. This is not a production legal or financial tool.

Built By

Siva Katuri