Instructions to use huggingtweets/elonmusk with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/elonmusk with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/elonmusk")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/elonmusk") model = AutoModelForCausalLM.from_pretrained("huggingtweets/elonmusk", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/elonmusk with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/elonmusk" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/elonmusk", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/elonmusk
- SGLang
How to use huggingtweets/elonmusk 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/elonmusk" \ --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/elonmusk", "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/elonmusk" \ --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/elonmusk", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/elonmusk with Docker Model Runner:
docker model run hf.co/huggingtweets/elonmusk
Commit History
-
New model from https://wandb.ai/wandb/huggingtweets/runs/6xz5kxv9
91ce77c -
New model from https://wandb.ai/wandb/huggingtweets/runs/1b93q44n
de33d09 -
New model from https://wandb.ai/wandb/huggingtweets/runs/vwe6297h
fc65e7a -
New model from https://wandb.ai/wandb/huggingtweets/runs/jc1f90t6
594da0e -
New model from https://wandb.ai/wandb/huggingtweets/runs/iwz23sae
7adf39c
-
New model from https://wandb.ai/wandb/huggingtweets/runs/kk7u3eze
60f4682 -
New model from https://wandb.ai/wandb/huggingtweets/runs/lm0s3oxx
2f528b8
-
New model from https://wandb.ai/wandb/huggingtweets/runs/59sq4lsm
14c1be0
-
New model from https://wandb.ai/wandb/huggingtweets/runs/108q5653
24735aa -
New model from https://wandb.ai/wandb/huggingtweets/runs/v2mj2ktr
66e9475 -
New model from https://wandb.ai/wandb/huggingtweets/runs/3uyot46n
623ce8d
-
New model from https://wandb.ai/wandb/huggingtweets/runs/lt9qr881
4d1b2fe
-
New model from https://wandb.ai/wandb/huggingtweets/runs/z20n17t0
ed31a5b
-
New model from https://wandb.ai/wandb/huggingtweets/runs/maotbg8i
4ae427c -
New model from https://wandb.ai/wandb/huggingtweets/runs/69m8afrn
a99d9a6
-
New model from https://wandb.ai/wandb/huggingtweets/runs/ytfydgvr
138b0df
-
New model from https://wandb.ai/wandb/huggingtweets/runs/hipnhit8
25a673f -
New model from https://wandb.ai/wandb/huggingtweets/runs/zuhyk7ev
bc55014
-
New model from https://wandb.ai/wandb/huggingtweets/runs/aklhte6t
514c3a8 -
New model from https://wandb.ai/wandb/huggingtweets/runs/qe02c2de
c0a01b6 -
New model from https://wandb.ai/wandb/huggingtweets/runs/otuup047
c7c57bd
-
New model from https://wandb.ai/wandb/huggingtweets/runs/9jqvrbbz
0b193c0
-
New model from https://wandb.ai/wandb/huggingtweets/runs/u0gqpg3z
8827c1f -
New model from https://wandb.ai/wandb/huggingtweets/runs/lkeq9ekd
4f311e3
-
New model from https://wandb.ai/wandb/huggingtweets/runs/o56re743
930217a -
New model from https://wandb.ai/wandb/huggingtweets/runs/u67k2fgg
2d545b5 -
New model from https://wandb.ai/wandb/huggingtweets/runs/ld3vxl7v
38a3a1a -
New model from https://wandb.ai/wandb/huggingtweets/runs/khmn7xyx
38b287c
-
New model from https://wandb.ai/wandb/huggingtweets/runs/7653c74z
4068a2f
-
New model from https://wandb.ai/wandb/huggingtweets/runs/lt4hevuh
dd302bc
-
New model from https://wandb.ai/wandb/huggingtweets/runs/fvq4wwfi
cdba33e -
New model from https://wandb.ai/wandb/huggingtweets/runs/7wfqxt7i
17f8cd6
-
New model from https://wandb.ai/wandb/huggingtweets/runs/7yhgqnq5
23686ef -
New model from https://wandb.ai/wandb/huggingtweets/runs/wi63vy8x
bacf9c9
-
New model from https://wandb.ai/wandb/huggingtweets/runs/hnfn9157
6b6382f
-
New model from https://wandb.ai/wandb/huggingtweets/runs/304zz3gn
cd0e1cb
-
New model from https://wandb.ai/wandb/huggingtweets/runs/4ibebnck
9d4de8f -
New model from https://wandb.ai/wandb/huggingtweets/runs/zm32ajl8
d656423
-
New model from https://wandb.ai/wandb/huggingtweets/runs/2c8qawgz
40ea947
-
New model from https://wandb.ai/wandb/huggingtweets/runs/ovgkkk0q
784e369 -
New model from https://wandb.ai/wandb/huggingtweets/runs/r8pb7p3b
d51787e
-
New model from https://wandb.ai/wandb/huggingtweets/runs/5ds3v1b5
05abfda -
New model from https://wandb.ai/wandb/huggingtweets/runs/5ygo3pcc
70df61a
-
New model from https://wandb.ai/wandb/huggingtweets/runs/oj4j7ve8
e09b1b3 -
New model from https://wandb.ai/wandb/huggingtweets/runs/nl0a8x4u
4d9bfb9 -
New model from https://wandb.ai/wandb/huggingtweets/runs/lp5bx1r9
ea73bc1 -
New model from https://wandb.ai/wandb/huggingtweets/runs/dbautmz4
94afd63 -
New model from https://wandb.ai/wandb/huggingtweets/runs/y7r4sdwr
b663c45
-
New model from https://wandb.ai/wandb/huggingtweets/runs/j0r1zriq
0cc7d49
-
New model from https://wandb.ai/wandb/huggingtweets/runs/1kujj8bq
9dc630f