Text Generation
PEFT
Safetensors
English
forecasting
prediction
reinforcement-learning
grpo
lora
mixture-of-experts
politics
trump
future-as-label
Eval Results (legacy)
Instructions to use LightningRodLabs/Trump-Forecaster with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use LightningRodLabs/Trump-Forecaster with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("openai/gpt-oss-120b") model = PeftModel.from_pretrained(base_model, "LightningRodLabs/Trump-Forecaster") - Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -94,7 +94,7 @@ pip install torch transformers safetensors tqdm huggingface-hub
|
|
| 94 |
python merge.py --output ./trump-forecaster-merged
|
| 95 |
```
|
| 96 |
|
| 97 |
-
This downloads the base model
|
| 98 |
|
| 99 |
### Inference with the merged model
|
| 100 |
|
|
@@ -108,7 +108,7 @@ engine = sgl.Engine(
|
|
| 108 |
tokenizer_path="openai/gpt-oss-120b",
|
| 109 |
trust_remote_code=True,
|
| 110 |
dtype="bfloat16",
|
| 111 |
-
tp_size=2,
|
| 112 |
)
|
| 113 |
|
| 114 |
prompt = """You are a forecasting expert. Given the question and context below, predict the probability that the answer is "Yes".
|
|
|
|
| 94 |
python merge.py --output ./trump-forecaster-merged
|
| 95 |
```
|
| 96 |
|
| 97 |
+
This downloads the base model, dequantizes to bf16, applies the LoRA adapter, and saves the merged model.
|
| 98 |
|
| 99 |
### Inference with the merged model
|
| 100 |
|
|
|
|
| 108 |
tokenizer_path="openai/gpt-oss-120b",
|
| 109 |
trust_remote_code=True,
|
| 110 |
dtype="bfloat16",
|
| 111 |
+
tp_size=2,
|
| 112 |
)
|
| 113 |
|
| 114 |
prompt = """You are a forecasting expert. Given the question and context below, predict the probability that the answer is "Yes".
|