Downloads · 30 days
11
28% of all-time downloads
jdecim/SFT_202112-earnings-sft
SFT_202112-earnings-sft is a machine learning model from jdecim. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as mit.
LoRA adapter trained on top of Diamegs/PIT-4B-FT-202112. Fine-tuned on jdecim/pit-earnings-call-qa for question answering over US earnings-call transcripts, respecting PIT chronological discipline.
Downloads · 30 days
11
28% of all-time downloads
All-time downloads
39
Public
Repo size
94.4 MB
Likes
0
Public
Click a slice to open those files.
.safetensors94.4 MB · 96%
From the Hugging Face model README
LoRA adapter trained on top of Diamegs/PIT-4B-FT-202112. Fine-tuned on jdecim/pit-earnings-call-qa for question answering over US earnings-call transcripts, respecting PIT chronological discipline.
Diamegs/PIT-4B-FT-202112peft
autoauto (PIT models pre-shift labels; do NOT use model mode — it causes identity collapse)pit (PIT chat template: <|user|>/<|assistant|>/<|end|>)import torch
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = AutoModelForCausalLM.from_pretrained(
"Diamegs/PIT-4B-FT-202112",
trust_remote_code=True,
torch_dtype=torch.bfloat16,
)
tok = AutoTokenizer.from_pretrained("Diamegs/PIT-4B-FT-202112", trust_remote_code=True)
model = PeftModel.from_pretrained(base, "jdecim/SFT_202112-earnings-sft").to("cuda").eval()
prompt = "<|user|>\nQuestion: What was Q4 net revenue?\nContext: …\n<|assistant|>\n"
ids = tok(prompt, return_tensors="pt").to("cuda")
out = model.generate(**ids, max_new_tokens=256, do_sample=False,
eos_token_id=tok.encode("<|end|>", add_special_tokens=False)[-1:])
print(tok.decode(out[0, ids.input_ids.shape[1]:], skip_special_tokens=False))
jdecim/pit-earnings-call-qa — see that page for the four QA buckets, split sizes, and PIT discipline details. This adapter was trained on the snapshot matching Diamegs/PIT-4B-FT-202112:
from datasets import load_dataset
snapshot = "202112" # the trailing YYYYMM in the base model name
ds = load_dataset("jdecim/pit-earnings-call-qa", snapshot, split="train")
MIT.