Instructions to use 71821Nikki/TrumpGeneration with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 71821Nikki/TrumpGeneration with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="71821Nikki/TrumpGeneration")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("71821Nikki/TrumpGeneration") model = AutoModelForCausalLM.from_pretrained("71821Nikki/TrumpGeneration") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use 71821Nikki/TrumpGeneration with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "71821Nikki/TrumpGeneration" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "71821Nikki/TrumpGeneration", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/71821Nikki/TrumpGeneration
- SGLang
How to use 71821Nikki/TrumpGeneration with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "71821Nikki/TrumpGeneration" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "71821Nikki/TrumpGeneration", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "71821Nikki/TrumpGeneration" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "71821Nikki/TrumpGeneration", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use 71821Nikki/TrumpGeneration with Docker Model Runner:
docker model run hf.co/71821Nikki/TrumpGeneration
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# 🧠 TrumpGeneration
|
| 2 |
|
| 3 |
**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.
|
|
@@ -57,15 +70,4 @@ This model may generate biased, exaggerated, or politically charged content. It
|
|
| 57 |
|
| 58 |
- Built using Hugging Face Transformers
|
| 59 |
- Base model: OpenAI GPT-2
|
| 60 |
-
- Trained and released by [@71821Nikki](https://huggingface.co/71821Nikki)
|
| 61 |
-
|
| 62 |
-
---
|
| 63 |
-
```
|
| 64 |
-
|
| 65 |
-
---
|
| 66 |
-
license: mit
|
| 67 |
-
base_model:
|
| 68 |
-
- openai-community/gpt2
|
| 69 |
-
pipeline_tag: text-generation
|
| 70 |
-
library_name: transformers
|
| 71 |
-
---
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
base_model:
|
| 4 |
+
- openai-community/gpt2
|
| 5 |
+
pipeline_tag: text-generation
|
| 6 |
+
library_name: transformers
|
| 7 |
+
tags:
|
| 8 |
+
- text-generation-inference
|
| 9 |
+
- geopolitics
|
| 10 |
+
- speech
|
| 11 |
+
- Trump
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
# 🧠 TrumpGeneration
|
| 15 |
|
| 16 |
**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.
|
|
|
|
| 70 |
|
| 71 |
- Built using Hugging Face Transformers
|
| 72 |
- Base model: OpenAI GPT-2
|
| 73 |
+
- Trained and released by [@71821Nikki](https://huggingface.co/71821Nikki)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|