TrumpGeneration is a fine-tuned version of OpenAI's GPT-2, trained on the speeches of Donald J. Trump. This model is designed to generate text in Trump's distinctive rhetorical style — bold, direct, and uniquely expressive.
TrumpGenerationgpt2from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("71821Nikki/TrumpGeneration")
model = AutoModelForCausalLM.from_pretrained("71821Nikki/TrumpGeneration")
prompt = "The American people"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(
**inputs,
max_length=100,
do_sample=True,
top_k=50,
top_p=0.95,
temperature=0.9
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
The American people are stronger than ever before. We've created more jobs, lowered taxes, and taken care of our veterans like nobody else. We're bringing back common sense, we're bringing back greatness — and we're never going to stop. Believe me.
This model may generate biased, exaggerated, or politically charged content. It reflects the tone and rhetoric of Donald Trump's public speaking and is intended for educational and creative use only. Use responsibly.
有文件?提交种子。
发布种子optimizer.pt 950 MiBmodel.safetensors 475 MiBrng_state.pth 13.9 KiBtraining_args.bin 5.2 KiBscheduler.pt 1 KiBscaler.pt 1 KiB