Downloads · 30 days
18
15% of all-time downloads
fromthesky/PLDR-LLM-v52-81M-FT-SC-1
PLDR-LLM-v52-81M-FT-SC-1 is a text classification model from fromthesky. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
PLDR-LLM-v52-81M-FT-SC-1 is a finetuned PLDR-LLM (Large Language Model from Power Law Decoder Representations) with KV-cache and G-cache support for sequence classification. This model has a parameter size of 81M. It…
Downloads · 30 days
18
15% of all-time downloads
All-time downloads
118
Public
Parameters
81M
325 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors324 MB · 99%
From the Hugging Face model README
PLDR-LLM-v52-81M-FT-SC-1 is a finetuned PLDR-LLM (Large Language Model from Power Law Decoder Representations) with KV-cache and G-cache support for sequence classification. This model has a parameter size of 81M. It was finetuned using the imdb dataset on the PLDR-LLM base model PLDR-LLM-v52-110M-1.
More details about the PLDR-LLM architecture can be found in the research paper titled PLDR-LLMs Learn A Generalizable Tensor Operator That Can Replace Its Own Deep Neural Net At Inference.
PLDR-LLM-v52-81M-FT-SC-1 was finetuned using the imdb dataset which is a large movie review dataset for binary sentiment analysis comprising of 25000 movie reviews for training and another 25000 reviews for testing. Base model was pretrained on the ~8B tokens from RefinedWeb, a publicly available English web dataset with extensive filtering and deduplication.
The train and test data samples are combined and train and test splits were adjusted to get a total of 45000 samples for training and 5000 samples for validation. No data cleaning was done. This model was trained with the custom model implementation of PLDR-LLM for the Huggingface Transformers library. Following parameters were used for finetuning and other parameters were kept same as in the research paper detailing the PLDR-LLM architecture.
| Parameter | Value |
|---|---|
| Learning rate | 7x10<sup>-5</sup> |
| Warm-up steps | 20 |
| Grad clip by norm | 1.0 |
| Epochs | 2 |
| Padding side | "right" |
| Add EOS token | True |
| min_lr_rate | 0.01 |
This model is intended to be used for research purposes. Given text as input prompt, it carries out binary sentiment analysis prediction. The context length for this model is 1024 tokens.
PLDR-LLM has custom model support for Huggingface Transformers library. PLDR-LLM custom models support was evaluated on Transformers 4.56.1 release available at the time.
from transformers import pipeline
seq_classifier = pipeline(
task="sentiment-analysis",
model="fromthesky/PLDR-LLM-v52-81M-FT-SC-1",
device="cuda", # or "cpu"
trust_remote_code=True
)
text="""
Star Trek the Next Generation was arguably one of the most successful sci-fi shows \
in the late eighties and early nineties. With a cast that complemented each other's character \
seamlessly, the stories covered in the show touched on a wide variety of thought \
provoking issues such as a dying civilization's daring attempt to be remembered in \
"the Inner Light" and action packed two part episode with a cliffhanger in \
"Best of Both Worlds" against the formidable Borg Collective. The end result was \
a show that kept the audience engaged and entertained for the majority of the time it was on air.
"""
output=seq_classifier(text)
print(f"PREDICTION: {output}")
PREDICTION: [{'label': 'POSITIVE', 'score': 0.9999229907989502}]
This model was finetuned on a pretrained Large Language Model. Large Language Models may generate text that is profane, lewd, socially unacceptable or offensive based on the contents of the dataset it was pretrained. RefinedWeb is a dataset that is as toxic and biased as the Pile. Please see the papers for RefinedWeb and the Pile for more information. Moreover, large language models are also susceptible to hallucinations and may generate text that contains incorrect, irrelevant or misleading information. Since it is very hard to expect the contents of generated text ahead of time, the output of the large language models need to be heavily moderated and curated to avoid undesired content to appear without warning.
| Metric | Value |
|---|---|
| Accuracy | 0.9466 |
| Precision | 0.9463 |
| Recall | 0.9489 |
| F1 | 0.9476 |
@misc{gokden2025pldrllmkvgcache,
title={PLDR-LLMs Learn A Generalizable Tensor Operator That Can Replace Its Own Deep Neural Net At Inference},
author={Burc Gokden},
year={2025},
eprint={2502.13502},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2502.13502},
}
@misc{gokden2024pldrllm,
title={PLDR-LLM: Large Language Model from Power Law Decoder Representations},
author={Burc Gokden},
year={2024},
eprint={2410.16703},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2410.16703},
}