Instructions to use MarkelFe/PoliticalSpeech2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MarkelFe/PoliticalSpeech2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MarkelFe/PoliticalSpeech2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("MarkelFe/PoliticalSpeech2") model = AutoModelForCausalLM.from_pretrained("MarkelFe/PoliticalSpeech2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MarkelFe/PoliticalSpeech2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MarkelFe/PoliticalSpeech2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MarkelFe/PoliticalSpeech2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MarkelFe/PoliticalSpeech2
- SGLang
How to use MarkelFe/PoliticalSpeech2 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 "MarkelFe/PoliticalSpeech2" \ --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": "MarkelFe/PoliticalSpeech2", "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 "MarkelFe/PoliticalSpeech2" \ --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": "MarkelFe/PoliticalSpeech2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MarkelFe/PoliticalSpeech2 with Docker Model Runner:
docker model run hf.co/MarkelFe/PoliticalSpeech2
Commit History
-
Training in progress, step 510000
1323a5e -
Training in progress, step 500000
5c10363 -
Training in progress, step 490000
e278c9d -
Training in progress, step 480000
30df01c -
Training in progress, step 470000
44550eb -
Training in progress, step 460000
09c1301 -
Training in progress, step 450000
d4df457 -
Training in progress, step 440000
83bdbc2 -
Training in progress, step 430000
25c44fc -
Training in progress, step 420000
93546d2 -
Training in progress, step 410000
f6b6805 -
Training in progress, step 400000
fe67d3f -
Training in progress, step 390000
3ca9f0b -
Training in progress, step 380000
1b239d3
-
Training in progress, step 370000
13820ef -
Training in progress, step 360000
8247a7e -
Training in progress, step 350000
a3b0e88 -
Training in progress, step 340000
e2ad0aa -
Training in progress, step 330000
69d7590 -
Training in progress, step 320000
a742bd0 -
Training in progress, step 310000
0a7110f -
Training in progress, step 300000
1bd7110 -
Training in progress, step 290000
f3b2285 -
Training in progress, step 280000
25ef1c4 -
Training in progress, step 270000
1ed73fd -
Training in progress, step 260000
d64efa5 -
Training in progress, step 250000
55febe2 -
Training in progress, step 240000
faeb024 -
Training in progress, step 230000
11dd3f4 -
Training in progress, step 220000
9577c26 -
Training in progress, step 210000
cc088a9 -
Training in progress, step 200000
e400c65 -
Training in progress, step 190000
4821383 -
Training in progress, step 180000
888fae1 -
Training in progress, step 170000
bd2f5fe -
Training in progress, step 160000
b08341e -
Training in progress, step 150000
e1c546f -
Training in progress, step 140000
b16e795 -
Training in progress, step 130000
86b6e8d -
Training in progress, step 120000
7550c6e -
Training in progress, step 110000
680163f
-
Training in progress, step 100000
3ce4480 -
Training in progress, step 90000
1048045 -
Training in progress, step 80000
ced3a70 -
Training in progress, step 70000
dc935fc -
Training in progress, step 60000
61ce466 -
Training in progress, step 50000
de7cac6 -
Training in progress, step 40000
f86303f -
Training in progress, step 30000
2a24b9e -
Training in progress, step 20000
db9a7ad