Instructions to use huggingtweets/newscollected with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/newscollected with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/newscollected")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/newscollected") model = AutoModelForCausalLM.from_pretrained("huggingtweets/newscollected", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/newscollected with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/newscollected" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/newscollected", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/newscollected
- SGLang
How to use huggingtweets/newscollected 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 "huggingtweets/newscollected" \ --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": "huggingtweets/newscollected", "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 "huggingtweets/newscollected" \ --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": "huggingtweets/newscollected", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/newscollected with Docker Model Runner:
docker model run hf.co/huggingtweets/newscollected
Commit History
-
Update model preview
d51182f -
New model from https://wandb.ai/wandb/huggingtweets/runs/6jw9lvlh
e9cdaf7 -
Update model preview
b7ee5ea -
New model from https://wandb.ai/wandb/huggingtweets/runs/h94ketcj
8662796
-
Update model preview
a474d34 -
New model from https://wandb.ai/wandb/huggingtweets/runs/nqnjurxt
d4a0999
-
New model from https://wandb.ai/wandb/huggingtweets/runs/1voh9hly
5ce25a4
-
Update model preview
e9f1edb -
New model from https://wandb.ai/wandb/huggingtweets/runs/329vsvpf
50374b8 -
Update model preview
bd4d917 -
New model from https://wandb.ai/wandb/huggingtweets/runs/2qxsliad
a755054
-
Update model preview
8254686 -
New model from https://wandb.ai/wandb/huggingtweets/runs/icikwanj
58bfe04
-
Update model preview
54b2074 -
New model from https://wandb.ai/wandb/huggingtweets/runs/1zsagze5
c7ec0ad
-
Update model preview
9a3662c -
New model from https://wandb.ai/wandb/huggingtweets/runs/bu5x6kak
40c171a -
Update model preview
c1a88f7 -
New model from https://wandb.ai/wandb/huggingtweets/runs/34qnbd45
17e8ce1 -
Update model preview
e365860 -
New model from https://wandb.ai/wandb/huggingtweets/runs/tmzwtmvg
e2d978f
-
Update model preview
969c1db -
New model from https://wandb.ai/wandb/huggingtweets/runs/3ck557nx
33a318d
-
Update model preview
9a6e8f7 -
New model from https://wandb.ai/wandb/huggingtweets/runs/3u9leyvh
b17089a -
Update model preview
a0e28cc -
New model from https://wandb.ai/wandb/huggingtweets/runs/ept3iq0p
02f2e96 -
Update model preview
bb71225 -
New model from https://wandb.ai/wandb/huggingtweets/runs/8qhafeqb
52d697d -
Update model preview
1524c8f -
New model from https://wandb.ai/wandb/huggingtweets/runs/2uca3lr1
f48fd2b -
Update model preview
495ffb6 -
New model from https://wandb.ai/wandb/huggingtweets/runs/2shf94fn
7979dfc -
Update model preview
b6c0a22 -
New model from https://wandb.ai/wandb/huggingtweets/runs/3dq36eaf
467e5cb -
Update model preview
0f1004f -
New model from https://wandb.ai/wandb/huggingtweets/runs/3so2siqv
1afc976 -
Update model preview
d9573d8 -
New model from https://wandb.ai/wandb/huggingtweets/runs/9dh3r8n9
c1cd088
-
Update model preview
57097d0 -
New model from https://wandb.ai/wandb/huggingtweets/runs/1iqirrwi
ceb4901 -
Update model preview
53b98be -
New model from https://wandb.ai/wandb/huggingtweets/runs/1zwk75rp
4381877 -
Update model preview
4aae1b5 -
New model from https://wandb.ai/wandb/huggingtweets/runs/1cwy6t77
3d2e345
-
Update model preview
a30e622 -
New model from https://wandb.ai/wandb/huggingtweets/runs/34dnbcii
31f32f6 -
Update model preview
f59892f -
New model from https://wandb.ai/wandb/huggingtweets/runs/1yb3141y
38e432f -
Update model preview
915bd8e