Views
No views yet
| Parameter | Value |
|---|---|
| Learning rate | 7x10-5 |
| Warm-up steps | 20 |
| Grad clip by norm | 1.0 |
| Epochs | 2 |
| Padding side | "right" |
| Add EOS token | True |
| min_lr_rate | 0.01 |
1from transformers import pipeline
2
3token_classifier = pipeline(
4 "token-classification",
5 model="fromthesky/PLDR-LLM-v52-81M-FT-TC-1",
6 aggregation_strategy="none",
7 device="cuda", # or cpu
8 trust_remote_code=True
9)
10
11text="Neil A. Armstrong was a NASA research pilot, astronaut, and first man to set foot on the Moon during the Apollo 11 mission."
12
13output=token_classifier(text)
14
15print("PREDICTION:")
16for p in output:
17 print(p)PREDICTION:
{'entity': 'B-PER', 'score': np.float32(0.9817903), 'index': 0, 'word': '▁Neil', 'start': 0, 'end': 4}
{'entity': 'I-PER', 'score': np.float32(0.99994135), 'index': 1, 'word': '▁A', 'start': 4, 'end': 6}
{'entity': 'I-PER', 'score': np.float32(0.9999002), 'index': 3, 'word': '▁Armstrong', 'start': 7, 'end': 17}
{'entity': 'B-ORG', 'score': np.float32(0.965291), 'index': 6, 'word': '▁NASA', 'start': 23, 'end': 28}
{'entity': 'B-LOC', 'score': np.float32(0.9539427), 'index': 20, 'word': '▁Moon', 'start': 88, 'end': 93}
{'entity': 'B-MISC', 'score': np.float32(0.87971383), 'index': 23, 'word': '▁Apollo', 'start': 104, 'end': 111}
{'entity': 'I-MISC', 'score': np.float32(0.64193934), 'index': 24, 'word': '▁', 'start': 111, 'end': 112}
{'entity': 'I-MISC', 'score': np.float32(0.97851723), 'index': 25, 'word': '1', 'start': 112, 'end': 113}
{'entity': 'I-MISC', 'score': np.float32(0.9432906), 'index': 26, 'word': '1', 'start': 113, 'end': 114}text string in above example is from this source.| Metric | Value |
|---|---|
| Accuracy | 0.9582 |
| Precision | 0.7211 |
| Recall | 0.7564 |
| F1 | 0.7383 |
1@misc{gokden2025pldrllmkvgcache,
2 title={PLDR-LLMs Learn A Generalizable Tensor Operator That Can Replace Its Own Deep Neural Net At Inference},
3 author={Burc Gokden},
4 year={2025},
5 eprint={2502.13502},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL},
8 url={https://arxiv.org/abs/2502.13502},
9}
10
11@misc{gokden2024pldrllm,
12 title={PLDR-LLM: Large Language Model from Power Law Decoder Representations},
13 author={Burc Gokden},
14 year={2024},
15 eprint={2410.16703},
16 archivePrefix={arXiv},
17 primaryClass={cs.CL},
18 url={https://arxiv.org/abs/2410.16703},
19}