Instructions to use huggingtweets/theexpertonthis with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/theexpertonthis with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/theexpertonthis")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/theexpertonthis") model = AutoModelForCausalLM.from_pretrained("huggingtweets/theexpertonthis", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/theexpertonthis with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/theexpertonthis" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/theexpertonthis", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/theexpertonthis
- SGLang
How to use huggingtweets/theexpertonthis 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/theexpertonthis" \ --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/theexpertonthis", "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/theexpertonthis" \ --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/theexpertonthis", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/theexpertonthis with Docker Model Runner:
docker model run hf.co/huggingtweets/theexpertonthis
Commit History
-
upload flax model
efcf383 -
allow flax
85a9e5b
-
Update model preview
d66b9d1 -
New model from https://wandb.ai/wandb/huggingtweets/runs/20wokxbt
caadd88
-
Update model preview
99d3494 -
New model from https://wandb.ai/wandb/huggingtweets/runs/14kpa0bd
7d526a4
-
Update model preview
5ac7e00 -
Update model preview
33690a0 -
Update model preview
6c88c3c -
Update model preview
0b7e125 -
Update model preview
894b740 -
Update model preview
312fe6f -
Update model preview
409fe25 -
Update model preview
5823ded -
Update model preview
0ee9ac1 -
Update model preview
91b2de3 -
Update model preview
0508859 -
Update model preview
097f76e -
Update model preview
80b2ab4 -
Update model preview
0a1a31f -
New model from https://wandb.ai/wandb/huggingtweets/runs/x28iiaht
76735bc -
initial commit
d89a2be