Instructions to use jtatman/headlines with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jtatman/headlines with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jtatman/headlines")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("jtatman/headlines") model = AutoModelForCausalLM.from_pretrained("jtatman/headlines", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jtatman/headlines with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jtatman/headlines" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jtatman/headlines", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/jtatman/headlines
- SGLang
How to use jtatman/headlines 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 "jtatman/headlines" \ --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": "jtatman/headlines", "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 "jtatman/headlines" \ --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": "jtatman/headlines", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use jtatman/headlines with Docker Model Runner:
docker model run hf.co/jtatman/headlines
Commit History
-
End of training
79d570c -
Training in progress, step 145000
15b548c -
Training in progress, step 140000
c0f903e -
Training in progress, step 135000
464db88 -
Training in progress, step 130000
1f265d1 -
Training in progress, step 125000
03cab79 -
Training in progress, step 120000
1144787 -
Training in progress, step 115000
f9af0e5 -
Training in progress, step 110000
f5dacbb -
Training in progress, step 105000
d899022 -
Training in progress, step 100000
44e985d -
Training in progress, step 95000
0fc598f -
Training in progress, step 90000
b802a26 -
Training in progress, step 85000
6cec0a5 -
Training in progress, step 80000
1b8795d -
Training in progress, step 75000
63e0d63 -
Training in progress, step 70000
fe06ccb -
Training in progress, step 65000
416bc7d -
Training in progress, step 60000
63fd1b7 -
Training in progress, step 55000
5ef77af -
Training in progress, step 50000
3c925eb -
Training in progress, step 45000
1974d7e -
Training in progress, step 40000
caefa14 -
Training in progress, step 35000
efe94de -
Training in progress, step 30000
d1c609f -
Training in progress, step 25000
92f1265 -
Training in progress, step 20000
40120f4 -
Training in progress, step 15000
776e977 -
Training in progress, step 10000
dd3b534 -
Training in progress, step 5000
33f1512 -
initial commit
0897c89